![]() |
SUMO - Simulation of Urban MObility
|
Spinner control. More...
#include <FXRealSpinDial.h>


Public Types | |
| enum | { ID_DIAL = FXPacker::ID_LAST, ID_INCREMENT, ID_DECREMENT, ID_ENTRY, ID_LAST } |
Public Member Functions | |
| virtual void | create () |
| Create server-side resources. More... | |
| void | decrement (FXint incMode=SPINDIAL_INC_NORMAL) |
| Decrement spinner. More... | |
| virtual void | disable () |
| Disable spinner. More... | |
| virtual void | enable () |
| Enable spinner. More... | |
| FXRealSpinDial (FXComposite *p, FXint cols, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=SPINDIAL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| Construct a spinner. More... | |
| FXdouble | getCoarseIncrement () const |
| Return spinner increment. More... | |
| FXColor | getCursorColor () const |
| Return the cursor color. More... | |
| virtual FXint | getDefaultHeight () |
| Return default height. More... | |
| virtual FXint | getDefaultWidth () |
| Return default width. More... | |
| const FXDial & | getDial () const |
| FXColor | getDialColor () const |
| Return color of the dial. More... | |
| FXColor | getDownArrowColor () const |
| Return color of the the down arrow. More... | |
| FXdouble | getFineIncrement () const |
| Return spinner increment. More... | |
| FXFont * | getFont () const |
| Get the text font. More... | |
| FXString | getHelpText () const |
| Get the status line help text for this spinner. More... | |
| FXdouble | getIncrement () const |
| Return spinner increment. More... | |
| FXbool | getNumberFormatExponent () const |
| Return whether the exponent is used in number display. More... | |
| FXint | getNumberFormatPrecision () const |
| Return the digits of precision used to display numbers. More... | |
| FXString | getNumberFormatString () const |
| Return the format string for number display. More... | |
| void | getRange (FXdouble &lo, FXdouble &hi) const |
| Get the spinner's current range. More... | |
| FXColor | getSelBackColor () const |
| Return selected background color. More... | |
| FXColor | getSelTextColor () const |
| Return selected text color. More... | |
| FXuint | getSpinnerStyle () const |
| Return current spinner style. More... | |
| FXColor | getTextColor () const |
| Return text color. More... | |
| FXString | getTipText () const |
| Get the tool tip message for this spinner. More... | |
| FXColor | getUpArrowColor () const |
| Return color of the up arrow. More... | |
| FXdouble | getValue () const |
| Return current value. More... | |
| void | increment (FXint incMode=SPINDIAL_INC_NORMAL) |
| Increment spinner. More... | |
| FXbool | isCyclic () const |
| Return TRUE if in cyclic mode. More... | |
| FXbool | isDialVisible () const |
| Return TRUE if dial is visible. More... | |
| FXbool | isEditable () const |
| Return TRUE if text field is editable. More... | |
| FXbool | isTextVisible () const |
| Return TRUE if text is visible. More... | |
| virtual void | layout () |
| Perform layout. More... | |
| virtual void | load (FXStream &store) |
| Load spinner from a stream. More... | |
| long | onChgDial (FXObject *, FXSelector, void *) |
| long | onChgEntry (FXObject *, FXSelector, void *) |
| long | onCmdDecrement (FXObject *, FXSelector, void *) |
| long | onCmdDial (FXObject *, FXSelector, void *) |
| long | onCmdEntry (FXObject *, FXSelector, void *) |
| long | onCmdGetIntRange (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetRealRange (FXObject *, FXSelector, void *) |
| long | onCmdGetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdIncrement (FXObject *, FXSelector, void *) |
| long | onCmdSetIntRange (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdSetRealRange (FXObject *, FXSelector, void *) |
| long | onCmdSetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| long | onMouseWheel (FXObject *, FXSelector, void *) |
| long | onUpdDecrement (FXObject *, FXSelector, void *) |
| long | onUpdDial (FXObject *, FXSelector, void *) |
| long | onUpdEntry (FXObject *, FXSelector, void *) |
| long | onUpdIncrement (FXObject *, FXSelector, void *) |
| virtual void | save (FXStream &store) const |
| Save spinner to a stream. More... | |
| void | selectAll () |
| Mark the text entry as selected. More... | |
| void | setCoarseIncrement (FXdouble increment) |
| Change spinner coarse adjustment increment (when SHIFT key held down) More... | |
| void | setCursorColor (FXColor clr) |
| Changes the cursor color. More... | |
| void | setCyclic (FXbool cyclic) |
| Set to cyclic mode, i.e. wrap around at maximum/minimum. More... | |
| void | setDialColor (FXColor clr) |
| Change color of the dial. More... | |
| void | setDialVisible (FXbool shown) |
| Set dial visible flag. More... | |
| void | setDownArrowColor (FXColor clr) |
| Change color of the down arrow. More... | |
| void | setEditable (FXbool edit=TRUE) |
| Allow editing of the text field. More... | |
| void | setFineIncrement (FXdouble increment) |
| Change spinner fine adjustment increment (when CTRL key held down) More... | |
| void | setFont (FXFont *fnt) |
| Set the text font. More... | |
| void | setFormatString (const FXchar *fmt) |
| void | setHelpText (const FXString &text) |
| Set the status line help text for this spinner. More... | |
| void | setIncrement (FXdouble increment) |
| Change spinner increment. More... | |
| void | setIncrements (FXdouble fine, FXdouble norm, FXdouble coarse) |
| Change all spinner increment. More... | |
| void | setNumberFormat (FXint prec, FXbool bExp=FALSE) |
| void | setRange (FXdouble lo, FXdouble hi) |
| Change the spinner's range. More... | |
| void | setSelBackColor (FXColor clr) |
| Change selected background color. More... | |
| void | setSelTextColor (FXColor clr) |
| Change selected text color. More... | |
| void | setSpinnerStyle (FXuint style) |
| Change spinner style. More... | |
| void | setTextColor (FXColor clr) |
| Change text color. More... | |
| void | setTextVisible (FXbool shown) |
| Set text visible flag. More... | |
| void | setTipText (const FXString &text) |
| Set the tool tip message for this spinner. More... | |
| void | setUpArrowColor (FXColor clr) |
| Change color of the up arrow. More... | |
| virtual void | setValue (FXdouble value) |
| Change current value. More... | |
| virtual | ~FXRealSpinDial () |
| Destructor. More... | |
Protected Member Functions | |
| FXRealSpinDial () | |
Protected Attributes | |
| FXDial * | dial |
| FXint | dialpos |
| FXArrowButton * | downButton |
| FXdouble | incr [3] |
| FXint | keystate |
| FXdouble | pos |
| FXdouble | range [2] |
| FXRealSpinDialText * | textField |
| FXArrowButton * | upButton |
Private Member Functions | |
| FXRealSpinDial (const FXRealSpinDial &) | |
| FXRealSpinDial & | operator= (const FXRealSpinDial &) |
Spinner control.
Definition at line 68 of file FXRealSpinDial.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ID_DIAL | |
| ID_INCREMENT | |
| ID_DECREMENT | |
| ID_ENTRY | |
| ID_LAST | |
Definition at line 111 of file FXRealSpinDial.h.
|
protected |
Definition at line 459 of file FXRealSpinDial.cpp.
|
private |
| FX::FXRealSpinDial::FXRealSpinDial | ( | FXComposite * | p, |
| FXint | cols, | ||
| FXObject * | tgt = NULL, |
||
| FXSelector | sel = 0, |
||
| FXuint | opts = SPINDIAL_NORMAL, |
||
| FXint | x = 0, |
||
| FXint | y = 0, |
||
| FXint | w = 0, |
||
| FXint | h = 0, |
||
| FXint | pl = DEFAULT_PAD, |
||
| FXint | pr = DEFAULT_PAD, |
||
| FXint | pt = DEFAULT_PAD, |
||
| FXint | pb = DEFAULT_PAD |
||
| ) |
Construct a spinner.
Definition at line 476 of file FXRealSpinDial.cpp.
References dial, DIALINCR, dialpos, downButton, ID_DECREMENT, ID_DIAL, ID_ENTRY, ID_INCREMENT, incr, INTMAX, INTMIN, keystate, pos, range, FX::SPINDIAL_NOMAX, FX::SPINDIAL_NOMIN, textField, and upButton.
|
virtual |
Destructor.
Definition at line 1256 of file FXRealSpinDial.cpp.
References dial, downButton, textField, and upButton.
Referenced by getCoarseIncrement().
|
virtual |
Create server-side resources.
Definition at line 519 of file FXRealSpinDial.cpp.
| void FX::FXRealSpinDial::decrement | ( | FXint | incMode = SPINDIAL_INC_NORMAL | ) |
Decrement spinner.
Definition at line 951 of file FXRealSpinDial.cpp.
References incr, pos, range, setValue(), FX::SPINDIAL_CYCLIC, and FX::SPINDIAL_LOG.
Referenced by onCmdDecrement(), onKeyPress(), and onMouseWheel().
|
virtual |
|
virtual |
|
inline |
Return spinner increment.
Definition at line 204 of file FXRealSpinDial.h.
References getCursorColor(), getDial(), getDialColor(), getDownArrowColor(), getFont(), getHelpText(), getNumberFormatExponent(), getNumberFormatPrecision(), getNumberFormatString(), getSelBackColor(), getSelTextColor(), getSpinnerStyle(), getTextColor(), getTipText(), getUpArrowColor(), isEditable(), load(), save(), selectAll(), setCursorColor(), setDialColor(), setDownArrowColor(), setEditable(), setFont(), setFormatString(), setHelpText(), setNumberFormat(), setSelBackColor(), setSelTextColor(), setSpinnerStyle(), setTextColor(), setTipText(), setUpArrowColor(), text(), and ~FXRealSpinDial().
| FXColor FX::FXRealSpinDial::getCursorColor | ( | ) | const |
Return the cursor color.
Definition at line 1205 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
|
virtual |
|
virtual |
Return default width.
Definition at line 503 of file FXRealSpinDial.cpp.
References DIALWIDTH, GAPWIDTH, FX::SPINDIAL_NOTEXT, and textField.
| const FXDial & FXRealSpinDial::getDial | ( | ) | const |
Definition at line 1274 of file FXRealSpinDial.cpp.
References dial.
Referenced by getCoarseIncrement().
| FXColor FX::FXRealSpinDial::getDialColor | ( | ) | const |
Return color of the dial.
Definition at line 1144 of file FXRealSpinDial.cpp.
References dial.
Referenced by getCoarseIncrement().
| FXColor FX::FXRealSpinDial::getDownArrowColor | ( | ) | const |
Return color of the the down arrow.
Definition at line 1164 of file FXRealSpinDial.cpp.
References downButton.
Referenced by getCoarseIncrement().
|
inline |
Return spinner increment.
Definition at line 200 of file FXRealSpinDial.h.
| FXFont * FX::FXRealSpinDial::getFont | ( | ) | const |
Get the text font.
Definition at line 1069 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXString FX::FXRealSpinDial::getHelpText | ( | ) | const |
Get the status line help text for this spinner.
Definition at line 1084 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
|
inline |
Return spinner increment.
Definition at line 196 of file FXRealSpinDial.h.
| FXbool FX::FXRealSpinDial::getNumberFormatExponent | ( | ) | const |
Return whether the exponent is used in number display.
Definition at line 1217 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::getNumberFormatExponent(), and textField.
Referenced by getCoarseIncrement().
| FXint FX::FXRealSpinDial::getNumberFormatPrecision | ( | ) | const |
Return the digits of precision used to display numbers.
Definition at line 1213 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::getNumberFormatPrecision(), and textField.
Referenced by getCoarseIncrement().
| FXString FX::FXRealSpinDial::getNumberFormatString | ( | ) | const |
Return the format string for number display.
Definition at line 1225 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::getNumberFormatString(), and textField.
Referenced by getCoarseIncrement().
|
inline |
Get the spinner's current range.
Definition at line 181 of file FXRealSpinDial.h.
References increment(), setCoarseIncrement(), setFineIncrement(), setIncrement(), and setIncrements().
Referenced by onCmdGetRealRange().
| FXColor FX::FXRealSpinDial::getSelBackColor | ( | ) | const |
Return selected background color.
Definition at line 1185 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXColor FX::FXRealSpinDial::getSelTextColor | ( | ) | const |
Return selected text color.
Definition at line 1195 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXuint FX::FXRealSpinDial::getSpinnerStyle | ( | ) | const |
Return current spinner style.
Definition at line 1122 of file FXRealSpinDial.cpp.
References SPINDIAL_MASK.
Referenced by getCoarseIncrement().
| FXColor FX::FXRealSpinDial::getTextColor | ( | ) | const |
Return text color.
Definition at line 1175 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXString FX::FXRealSpinDial::getTipText | ( | ) | const |
Get the tool tip message for this spinner.
Definition at line 1100 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXColor FX::FXRealSpinDial::getUpArrowColor | ( | ) | const |
Return color of the up arrow.
Definition at line 1154 of file FXRealSpinDial.cpp.
References upButton.
Referenced by getCoarseIncrement().
|
inline |
Return current value.
Definition at line 173 of file FXRealSpinDial.h.
References pos, and setRange().
Referenced by GUIApplicationWindow::getDelay(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdChangeOption(), GUIApplicationWindow::onCmdDelayToggle(), onCmdGetIntValue(), onCmdGetRealValue(), GNESelectorFrame::onCmdScaleSelection(), GUILaneSpeedTrigger::GUIManip_LaneSpeedTrigger::onCmdUserDef(), GUITriggeredRerouter::GUIManip_TriggeredRerouter::onCmdUserDef(), and GUIRunThread::run().
| void FX::FXRealSpinDial::increment | ( | FXint | incMode = SPINDIAL_INC_NORMAL | ) |
Increment spinner.
Definition at line 928 of file FXRealSpinDial.cpp.
References incr, pos, range, setValue(), FX::SPINDIAL_CYCLIC, and FX::SPINDIAL_LOG.
Referenced by getRange(), onCmdIncrement(), onKeyPress(), and onMouseWheel().
| FXbool FX::FXRealSpinDial::isCyclic | ( | ) | const |
Return TRUE if in cyclic mode.
Definition at line 974 of file FXRealSpinDial.cpp.
References FX::SPINDIAL_CYCLIC.
| FXbool FX::FXRealSpinDial::isDialVisible | ( | ) | const |
Return TRUE if dial is visible.
| FXbool FX::FXRealSpinDial::isEditable | ( | ) | const |
Return TRUE if text field is editable.
Definition at line 1134 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| FXbool FX::FXRealSpinDial::isTextVisible | ( | ) | const |
Return TRUE if text is visible.
Definition at line 1047 of file FXRealSpinDial.cpp.
References textField.
|
virtual |
Perform layout.
Definition at line 545 of file FXRealSpinDial.cpp.
References BUTTONWIDTH, dial, DIALWIDTH, downButton, GAPWIDTH, FX::SPINDIAL_NOBUTTONS, FX::SPINDIAL_NODIAL, FX::SPINDIAL_NOTEXT, textField, and upButton.
|
virtual |
Load spinner from a stream.
Definition at line 1243 of file FXRealSpinDial.cpp.
References dial, downButton, incr, pos, range, textField, and upButton.
Referenced by getCoarseIncrement().
| long FX::FXRealSpinDial::onChgDial | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 607 of file FXRealSpinDial.cpp.
References dial, DIALINCR, DIALMULT, dialpos, incr, pos, range, setValue(), FX::SPINDIAL_CYCLIC, and FX::SPINDIAL_LOG.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onChgEntry | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 763 of file FXRealSpinDial.cpp.
References pos, range, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdDecrement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 715 of file FXRealSpinDial.cpp.
References decrement(), keystate, pos, FX::SPINDIAL_INC_COARSE, FX::SPINDIAL_INC_FINE, and FX::SPINDIAL_INC_NORMAL.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdDial | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 660 of file FXRealSpinDial.cpp.
| long FX::FXRealSpinDial::onCmdEntry | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 782 of file FXRealSpinDial.cpp.
References pos, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdGetIntRange | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 891 of file FXRealSpinDial.cpp.
References range.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdGetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 875 of file FXRealSpinDial.cpp.
References getValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdGetRealRange | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 920 of file FXRealSpinDial.cpp.
References getRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdGetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 906 of file FXRealSpinDial.cpp.
References getValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdIncrement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 683 of file FXRealSpinDial.cpp.
References increment(), keystate, pos, FX::SPINDIAL_INC_COARSE, FX::SPINDIAL_INC_FINE, and FX::SPINDIAL_INC_NORMAL.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdSetIntRange | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 882 of file FXRealSpinDial.cpp.
References setRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdSetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 868 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdSetRealRange | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 913 of file FXRealSpinDial.cpp.
References setRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdSetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 899 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onCmdSetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 861 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onKeyPress | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 792 of file FXRealSpinDial.cpp.
References decrement(), increment(), keystate, pos, FX::SPINDIAL_INC_COARSE, FX::SPINDIAL_INC_FINE, FX::SPINDIAL_INC_NORMAL, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onKeyRelease | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 831 of file FXRealSpinDial.cpp.
References keystate, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onMotion | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 852 of file FXRealSpinDial.cpp.
References keystate.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onMouseWheel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | p | ||
| ) |
Definition at line 741 of file FXRealSpinDial.cpp.
References decrement(), increment(), keystate, pos, FX::SPINDIAL_INC_COARSE, FX::SPINDIAL_INC_FINE, and FX::SPINDIAL_INC_NORMAL.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onUpdDecrement | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 704 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onUpdDial | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 596 of file FXRealSpinDial.cpp.
References pos, range, and FX::SPINDIAL_CYCLIC.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onUpdEntry | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 737 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
| long FX::FXRealSpinDial::onUpdIncrement | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 672 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
|
private |
|
virtual |
Save spinner to a stream.
Definition at line 1230 of file FXRealSpinDial.cpp.
References dial, downButton, incr, pos, range, textField, and upButton.
Referenced by getCoarseIncrement().
| void FXRealSpinDial::selectAll | ( | ) |
Mark the text entry as selected.
Definition at line 1267 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setCoarseIncrement | ( | FXdouble | increment | ) |
Change spinner coarse adjustment increment (when SHIFT key held down)
Definition at line 1030 of file FXRealSpinDial.cpp.
References incr.
Referenced by getRange().
| void FX::FXRealSpinDial::setCursorColor | ( | FXColor | clr | ) |
Changes the cursor color.
Definition at line 1200 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setCyclic | ( | FXbool | cyclic | ) |
Set to cyclic mode, i.e. wrap around at maximum/minimum.
Definition at line 980 of file FXRealSpinDial.cpp.
References FX::SPINDIAL_CYCLIC.
| void FX::FXRealSpinDial::setDialColor | ( | FXColor | clr | ) |
Change color of the dial.
Definition at line 1139 of file FXRealSpinDial.cpp.
References dial.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setDialVisible | ( | FXbool | shown | ) |
Set dial visible flag.
| void FX::FXRealSpinDial::setDownArrowColor | ( | FXColor | clr | ) |
Change color of the down arrow.
Definition at line 1159 of file FXRealSpinDial.cpp.
References downButton.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setEditable | ( | FXbool | edit = TRUE | ) |
Allow editing of the text field.
Definition at line 1128 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setFineIncrement | ( | FXdouble | increment | ) |
Change spinner fine adjustment increment (when CTRL key held down)
Definition at line 1024 of file FXRealSpinDial.cpp.
References incr.
Referenced by getRange().
| void FX::FXRealSpinDial::setFont | ( | FXFont * | fnt | ) |
Set the text font.
Definition at line 1063 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setFormatString | ( | const FXchar * | fmt | ) |
Set a format string for number display, using printf syntax. Format must contain no more than one fmt pattern. Calling this overrides the simple precision/exponent number format.
Definition at line 1221 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::setFormatString(), and textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setHelpText | ( | const FXString & | text | ) |
Set the status line help text for this spinner.
Definition at line 1075 of file FXRealSpinDial.cpp.
References dial, downButton, textField, and upButton.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setIncrement | ( | FXdouble | increment | ) |
Change spinner increment.
Definition at line 1018 of file FXRealSpinDial.cpp.
References incr.
Referenced by getRange().
| void FX::FXRealSpinDial::setIncrements | ( | FXdouble | fine, |
| FXdouble | norm, | ||
| FXdouble | coarse | ||
| ) |
Change all spinner increment.
Definition at line 1036 of file FXRealSpinDial.cpp.
References incr.
Referenced by GUIApplicationWindow::buildToolBars(), and getRange().
| void FX::FXRealSpinDial::setNumberFormat | ( | FXint | prec, |
| FXbool | bExp = FALSE |
||
| ) |
Set the precision and exponent display for numbers Calling this overrides the number format string.
Definition at line 1209 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::setNumberFormat(), and textField.
Referenced by GUIApplicationWindow::buildToolBars(), and getCoarseIncrement().
| void FX::FXRealSpinDial::setRange | ( | FXdouble | lo, |
| FXdouble | hi | ||
| ) |
Change the spinner's range.
Definition at line 990 of file FXRealSpinDial.cpp.
References pos, range, and setValue().
Referenced by GUIApplicationWindow::buildToolBars(), getValue(), onCmdSetIntRange(), and onCmdSetRealRange().
| void FX::FXRealSpinDial::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 1180 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 1190 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setSpinnerStyle | ( | FXuint | style | ) |
Change spinner style.
Definition at line 1106 of file FXRealSpinDial.cpp.
References range, SPINDIAL_MASK, FX::SPINDIAL_NOMAX, and FX::SPINDIAL_NOMIN.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setTextColor | ( | FXColor | clr | ) |
Change text color.
Definition at line 1170 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setTextVisible | ( | FXbool | shown | ) |
Set text visible flag.
Definition at line 1053 of file FXRealSpinDial.cpp.
References FX::SPINDIAL_NOTEXT.
| void FX::FXRealSpinDial::setTipText | ( | const FXString & | text | ) |
Set the tool tip message for this spinner.
Definition at line 1090 of file FXRealSpinDial.cpp.
References dial, downButton, textField, and upButton.
Referenced by getCoarseIncrement().
| void FX::FXRealSpinDial::setUpArrowColor | ( | FXColor | clr | ) |
Change color of the up arrow.
Definition at line 1149 of file FXRealSpinDial.cpp.
References upButton.
Referenced by getCoarseIncrement().
|
virtual |
Change current value.
Definition at line 1003 of file FXRealSpinDial.cpp.
References pos, range, and textField.
Referenced by GUIApplicationWindow::buildToolBars(), decrement(), GUIApplicationWindow::handleEvent_SimulationLoaded(), increment(), onChgDial(), GUIApplicationWindow::onCmdDelayToggle(), onCmdSetIntValue(), onCmdSetRealValue(), onCmdSetValue(), GUIApplicationWindow::setDelay(), and setRange().
|
protected |
Definition at line 74 of file FXRealSpinDial.h.
Referenced by disable(), enable(), FXRealSpinDial(), getDial(), getDialColor(), layout(), load(), onChgDial(), onCmdDial(), save(), setDialColor(), setHelpText(), setTipText(), and ~FXRealSpinDial().
|
protected |
Definition at line 78 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), onChgDial(), and onCmdDial().
|
protected |
Definition at line 73 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), getDownArrowColor(), layout(), load(), save(), setDownArrowColor(), setHelpText(), setTipText(), and ~FXRealSpinDial().
|
protected |
Definition at line 76 of file FXRealSpinDial.h.
Referenced by decrement(), FXRealSpinDial(), increment(), load(), onChgDial(), save(), setCoarseIncrement(), setFineIncrement(), setIncrement(), and setIncrements().
|
protected |
Definition at line 79 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), onCmdDecrement(), onCmdIncrement(), onKeyPress(), onKeyRelease(), onMotion(), and onMouseWheel().
|
protected |
Definition at line 77 of file FXRealSpinDial.h.
Referenced by decrement(), FXRealSpinDial(), getValue(), increment(), load(), onChgDial(), onChgEntry(), onCmdDecrement(), onCmdEntry(), onCmdIncrement(), onKeyPress(), onMouseWheel(), onUpdDecrement(), onUpdDial(), onUpdIncrement(), save(), setRange(), and setValue().
|
protected |
Definition at line 75 of file FXRealSpinDial.h.
Referenced by decrement(), FXRealSpinDial(), increment(), load(), onChgDial(), onChgEntry(), onCmdGetIntRange(), onUpdDecrement(), onUpdDial(), onUpdIncrement(), save(), setRange(), setSpinnerStyle(), and setValue().
|
protected |
Definition at line 71 of file FXRealSpinDial.h.
Referenced by disable(), enable(), FXRealSpinDial(), getCursorColor(), getDefaultHeight(), getDefaultWidth(), getFont(), getHelpText(), getNumberFormatExponent(), getNumberFormatPrecision(), getNumberFormatString(), getSelBackColor(), getSelTextColor(), getTextColor(), getTipText(), isEditable(), isTextVisible(), layout(), load(), onChgEntry(), onCmdEntry(), onKeyPress(), onKeyRelease(), save(), selectAll(), setCursorColor(), setEditable(), setFont(), setFormatString(), setHelpText(), setNumberFormat(), setSelBackColor(), setSelTextColor(), setTextColor(), setTipText(), setValue(), and ~FXRealSpinDial().
|
protected |
Definition at line 72 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), getUpArrowColor(), layout(), load(), save(), setHelpText(), setTipText(), setUpArrowColor(), and ~FXRealSpinDial().