summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 11:53:22 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2004-12-22 11:53:22 +0000
commit4280a5f8f16701e6fd4b3431024a77214724d207 (patch)
tree61af3aa4b73ef1b80ef084b58d184b2b0acf355f
parentd4b405c509b6f65df32f13df0d4be9b77e3c8fac (diff)
downloadmana-client-4280a5f8f16701e6fd4b3431024a77214724d207.tar.gz
mana-client-4280a5f8f16701e6fd4b3431024a77214724d207.tar.bz2
mana-client-4280a5f8f16701e6fd4b3431024a77214724d207.tar.xz
mana-client-4280a5f8f16701e6fd4b3431024a77214724d207.zip
Using tmw's button in setup
-rw-r--r--src/gui/setup.cpp4
-rw-r--r--src/gui/setup.h21
2 files changed, 20 insertions, 5 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 3c48986a..bd600654 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -14,8 +14,8 @@ Setup::Setup(gcn::Container *parent)
: Window(parent, "Setup")
{
displayLabel = new gcn::Label("Display");
- applyButton = new gcn::Button("Apply");
- cancelButton = new gcn::Button("Cancel");
+ applyButton = new Button("Apply");
+ cancelButton = new Button("Cancel");
/* Set dimension */
displayLabel->setDimension(gcn::Rectangle(0,0,80, 16));
diff --git a/src/gui/setup.h b/src/gui/setup.h
index b6b83717..55e66cc5 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -13,13 +13,28 @@
#include <winalleg.h>
#endif
+
+/*
+ * The list model for modes list
+ */
+class ModesListModel : public gcn::ListModel {
+ public:
+ int getNumberOfElements();
+ std::string getElementAt(int i);
+};
+
+/*
+ * Setup dialog window
+ */
class Setup : public Window, public gcn::ActionListener {
private:
/* Dialog parts */
+ ModesListModel *modesListModel;
gcn::Label *displayLabel;
- gcn::Button *applyButton;
- gcn::Button *cancelButton;
-
+ gcn::ListBox *modeslist;
+ Button *applyButton;
+ Button *cancelButton;
+
/* Setup dialog */
static Setup *ptr;