Data Structures | |
| class | FXRealSpinDial |
| Spinner control. More... | |
| class | FXRealSpinDialBtn |
| class | FXRealSpinDialDial |
| class | FXRealSpinDialText |
Enumerations | |
| enum | { SPINDIAL_CYCLIC = SPIN_CYCLIC, SPINDIAL_NOTEXT = SPIN_NOTEXT, SPINDIAL_NOMAX = SPIN_NOMAX, SPINDIAL_NOMIN = SPIN_NOMIN, SPINDIAL_LOG = 0x00200000, SPINDIAL_NODIAL = 0x00400000, SPINDIAL_NOBUTTONS = 0x00800000, SPINDIAL_NORMAL = SPINDIAL_NOBUTTONS } |
| enum | { SPINDIAL_INC_NORMAL = 0, SPINDIAL_INC_FINE = -1, SPINDIAL_INC_COARSE = 1 } |
Functions | |
| FXDEFMAP (FXRealSpinDial) FXRealSpinDialMap[] | |
| FXDEFMAP (FXRealSpinDialText) FXSpinDialTextMap[] | |
| FXDEFMAP (FXRealSpinDialBtn) FXSpinDialBtnMap[] | |
| FXDEFMAP (FXRealSpinDialDial) FXSpinDialMap[] | |
| FXIMPLEMENT (FXRealSpinDial, FXPacker, FXRealSpinDialMap, ARRAYNUMBER(FXRealSpinDialMap)) FXRealSpinDial | |
| FXIMPLEMENT (FXRealSpinDialText, FXTextField, FXSpinDialTextMap, ARRAYNUMBER(FXSpinDialTextMap)) long FXRealSpinDialText | |
| FXIMPLEMENT (FXRealSpinDialBtn, FXArrowButton, FXSpinDialBtnMap, ARRAYNUMBER(FXSpinDialBtnMap)) long FXRealSpinDialBtn | |
| FXIMPLEMENT (FXRealSpinDialDial, FXDial, FXSpinDialMap, ARRAYNUMBER(FXSpinDialMap)) long FXRealSpinDialDial | |
| anonymous enum |
| SPINDIAL_CYCLIC | |
| SPINDIAL_NOTEXT | |
| SPINDIAL_NOMAX | |
| SPINDIAL_NOMIN | |
| SPINDIAL_LOG | |
| SPINDIAL_NODIAL | |
| SPINDIAL_NOBUTTONS | |
| SPINDIAL_NORMAL |
Definition at line 48 of file FXRealSpinDial.h.
00048 { 00049 SPINDIAL_CYCLIC = SPIN_CYCLIC, // Cyclic spinner 00050 SPINDIAL_NOTEXT = SPIN_NOTEXT, // No text visible 00051 SPINDIAL_NOMAX = SPIN_NOMAX, // Spin all the way up to infinity 00052 SPINDIAL_NOMIN = SPIN_NOMIN, // Spin all the way down to -infinity 00053 SPINDIAL_LOG = 0x00200000, // Logarithmic rather than linear 00054 SPINDIAL_NODIAL = 0x00400000, // No dial visible 00055 SPINDIAL_NOBUTTONS = 0x00800000, // No spinbuttons visible 00056 SPINDIAL_NORMAL = SPINDIAL_NOBUTTONS// Normal, non-cyclic, no buttons 00057 };
| anonymous enum |
Definition at line 59 of file FXRealSpinDial.h.
00059 { 00060 SPINDIAL_INC_NORMAL=0, 00061 SPINDIAL_INC_FINE=-1, 00062 SPINDIAL_INC_COARSE=1 00063 };
| FX::FXDEFMAP | ( | FXRealSpinDial | ) |
| FX::FXDEFMAP | ( | FXRealSpinDialText | ) |
| FX::FXDEFMAP | ( | FXRealSpinDialBtn | ) |
| FX::FXDEFMAP | ( | FXRealSpinDialDial | ) |
| FX::FXIMPLEMENT | ( | FXRealSpinDial | , | |
| FXPacker | , | |||
| FXRealSpinDialMap | , | |||
| ARRAYNUMBER(FXRealSpinDialMap) | ||||
| ) |
Definition at line 416 of file FXRealSpinDial.cpp.
00420 { 00421 flags=(flags|FLAG_ENABLED|FLAG_SHOWN)&~FLAG_UPDATE; 00422 textField=(FXRealSpinDialText*)-1L; 00423 dial=(FXDial*)-1L; 00424 upButton=(FXRealSpinDialBtn*)-1L; 00425 downButton=(FXRealSpinDialBtn*)-1L; 00426 range[0]=-DBL_MAX; 00427 range[1]= DBL_MAX; 00428 incr[0]=0.1; 00429 incr[1]=1.0; 00430 incr[2]=10; 00431 pos=1; 00432 dialpos=0; 00433 }
| FX::FXIMPLEMENT | ( | FXRealSpinDialText | , | |
| FXTextField | , | |||
| FXSpinDialTextMap | , | |||
| ARRAYNUMBER(FXSpinDialTextMap) | ||||
| ) |
Definition at line 355 of file FXRealSpinDial.cpp.
00357 { 00358 // Forward motion events so we can monitor key state. We don't get the modifier 00359 // keys themselves if we aren't focused, so this seems the best we can do. 00360 if (!isEnabled()) return 0; 00361 if (target && target->handle(this,FXSEL(SEL_MOTION,message),ptr)) return 1; 00362 return FXTextField::onMotion(o,s,ptr); 00363 }
| FX::FXIMPLEMENT | ( | FXRealSpinDialBtn | , | |
| FXArrowButton | , | |||
| FXSpinDialBtnMap | , | |||
| ARRAYNUMBER(FXSpinDialBtnMap) | ||||
| ) |
Definition at line 265 of file FXRealSpinDial.cpp.
00269 { 00270 // printf("DEFAULT!\n"); 00271 // if (target) return target->handle(o,s,p); 00272 // return 0; 00273 //} 00274 long FXRealSpinDialBtn::onKey(FXObject*o,FXSelector s,void*p) { 00275 if (target) return target->handle(o,s,p); 00276 return 0; 00277 }
| FX::FXIMPLEMENT | ( | FXRealSpinDialDial | , | |
| FXDial | , | |||
| FXSpinDialMap | , | |||
| ARRAYNUMBER(FXSpinDialMap) | ||||
| ) |
Definition at line 133 of file FXRealSpinDial.cpp.
00137 { 00138 // printf("DEFAULT!\n"); 00139 // if (target) return target->handle(o,s,p); 00140 // return 0; 00141 //} 00142 long FXRealSpinDialDial::onKey(FXObject*o,FXSelector s,void*p) { 00143 if (target) return target->handle(o,s,p); 00144 return 0; 00145 }
1.5.6