27 #ifndef _CEGUISpinner_h_
28 #define _CEGUISpinner_h_
31 #include "../Window.h"
34 # pragma warning(push)
35 # pragma warning(disable : 4251)
133 void initialiseComponents(
void);
146 double getCurrentValue(
void)
const;
156 double getStepSize(
void)
const;
165 double getMaximumValue(
void)
const;
174 double getMinimumValue(
void)
const;
199 void setCurrentValue(
double value);
212 void setStepSize(
double step);
224 void setMaximumValue(
double maxValue);
236 void setMinimumValue(
double minVaue);
272 virtual double getValueFromText(
void)
const;
281 virtual String getTextFromValue(
void)
const;
394 bool handleIncreaseButton(
const EventArgs& e);
395 bool handleDecreaseButton(
const EventArgs& e);
396 bool handleEditTextChange(
const EventArgs& e);
419 void addSpinnerProperties(
void);
433 static const String& getDataTypeName()
435 static String type(
"TextInputMode");
440 static return_type fromString(
const String& str)
442 if (str ==
"FloatingPoint")
446 else if (str ==
"Hexadecimal")
450 else if (str ==
"Octal")
460 static string_return_type toString(pass_type val)
468 return "FloatingPoint";
472 return "Hexadecimal";
480 assert(
false &&
"Invalid Text Input Mode");
481 return "FloatingPoint";
490 #if defined(_MSC_VER)
491 # pragma warning(pop)
494 #endif // end of guard _CEGUISpinner_h_
Hexadecimal.
Definition: Spinner.h:61
double d_maxValue
Maximum value for spinner.
Definition: Spinner.h:404
static const String EventMaximumValueChanged
Definition: Spinner.h:87
static const String OctalValidator
Validator regex used for octal mode.
Definition: Spinner.h:258
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
static const String EventValueChanged
Definition: Spinner.h:75
static const String EventMinimumValueChanged
Definition: Spinner.h:93
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
double d_minValue
Minimum value for spinner.
Definition: Spinner.h:405
static const String IncreaseButtonName
Widget name for the increase button component.
Definition: Spinner.h:105
Octal.
Definition: Spinner.h:62
static const String DecreaseButtonName
Widget name for the decrease button component.
Definition: Spinner.h:106
static const String WidgetTypeName
Window factory name.
Definition: Spinner.h:68
Floating point decimal.
Definition: Spinner.h:59
static const String FloatValidator
Validator regex used for floating point mode.
Definition: Spinner.h:255
TextInputMode d_inputMode
Current text display/input mode.
Definition: Spinner.h:406
Base class for the Spinner widget.
Definition: Spinner.h:50
double d_stepSize
Step size value used y the increase & decrease buttons.
Definition: Spinner.h:402
Integer decimal.
Definition: Spinner.h:60
static const String EditboxName
Widget name for the editbox thumb component.
Definition: Spinner.h:104
double d_currentValue
Numerical copy of the text in d_editbox.
Definition: Spinner.h:403
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Helper class used to convert various data types to and from the format expected in Property strings...
Definition: ForwardRefs.h:84
Base class for an Editbox widget.
Definition: widgets/Editbox.h:69
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
static const String EventTextInputModeChanged
Definition: Spinner.h:99
static const String IntegerValidator
Validator regex used for decimal integer mode.
Definition: Spinner.h:256
static const String EventStepChanged
Definition: Spinner.h:81
static const String HexValidator
Validator regex used for hexadecimal mode.
Definition: Spinner.h:257
static const String EventNamespace
Namespace for global events.
Definition: Spinner.h:69
EventArgs based class that is used for Activated and Deactivated window events.
Definition: InputEvent.h:329
TextInputMode
Enumerated type specifying possible input and/or display modes for the spinner.
Definition: Spinner.h:57
String class used within the GUI system.
Definition: String.h:62