|
SUMO - Simulation of Urban MObility
|
#include <FXBaseObject.h>


Public Types | |
| enum | { ID_NONE = 0, ID_DELETE = 6, ID_DISABLE, ID_ENABLE, ID_SETVALUE = 17, ID_SETINTVALUE, ID_SETREALVALUE, ID_SETSTRINGVALUE, ID_SETINTRANGE, ID_SETREALRANGE, ID_GETINTVALUE, ID_GETREALVALUE, ID_GETSTRINGVALUE, ID_XML, ID_META, ID_COMMENT, ID_DOCUMENT, ID_TAG, ID_CONTENT, ID_LAST } |
Public Member Functions | |
| virtual void | create () |
| create resource More... | |
| virtual void | destroy () |
| destroy resource More... | |
| virtual void | detach () |
| detach resource More... | |
| virtual void | disable () |
| disable us More... | |
| virtual void | enable () |
| enable us More... | |
| FXBaseObject (FXObject *tgt=NULL, FXSelector sel=0) | |
| Just supply the target and selector (de-serialisation too) More... | |
| FXBaseObject (FXApp *a, FXObject *tgt=NULL, FXSelector sel=0) | |
| Alternnatively, supply the app object as well. More... | |
| FXApp * | getApp () |
| application pointer More... | |
| FXSelector | getSelector () |
| get the message More... | |
| FXObject * | getTarget () |
| get the target More... | |
| void * | getUserData () |
| get user data More... | |
| FXuint | getUserDataLen () |
| get user daat length More... | |
| FXbool | isEnabled () |
| are we enabled? More... | |
| virtual FXbool | isReadonly () |
| are we modifiable More... | |
| virtual void | load (FXStream &store) |
| load object from stream More... | |
| long | onCmdDisable (FXObject *, FXSelector, void *) |
| long | onCmdEnable (FXObject *, FXSelector, void *) |
| long | onUpdate (FXObject *, FXSelector, void *) |
| virtual void | save (FXStream &store) const |
| save object to stream More... | |
| virtual void | setReadonly (FXbool mode=TRUE) |
| set modifiable mode More... | |
| void | setSelector (FXSelector sel) |
| set the selector More... | |
| void | setTarget (FXObject *tgt) |
| set the target More... | |
| void | setUserData (void *d) |
| set user data More... | |
| void | setUserDataLen (FXuint len) |
| set the user data length More... | |
| virtual | ~FXBaseObject () |
| dtor More... | |
Protected Types | |
| enum | { FLAG_ENABLED = 0x00000002, FLAG_UPDATE = 0x00000004, FLAG_FOCUSED = 0x00000010, FLAG_DIRTY = 0x00000020, FLAG_RECALC = 0x00000040, FLAG_DEFAULT = 0x00000200, FLAG_INITIAL = 0x00000400, FLAG_ACTIVE = 0x00001000, FLAG_CHANGED = 0x00010000, FLAG_READONLY = 0x10000000 } |
| flags defined are the same as those defined in FXWindow, etc. More... | |
Protected Attributes | |
| void * | data |
| FXuint | datalen |
| FXuint | flags |
| FXSelector | message |
| FXuint | options |
| FXObject * | target |
Private Attributes | |
| FXApp * | app |
This is a base class for ojects which can send messages to the application
Definition at line 62 of file FXBaseObject.h.
|
protected |
flags defined are the same as those defined in FXWindow, etc.
| Enumerator | |
|---|---|
| FLAG_ENABLED | |
| FLAG_UPDATE | |
| FLAG_FOCUSED | |
| FLAG_DIRTY | |
| FLAG_RECALC | |
| FLAG_DEFAULT | |
| FLAG_INITIAL | |
| FLAG_ACTIVE | |
| FLAG_CHANGED | |
| FLAG_READONLY | |
Definition at line 68 of file FXBaseObject.h.
| anonymous enum |
Definition at line 93 of file FXBaseObject.h.
| FXEX::FXBaseObject::FXBaseObject | ( | FXObject * | tgt = NULL, |
| FXSelector | sel = 0 |
||
| ) |
Just supply the target and selector (de-serialisation too)
Definition at line 66 of file FXBaseObject.cpp.
| FXEX::FXBaseObject::FXBaseObject | ( | FXApp * | a, |
| FXObject * | tgt = NULL, |
||
| FXSelector | sel = 0 |
||
| ) |
|
virtual |
|
inlinevirtual |
create resource
Definition at line 195 of file FXBaseObject.h.
|
inlinevirtual |
destroy resource
Definition at line 201 of file FXBaseObject.h.
|
inlinevirtual |
detach resource
Definition at line 198 of file FXBaseObject.h.
|
inlinevirtual |
|
inlinevirtual |
| FXApp * FXEX::FXBaseObject::getApp | ( | ) |
|
inline |
get the message
Definition at line 142 of file FXBaseObject.h.
|
inline |
get the target
Definition at line 132 of file FXBaseObject.h.
|
inline |
get user data
Definition at line 152 of file FXBaseObject.h.
|
inline |
get user daat length
Definition at line 162 of file FXBaseObject.h.
|
inline |
are we enabled?
Definition at line 172 of file FXBaseObject.h.
|
inlinevirtual |
are we modifiable
Definition at line 187 of file FXBaseObject.h.
|
virtual |
| long FXEX::FXBaseObject::onCmdDisable | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 149 of file FXBaseObject.cpp.
References disable().
| long FXEX::FXBaseObject::onCmdEnable | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 143 of file FXBaseObject.cpp.
References enable().
| long FXEX::FXBaseObject::onUpdate | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 155 of file FXBaseObject.cpp.
References FLAG_ENABLED, and flags.
|
virtual |
|
virtual |
set modifiable mode
Definition at line 134 of file FXBaseObject.cpp.
References FLAG_READONLY, and flags.
|
inline |
set the selector
Definition at line 147 of file FXBaseObject.h.
Referenced by GNEApplicationWindow::dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
inline |
set the target
Definition at line 137 of file FXBaseObject.h.
Referenced by GNEApplicationWindow::dependentBuild(), and GUIApplicationWindow::dependentBuild().
|
inline |
set user data
Definition at line 157 of file FXBaseObject.h.
|
inline |
set the user data length
Definition at line 167 of file FXBaseObject.h.
|
private |
Definition at line 82 of file FXBaseObject.h.
Referenced by FXBaseObject(), getApp(), load(), save(), and ~FXBaseObject().
|
protected |
Definition at line 87 of file FXBaseObject.h.
Referenced by FXBaseObject(), load(), save(), and ~FXBaseObject().
|
protected |
Definition at line 88 of file FXBaseObject.h.
|
protected |
Definition at line 89 of file FXBaseObject.h.
Referenced by FXBaseObject(), load(), onUpdate(), save(), and setReadonly().
|
protected |
Definition at line 86 of file FXBaseObject.h.
Referenced by FXBaseObject(), load(), and save().
|
protected |
Definition at line 90 of file FXBaseObject.h.
|
protected |
Definition at line 85 of file FXBaseObject.h.
Referenced by FXBaseObject(), load(), save(), and ~FXBaseObject().