55FXIMPLEMENT(
MFXBaseObject, FXObject, MFXBaseObjectMap, ARRAYNUMBER(MFXBaseObjectMap))
63 app = FXApp::instance();
65 fxerror(
"%s: Cannot create object without FXApp object\n", getClassName());
77 app = FXApp::instance();
80 fxerror(
"%s: Cannot create object without FXApp object\n", getClassName());
86 if (
data !=
nullptr &&
data != (
void*) - 1) {
87 fxerror(
"%s::~%s - user data is not NULL prior to destruction\n", getClassName(), getClassName());
95 FXObject::save(store);
102 store.save((FXuchar*)
data, (
unsigned long)
datalen);
107 FXObject::load(store);
114 store.load((FXuchar*)
data, (
unsigned long)
datalen);
122 return FXApp::instance();
130 flags &= ~FLAG_READONLY;
149 sender->handle(
this, FXSEL(SEL_UPDATE, FXWindow::ID_ENABLE),
nullptr);
151 sender->handle(
this, FXSEL(SEL_UPDATE, FXWindow::ID_DISABLE),
nullptr);
virtual ~MFXBaseObject()
dtor
virtual void save(FXStream &store) const
save object to stream
virtual void enable()
enable us
MFXBaseObject(FXObject *tgt=NULL, FXSelector sel=0)
Just supply the target and selector (de-serialisation too)
virtual void setReadonly(FXbool mode=TRUE)
set modifiable mode
long onCmdEnable(FXObject *, FXSelector, void *)
virtual void disable()
disable us
FXApp * getApp()
application pointer
long onUpdate(FXObject *, FXSelector, void *)
long onCmdDisable(FXObject *, FXSelector, void *)
virtual void load(FXStream &store)
load object from stream
FXDEFMAP(MFXBaseObject) MFXBaseObjectMap[]