![]() |
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 67 of file FXRealSpinDial.h.
anonymous enum |
Enumerator | |
---|---|
ID_DIAL | |
ID_INCREMENT | |
ID_DECREMENT | |
ID_ENTRY | |
ID_LAST |
Definition at line 110 of file FXRealSpinDial.h.
|
protected |
Definition at line 458 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 475 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 1255 of file FXRealSpinDial.cpp.
References dial, downButton, textField, and upButton.
Referenced by getCoarseIncrement().
|
virtual |
Create server-side resources.
Definition at line 518 of file FXRealSpinDial.cpp.
void FX::FXRealSpinDial::decrement | ( | FXint | incMode = SPINDIAL_INC_NORMAL | ) |
Decrement spinner.
Definition at line 950 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 203 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(), and ~FXRealSpinDial().
FXColor FX::FXRealSpinDial::getCursorColor | ( | ) | const |
Return the cursor color.
Definition at line 1204 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
|
virtual |
|
virtual |
Return default width.
Definition at line 502 of file FXRealSpinDial.cpp.
References DIALWIDTH, GAPWIDTH, FX::SPINDIAL_NOTEXT, and textField.
const FXDial & FXRealSpinDial::getDial | ( | ) | const |
Definition at line 1273 of file FXRealSpinDial.cpp.
References dial.
Referenced by getCoarseIncrement().
FXColor FX::FXRealSpinDial::getDialColor | ( | ) | const |
Return color of the dial.
Definition at line 1143 of file FXRealSpinDial.cpp.
References dial.
Referenced by getCoarseIncrement().
FXColor FX::FXRealSpinDial::getDownArrowColor | ( | ) | const |
Return color of the the down arrow.
Definition at line 1163 of file FXRealSpinDial.cpp.
References downButton.
Referenced by getCoarseIncrement().
|
inline |
Return spinner increment.
Definition at line 199 of file FXRealSpinDial.h.
FXFont * FX::FXRealSpinDial::getFont | ( | ) | const |
Get the text font.
Definition at line 1068 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 1083 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
|
inline |
Return spinner increment.
Definition at line 195 of file FXRealSpinDial.h.
FXbool FX::FXRealSpinDial::getNumberFormatExponent | ( | ) | const |
Return whether the exponent is used in number display.
Definition at line 1216 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 1212 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 1224 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::getNumberFormatString(), and textField.
Referenced by getCoarseIncrement().
|
inline |
Get the spinner's current range.
Definition at line 180 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 1184 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
FXColor FX::FXRealSpinDial::getSelTextColor | ( | ) | const |
Return selected text color.
Definition at line 1194 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
FXuint FX::FXRealSpinDial::getSpinnerStyle | ( | ) | const |
Return current spinner style.
Definition at line 1121 of file FXRealSpinDial.cpp.
References SPINDIAL_MASK.
Referenced by getCoarseIncrement().
FXColor FX::FXRealSpinDial::getTextColor | ( | ) | const |
Return text color.
Definition at line 1174 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 1099 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
FXColor FX::FXRealSpinDial::getUpArrowColor | ( | ) | const |
Return color of the up arrow.
Definition at line 1153 of file FXRealSpinDial.cpp.
References upButton.
Referenced by getCoarseIncrement().
|
inline |
Return current value.
Definition at line 172 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 927 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 973 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 1133 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
FXbool FX::FXRealSpinDial::isTextVisible | ( | ) | const |
Return TRUE if text is visible.
Definition at line 1046 of file FXRealSpinDial.cpp.
References textField.
|
virtual |
Perform layout.
Definition at line 544 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 1242 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 606 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 762 of file FXRealSpinDial.cpp.
References pos, range, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdDecrement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 714 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 659 of file FXRealSpinDial.cpp.
long FX::FXRealSpinDial::onCmdEntry | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 781 of file FXRealSpinDial.cpp.
References pos, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdGetIntRange | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 890 of file FXRealSpinDial.cpp.
References range.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdGetIntValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 874 of file FXRealSpinDial.cpp.
References getValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdGetRealRange | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 919 of file FXRealSpinDial.cpp.
References getRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdGetRealValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 905 of file FXRealSpinDial.cpp.
References getValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdIncrement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 682 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 881 of file FXRealSpinDial.cpp.
References setRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdSetIntValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 867 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdSetRealRange | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 912 of file FXRealSpinDial.cpp.
References setRange().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdSetRealValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 898 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onCmdSetValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 860 of file FXRealSpinDial.cpp.
References setValue().
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onKeyPress | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 791 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 830 of file FXRealSpinDial.cpp.
References keystate, and textField.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onMotion | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 851 of file FXRealSpinDial.cpp.
References keystate.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onMouseWheel | ( | FXObject * | , |
FXSelector | , | ||
void * | p | ||
) |
Definition at line 740 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 703 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onUpdDial | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 595 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 736 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
long FX::FXRealSpinDial::onUpdIncrement | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 671 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDialText::onCmdSetRealValue().
|
private |
|
virtual |
Save spinner to a stream.
Definition at line 1229 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 1266 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 1029 of file FXRealSpinDial.cpp.
References incr.
Referenced by getRange().
void FX::FXRealSpinDial::setCursorColor | ( | FXColor | clr | ) |
Changes the cursor color.
Definition at line 1199 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 979 of file FXRealSpinDial.cpp.
References FX::SPINDIAL_CYCLIC.
void FX::FXRealSpinDial::setDialColor | ( | FXColor | clr | ) |
Change color of the dial.
Definition at line 1138 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 1158 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 1127 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 1023 of file FXRealSpinDial.cpp.
References incr.
Referenced by getRange().
void FX::FXRealSpinDial::setFont | ( | FXFont * | fnt | ) |
Set the text font.
Definition at line 1062 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 1220 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 1074 of file FXRealSpinDial.cpp.
References dial, downButton, textField, and upButton.
Referenced by getCoarseIncrement(), and GNESelectorFrame::GNESelectorFrame().
void FX::FXRealSpinDial::setIncrement | ( | FXdouble | increment | ) |
Change spinner increment.
Definition at line 1017 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 1035 of file FXRealSpinDial.cpp.
References incr.
Referenced by GUIApplicationWindow::buildToolBars(), getRange(), and GNESelectorFrame::GNESelectorFrame().
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 1208 of file FXRealSpinDial.cpp.
References FX::FXRealSpinDialText::setNumberFormat(), and textField.
Referenced by GUIApplicationWindow::buildToolBars(), getCoarseIncrement(), and GNESelectorFrame::GNESelectorFrame().
void FX::FXRealSpinDial::setRange | ( | FXdouble | lo, |
FXdouble | hi | ||
) |
Change the spinner's range.
Definition at line 989 of file FXRealSpinDial.cpp.
References pos, range, and setValue().
Referenced by GUIApplicationWindow::buildToolBars(), getValue(), GNESelectorFrame::GNESelectorFrame(), onCmdSetIntRange(), and onCmdSetRealRange().
void FX::FXRealSpinDial::setSelBackColor | ( | FXColor | clr | ) |
Change selected background color.
Definition at line 1179 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
void FX::FXRealSpinDial::setSelTextColor | ( | FXColor | clr | ) |
Change selected text color.
Definition at line 1189 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
void FX::FXRealSpinDial::setSpinnerStyle | ( | FXuint | style | ) |
Change spinner style.
Definition at line 1105 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 1169 of file FXRealSpinDial.cpp.
References textField.
Referenced by getCoarseIncrement().
void FX::FXRealSpinDial::setTextVisible | ( | FXbool | shown | ) |
Set text visible flag.
Definition at line 1052 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 1089 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 1148 of file FXRealSpinDial.cpp.
References upButton.
Referenced by getCoarseIncrement().
|
virtual |
Change current value.
Definition at line 1002 of file FXRealSpinDial.cpp.
References pos, range, and textField.
Referenced by GUIApplicationWindow::buildToolBars(), decrement(), GNESelectorFrame::GNESelectorFrame(), GUIApplicationWindow::handleEvent_SimulationLoaded(), increment(), onChgDial(), GUIApplicationWindow::onCmdDelayToggle(), onCmdSetIntValue(), onCmdSetRealValue(), onCmdSetValue(), GUIApplicationWindow::setDelay(), and setRange().
|
protected |
Definition at line 73 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 77 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), onChgDial(), and onCmdDial().
|
protected |
Definition at line 72 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), getDownArrowColor(), layout(), load(), save(), setDownArrowColor(), setHelpText(), setTipText(), and ~FXRealSpinDial().
|
protected |
Definition at line 75 of file FXRealSpinDial.h.
Referenced by decrement(), FXRealSpinDial(), increment(), load(), onChgDial(), save(), setCoarseIncrement(), setFineIncrement(), setIncrement(), and setIncrements().
|
protected |
Definition at line 78 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), onCmdDecrement(), onCmdIncrement(), onKeyPress(), onKeyRelease(), onMotion(), and onMouseWheel().
|
protected |
Definition at line 76 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 74 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 70 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 71 of file FXRealSpinDial.h.
Referenced by FXRealSpinDial(), getUpArrowColor(), layout(), load(), save(), setHelpText(), setTipText(), setUpArrowColor(), and ~FXRealSpinDial().