
Definition at line 296 of file FXRealSpinDial.cpp.
Public Types | |
| enum | { ID_LAST = FXTextField::ID_LAST } |
| enum | { FLAG_FMTSTRING = 0x1 } |
Public Member Functions | |
| FXRealSpinDialText (FXComposite *p, FXint ncols, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TEXTFIELD_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 text widget. | |
| FXbool | getNumberFormatExponent () const |
| FXint | getNumberFormatPrecision () const |
| FXString | getNumberFormatString () const |
| long | onCmdSetRealValue (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| void | setFormatString (FXchar *fmt) |
| void | setNumberFormat (FXint prec, FXbool bExp=FALSE) |
Protected Member Functions | |
| FXRealSpinDialText () | |
Protected Attributes | |
| FXbool | exponent |
| FXuint | flags |
| FXString | fmtString |
| FXint | precision |
Private Member Functions | |
| FXRealSpinDialText (const FXRealSpinDialText &) | |
| FXRealSpinDialText & | operator= (const FXRealSpinDialText &) |
| anonymous enum |
Definition at line 306 of file FXRealSpinDial.cpp.
00306 { 00307 ID_LAST=FXTextField::ID_LAST 00308 };
| anonymous enum |
| FX::FXRealSpinDialText::FXRealSpinDialText | ( | ) | [inline, protected] |
| FX::FXRealSpinDialText::FXRealSpinDialText | ( | const FXRealSpinDialText & | ) | [private] |
| FX::FXRealSpinDialText::FXRealSpinDialText | ( | FXComposite * | p, | |
| FXint | ncols, | |||
| FXObject * | tgt = NULL, |
|||
| FXSelector | sel = 0, |
|||
| FXuint | opts = TEXTFIELD_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 | |||
| ) | [inline] |
Construct a text widget.
Definition at line 315 of file FXRealSpinDial.cpp.
00319 : 00320 FXTextField(p,ncols,tgt,sel,opts,x,y,w,h,pl,pr,pt,pb), 00321 precision(3), 00322 exponent(FALSE), 00323 flags(0) {}
| FXbool FX::FXRealSpinDialText::getNumberFormatExponent | ( | ) | const [inline] |
Definition at line 333 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDial::getNumberFormatExponent().
00333 { 00334 return exponent; 00335 }
| FXint FX::FXRealSpinDialText::getNumberFormatPrecision | ( | ) | const [inline] |
Definition at line 330 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDial::getNumberFormatPrecision().
00330 { 00331 return precision; 00332 }
| FXString FX::FXRealSpinDialText::getNumberFormatString | ( | ) | const [inline] |
Definition at line 340 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDial::getNumberFormatString().
00340 { 00341 return fmtString; 00342 }
| long FX::FXRealSpinDialText::onCmdSetRealValue | ( | FXObject * | o, | |
| FXSelector | s, | |||
| void * | ptr | |||
| ) |
Definition at line 364 of file FXRealSpinDial.cpp.
References exponent, FLAG_FMTSTRING, flags, fmtString, and precision.
00364 { 00365 // setText(FXStringVal(*((FXdouble*)ptr))); 00366 if (flags & FLAG_FMTSTRING) 00367 setText(FXStringFormat(fmtString.text(),*((FXdouble*)ptr))); 00368 else { 00369 setText(FXStringVal(*((FXdouble*)ptr),precision,exponent)); 00370 } 00371 return 1; 00372 }
| long FX::FXRealSpinDialText::onMotion | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) |
| FXRealSpinDialText& FX::FXRealSpinDialText::operator= | ( | const FXRealSpinDialText & | ) | [private] |
| void FX::FXRealSpinDialText::setFormatString | ( | FXchar * | fmt | ) | [inline] |
Definition at line 336 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDial::setFormatString().
00336 { 00337 fmtString = fmt; 00338 flags |= FLAG_FMTSTRING; 00339 }
| void FX::FXRealSpinDialText::setNumberFormat | ( | FXint | prec, | |
| FXbool | bExp = FALSE | |||
| ) | [inline] |
Definition at line 325 of file FXRealSpinDial.cpp.
Referenced by FX::FXRealSpinDial::setNumberFormat().
00325 { 00326 precision=prec; 00327 exponent=bExp; 00328 flags &= ~FLAG_FMTSTRING; 00329 }
FXbool FX::FXRealSpinDialText::exponent [protected] |
FXuint FX::FXRealSpinDialText::flags [protected] |
FXString FX::FXRealSpinDialText::fmtString [protected] |
FXint FX::FXRealSpinDialText::precision [protected] |
1.5.6