summaryrefslogtreecommitdiff
path: root/src/gui/setup_colours.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-07 12:18:52 -0700
committerIra Rice <irarice@gmail.com>2009-02-07 12:18:52 -0700
commit1b8c088a48822641b53c2a304372471a128c2841 (patch)
tree4f2fbb68a2fb011a572bb5d0d69deb3a16780d92 /src/gui/setup_colours.h
parent074ca287804a56f776d641826b1ecfc1454b6c72 (diff)
downloadmana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.gz
mana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.bz2
mana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.xz
mana-client-1b8c088a48822641b53c2a304372471a128c2841.zip
Added a text color preview to the setup color tab.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/setup_colours.h')
-rw-r--r--src/gui/setup_colours.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gui/setup_colours.h b/src/gui/setup_colours.h
index f7984dd5..f56daa60 100644
--- a/src/gui/setup_colours.h
+++ b/src/gui/setup_colours.h
@@ -29,13 +29,13 @@
#include <guichan/widgets/label.hpp>
#include <guichan/widgets/listbox.hpp>
-#include "scrollarea.h"
#include "setuptab.h"
-#include "slider.h"
#include "textfield.h"
#include "../guichanfwd.h"
+class BrowserBox;
+
class Setup_Colours : public SetupTab, public gcn::ActionListener,
public TextFieldListener
{
@@ -49,25 +49,27 @@ class Setup_Colours : public SetupTab, public gcn::ActionListener,
void listen(const TextField *tf);
private:
gcn::ListBox *mColourBox;
- ScrollArea *mScroll;
+ gcn::ScrollArea *mScroll;
+ BrowserBox *mPreview;
+ gcn::ScrollArea *mPreviewBox;
int mSelected;
gcn::Label *mRedLabel;
- Slider *mRedSlider;
+ gcn::Slider *mRedSlider;
TextField *mRedText;
int mRedValue;
gcn::Label *mGreenLabel;
- Slider *mGreenSlider;
+ gcn::Slider *mGreenSlider;
TextField *mGreenText;
int mGreenValue;
gcn::Label *mBlueLabel;
- Slider *mBlueSlider;
+ gcn::Slider *mBlueSlider;
TextField *mBlueText;
int mBlueValue;
- void setEntry(Slider *s, TextField *t, int value);
+ void setEntry(gcn::Slider *s, TextField *t, int value);
void updateColour();
};
#endif