summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-05 22:05:38 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-05 22:05:38 +0000
commit9330cb0461bf533a6cc81db5bb2d8a79d88943fb (patch)
treeb29be1da2bc30557edcbb8de78a00c12b2a8e731 /src/gui/setup.cpp
parent454b4b759345ce1fed0d2ee61733975fe3d84017 (diff)
downloadmana-client-9330cb0461bf533a6cc81db5bb2d8a79d88943fb.tar.gz
mana-client-9330cb0461bf533a6cc81db5bb2d8a79d88943fb.tar.bz2
mana-client-9330cb0461bf533a6cc81db5bb2d8a79d88943fb.tar.xz
mana-client-9330cb0461bf533a6cc81db5bb2d8a79d88943fb.zip
*** empty log message ***
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index a8c4721e..cfe155f8 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -40,7 +40,7 @@
#include <string.h>
#include <memory.h>
-SDL_Rect **modes;
+/*SDL_Rect **modes;
ModeListModel::ModeListModel()
{
@@ -92,15 +92,15 @@ int ModeListModel::getNumberOfElements()
std::string ModeListModel::getElementAt(int i)
{
return mode[i];
-}
+}*/
Setup::Setup():
Window("Setup")
{
- modeListModel = new ModeListModel();
- displayLabel = new gcn::Label("Display settings");
- modeList = new ListBox(modeListModel);
- scrollArea = new ScrollArea(modeList);
+ //modeListModel = new ModeListModel();
+ //displayLabel = new gcn::Label("Display settings");
+ //modeList = new ListBox(modeListModel);
+ //scrollArea = new ScrollArea(modeList);
fsCheckBox = new CheckBox("Full screen", false);
soundLabel = new gcn::Label("Sound settings");
soundCheckBox = new CheckBox("Sound", false);
@@ -121,9 +121,9 @@ Setup::Setup():
// Set dimensions/positions
setContentSize(240, 216);
- scrollArea->setDimension(gcn::Rectangle(10, 40, 90, 50));
+ /*scrollArea->setDimension(gcn::Rectangle(10, 40, 90, 50));
modeList->setDimension(gcn::Rectangle(0, 0, 60, 50));
- displayLabel->setDimension(gcn::Rectangle(10, 10, 100,16));
+ displayLabel->setDimension(gcn::Rectangle(10, 10, 100,16));*/
cancelButton->setPosition(
240 - 5 - cancelButton->getWidth(),
216 - 5 - cancelButton->getHeight());
@@ -144,8 +144,8 @@ Setup::Setup():
alphaSlider->addActionListener(this);
// Assemble dialog
- add(scrollArea);
- add(displayLabel);
+ //add(scrollArea);
+ //add(displayLabel);
add(fsCheckBox);
add(soundLabel);
add(soundCheckBox);
@@ -158,7 +158,7 @@ Setup::Setup():
setLocationRelativeTo(getParent());
// load default settings
- modeList->setSelected(1);
+ //modeList->setSelected(1);
if (config.getValue("screen", 0) == 1) {
fsCheckBox->setMarked(true);
}