|
class Option : public Pusher

Widget providing the selection of 2 or alternatively 3 states (true, false, Null). Value of Option is either 0, 1, or Null. When setting Value to Option, string "1" is interpreted as true state, other non-Null strings as false. Depending on whether Option is in NotNull mode, Null is interpreted as false or Null state. 0 is always interpreted as false, Null number as either Null (NotNull mode) or false (NoNotNull mode), other numbers as true.
Derived from Pusher
Option()
Initializes Option into NotNull, 2-state mode, false value and standard appearance.
~Option()
Default destructor.
Option& Set(int b)
Sets Option to the specified state (0, 1 or Null).
int Get() const
|
Return value |
Current state of Option. |
operator int() const
void operator=(int b)
Same as Set(b).
Option& BlackEdge(bool b = true)
Activates visual appearance suitable for placing Option on white background (SColorPaper), like in list, as opposed to default representation suitable for placing it on dialog (SColorFace).
|
Return value |
*this for chaining. |
Option& SwitchImage(bool b = true)
Activates visual representation that paints the Option with the Switch appearance.
|
Return value |
*this for chaining. |
Option& ThreeState(bool b = true)
Activates three-state mode. Also activates NoNotNull mode.
|
Return value |
*this for chaining. |
Option& NotNull(bool nn = true)
Activates NotNull mode - Null Value assigned to Option (via SetData) is interpreted as false.
|
Return value |
*this for chaining. |
Option& NoNotNull()
Activates NoNotNull mode - Null Value assigned to Option is interpreted as Null.
|
Return value |
*this for chaining. |
Option& ShowLabel(bool b = true)
Togles the display of the option's label.
|
Return value |
*this for chaining. |
|