summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/gui/char_server.cpp
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index 37ef0462..8a0a67ab 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -51,57 +51,57 @@ class ServerListModel : public gcn::ListModel {
ServerSelectDialog::ServerSelectDialog(LoginData *loginData):
Window("Select Server"), mLoginData(loginData)
{
- serverListModel = new ServerListModel();
- serverList = new ListBox(serverListModel);
- scrollArea = new ScrollArea(serverList);
- okButton = new Button("OK", "ok", this);
- cancelButton = new Button("Cancel", "cancel", this);
+ mServerListModel = new ServerListModel();
+ mServerList = new ListBox(mServerListModel);
+ ScrollArea *mScrollArea = new ScrollArea(mServerList);
+ mOkButton = new Button("OK", "ok", this);
+ Button *mCancelButton = new Button("Cancel", "cancel", this);
setContentSize(200, 100);
- cancelButton->setPosition(
- 200 - cancelButton->getWidth() - 5,
- 100 - cancelButton->getHeight() - 5);
- okButton->setPosition(
- cancelButton->getX() - okButton->getWidth() - 5,
- 100 - okButton->getHeight() - 5);
- scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- scrollArea->setDimension(gcn::Rectangle(
+ mCancelButton->setPosition(
+ 200 - mCancelButton->getWidth() - 5,
+ 100 - mCancelButton->getHeight() - 5);
+ mOkButton->setPosition(
+ mCancelButton->getX() - mOkButton->getWidth() - 5,
+ 100 - mOkButton->getHeight() - 5);
+ mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
+ mScrollArea->setDimension(gcn::Rectangle(
5, 5, 200 - 2 * 5,
- 100 - 3 * 5 - cancelButton->getHeight() -
- scrollArea->getBorderSize()));
+ 100 - 3 * 5 - mCancelButton->getHeight() -
+ mScrollArea->getBorderSize()));
- serverList->setEventId("ok");
+ mServerList->setEventId("ok");
- //serverList->addActionListener(this);
+ //mServerList->addActionListener(this);
- add(scrollArea);
- add(okButton);
- add(cancelButton);
+ add(mScrollArea);
+ add(mOkButton);
+ add(mCancelButton);
if (n_server == 0) {
// Disable Ok button
- okButton->setEnabled(false);
+ mOkButton->setEnabled(false);
} else {
// Select first server
- serverList->setSelected(1);
+ mServerList->setSelected(1);
}
- okButton->requestFocus();
+ mOkButton->requestFocus();
setLocationRelativeTo(getParent());
}
ServerSelectDialog::~ServerSelectDialog()
{
- delete serverListModel;
+ delete mServerListModel;
}
void
ServerSelectDialog::action(const std::string& eventId)
{
if (eventId == "ok") {
- okButton->setEnabled(false);
- const SERVER_INFO *si = server_info[serverList->getSelected()];
+ mOkButton->setEnabled(false);
+ const SERVER_INFO *si = server_info[mServerList->getSelected()];
mLoginData->hostname = iptostring(si->address);
mLoginData->port = si->port;
state = CHAR_CONNECT_STATE;