summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-14 20:54:35 -0600
committerIra Rice <irarice@gmail.com>2009-03-14 20:54:35 -0600
commit6d6fd0cec10601a51cab67e623a579a14af775fc (patch)
treebbe8182819b363f0ae22e6422d8a802eeac3f250 /src/gui/palette.h
parent8fb5276dcc5c527a3daf99c18826d6d9bf9802be (diff)
downloadmana-6d6fd0cec10601a51cab67e623a579a14af775fc.tar.gz
mana-6d6fd0cec10601a51cab67e623a579a14af775fc.tar.bz2
mana-6d6fd0cec10601a51cab67e623a579a14af775fc.tar.xz
mana-6d6fd0cec10601a51cab67e623a579a14af775fc.zip
Made the slider editable when pulse gradient is selected.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 0947aa58..ccef231e 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -151,6 +151,25 @@ class Palette : public gcn::ListModel
{ return mColVector[type].committedColor; }
/**
+ * Gets the test color associated with the specified type.
+ *
+ * @param type the color type requested
+ *
+ * @return the requested test color
+ */
+ inline const gcn::Color& getTestColor(ColorType type)
+ { return mColVector[type].testColor; }
+
+ /**
+ * Sets the test color associated with the specified type.
+ *
+ * @param type the color type requested
+ * @param color the color that should be tested
+ */
+ inline void setTestColor(ColorType type, gcn::Color color)
+ { mColVector[type].testColor = color; }
+
+ /**
* Gets the GradientType associated with the specified type.
*
* @param type the color type of the color
@@ -259,6 +278,7 @@ class Palette : public gcn::ListModel
{
ColorType type;
gcn::Color color;
+ gcn::Color testColor;
gcn::Color committedColor;
std::string text;
char ch;