From 7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 7 Apr 2009 20:19:10 +0200 Subject: Used custom widgets where appropriate and some cleanup Replaced many gcn::Label with Label, gcn::Slider with Slider in character creation dialog. Also cleaned up includes. --- src/gui/serverdialog.cpp | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'src/gui/serverdialog.cpp') diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 9d679acb..c7746b89 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -19,29 +19,28 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include -#include -#include - -#include +#include "gui/serverdialog.h" -#include "serverdialog.h" +#include "gui/button.h" +#include "gui/label.h" +#include "gui/listbox.h" +#include "gui/ok_dialog.h" +#include "gui/scrollarea.h" +#include "gui/textfield.h" -#include "button.h" -#include "listbox.h" -#include "ok_dialog.h" -#include "scrollarea.h" -#include "textfield.h" +#include "gui/widgets/layout.h" -#include "widgets/layout.h" +#include "configuration.h" +#include "log.h" +#include "logindata.h" +#include "main.h" -#include "../configuration.h" -#include "../log.h" -#include "../logindata.h" -#include "../main.h" +#include "utils/gettext.h" +#include "utils/stringutils.h" -#include "../utils/gettext.h" -#include "../utils/stringutils.h" +#include +#include +#include const short MAX_SERVERLIST = 5; @@ -74,8 +73,8 @@ void ServersListModel::addElement(Server server) ServerDialog::ServerDialog(LoginData *loginData): Window(_("Choose your server")), mLoginData(loginData) { - gcn::Label *serverLabel = new gcn::Label(_("Server:")); - gcn::Label *portLabel = new gcn::Label(_("Port:")); + gcn::Label *serverLabel = new Label(_("Server:")); + gcn::Label *portLabel = new Label(_("Port:")); mServerNameField = new TextField(mLoginData->hostname); mPortField = new TextField(toString(mLoginData->port)); -- cgit v1.2.3-70-g09d2