summaryrefslogtreecommitdiff
path: root/src/gui/setup_colors.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-02-10 16:56:05 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-02-10 16:56:05 +0100
commitc5fe99dcfd22b7e4d455ab8961d5f6c6210872d7 (patch)
tree87dbf38995dd4e66da83e30cef6085c9bceba05d /src/gui/setup_colors.h
parent840da9d6f64fea9275d0d1e916136fad29560c54 (diff)
downloadMana-c5fe99dcfd22b7e4d455ab8961d5f6c6210872d7.tar.gz
Mana-c5fe99dcfd22b7e4d455ab8961d5f6c6210872d7.tar.bz2
Mana-c5fe99dcfd22b7e4d455ab8961d5f6c6210872d7.tar.xz
Mana-c5fe99dcfd22b7e4d455ab8961d5f6c6210872d7.zip
Changed spelling from colour to color.
Diffstat (limited to 'src/gui/setup_colors.h')
-rw-r--r--src/gui/setup_colors.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/gui/setup_colors.h b/src/gui/setup_colors.h
new file mode 100644
index 00000000..7a224249
--- /dev/null
+++ b/src/gui/setup_colors.h
@@ -0,0 +1,75 @@
+/*
+ * Configurable text colors
+ * Copyright (C) 2008 Douglas Boffey <dougaboffey@netscape.net>
+ *
+ * This file is part of The Mana World.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef SETUP_COLOURS_H
+#define SETUP_COLOURS_H
+
+#include <string>
+
+#include <guichan/actionlistener.hpp>
+
+#include <guichan/widgets/label.hpp>
+#include <guichan/widgets/listbox.hpp>
+
+#include "setuptab.h"
+#include "textfield.h"
+
+#include "../guichanfwd.h"
+
+class BrowserBox;
+
+class Setup_colors : public SetupTab, public gcn::ActionListener,
+ public TextFieldListener
+{
+ public:
+ Setup_colors();
+ ~Setup_colors();
+ void apply();
+ void cancel();
+ void action(const gcn::ActionEvent &event);
+
+ void listen(const TextField *tf);
+ private:
+ gcn::ListBox *mcolorBox;
+ gcn::ScrollArea *mScroll;
+ BrowserBox *mPreview;
+ gcn::ScrollArea *mPreviewBox;
+ int mSelected;
+
+ gcn::Label *mRedLabel;
+ gcn::Slider *mRedSlider;
+ TextField *mRedText;
+ int mRedValue;
+
+ gcn::Label *mGreenLabel;
+ gcn::Slider *mGreenSlider;
+ TextField *mGreenText;
+ int mGreenValue;
+
+ gcn::Label *mBlueLabel;
+ gcn::Slider *mBlueSlider;
+ TextField *mBlueText;
+ int mBlueValue;
+
+ void setEntry(gcn::Slider *s, TextField *t, int value);
+ void updatecolor();
+};
+#endif