Author: mordante
Date: Tue Aug 12 08:20:55 2008
New Revision: 28477
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28477&view=rev
Log:
Seems I forgot to initialize a few members and adding proper comment to them,
this commit fixes that.
Modified:
trunk/src/gui/widgets/slider.hpp
Modified: trunk/src/gui/widgets/slider.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/slider.hpp?rev=28477&r1=28476&r2=28477&view=diff
==============================================================================
--- trunk/src/gui/widgets/slider.hpp (original)
+++ trunk/src/gui/widgets/slider.hpp Tue Aug 12 08:20:55 2008
@@ -27,7 +27,10 @@
tslider() :
tscrollbar_(),
best_slider_length_(0),
- minimum_value_(0)
+ minimum_value_(0),
+ minimum_value_label_(),
+ maximum_value_label_(),
+ value_labels_()
{
}
@@ -121,9 +124,24 @@
/** Inherited from tscrollbar. */
void update_canvas();
+ /**
+ * When the slider shows the minimum value can show a special text.
+ * If this text is not empty this text is shown else the minimum value.
+ */
t_string minimum_value_label_;
+
+ /**
+ * When the slider shows the maximum value can show a special text.
+ * If this text is not empty this text is shown else the maximum value.
+ */
t_string maximum_value_label_;
+ /**
+ * This allows the slider to show custom texts instead of the values.
+ * This vector should have the same amount of items as options for the
+ * sliders. When set these texts are shown instead of the values. It
also
+ * overrides minimum_value_label_ and maximum_value_label_.
+ */
std::vector<t_string> value_labels_;
/** Inherited from tcontrol. */
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits