summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-11 21:39:51 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 17:05:37 +0100
commit78d6d9352f66f41963207b04a999d94c17d67cf2 (patch)
treec286d4a6ebd46bc89808d3e18b2d7d920ea10351 /src/gui/logindialog.cpp
parent8546361abaa6123acd9dc1429575d1fd1cf6a4ec (diff)
downloadmana-78d6d9352f66f41963207b04a999d94c17d67cf2.tar.gz
mana-78d6d9352f66f41963207b04a999d94c17d67cf2.tar.bz2
mana-78d6d9352f66f41963207b04a999d94c17d67cf2.tar.xz
mana-78d6d9352f66f41963207b04a999d94c17d67cf2.zip
Added support for -y / --server-type parameter
Usually this would be guessed correctly by the port, but now it is also possible to just specify the server type and the port will be derived from there, unless a default port is given in the branding file. Closes #56
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index 4d065d65..1f96e02d 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -22,14 +22,12 @@
#include "gui/logindialog.h"
#include "client.h"
-#include "configuration.h"
#include "gui/okdialog.h"
#include "gui/sdlinput.h"
#include "gui/widgets/button.h"
#include "gui/widgets/checkbox.h"
-#include "gui/widgets/dropdown.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/passwordfield.h"
@@ -40,12 +38,6 @@
#include "net/net.h"
#include "utils/gettext.h"
-#include "utils/stringutils.h"
-
-static const int MAX_SERVER_LIST_SIZE = 5;
-static const int LOGIN_DIALOG_WIDTH = 220;
-static const int LOGIN_DIALOG_HEIGHT = 140;
-static const int FIELD_WIDTH = LOGIN_DIALOG_WIDTH - 70;
LoginDialog::LoginDialog(LoginData *loginData):
Window(_("Login")),
@@ -93,9 +85,7 @@ LoginDialog::LoginDialog(LoginData *loginData):
mLoginButton->setEnabled(canSubmit());
}
-LoginDialog::~LoginDialog()
-{
-}
+LoginDialog::~LoginDialog() = default;
void LoginDialog::action(const gcn::ActionEvent &event)
{