diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-02-10 16:56:05 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-11 08:29:51 -0700 |
commit | 4a41ce55224ad7b54c6b5ea78126d8d314f5ef41 (patch) | |
tree | 2d2172cb0c0985c7711206dc5adda6bfa219245e /src/gui/setup_colors.h | |
parent | d036e2c771bcd19a21e26aec155d4269cecdb1c2 (diff) | |
download | mana-client-4a41ce55224ad7b54c6b5ea78126d8d314f5ef41.tar.gz mana-client-4a41ce55224ad7b54c6b5ea78126d8d314f5ef41.tar.bz2 mana-client-4a41ce55224ad7b54c6b5ea78126d8d314f5ef41.tar.xz mana-client-4a41ce55224ad7b54c6b5ea78126d8d314f5ef41.zip |
Changed spelling from colour to color.
Diffstat (limited to 'src/gui/setup_colors.h')
-rw-r--r-- | src/gui/setup_colors.h | 75 |
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..98a2d18b --- /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 Aethyra. + * + * 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_COLORS_H +#define SETUP_COLORS_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 |