|
| NotSavedPrompter () |
|
| ~NotSavedPrompter () |
|
void | addObject (const char *str, const CallBack &savecb, bool issaveas, const void *dataptr) |
|
void | addObject (const uiString &str, const CallBack &savecb, bool issaveas, const void *dataptr) |
|
bool | doTrigger (uiParent *, bool withcancel, const uiString &actiontype) |
| Invoke the system. Returns false if cancel has been pressed. More...
|
|
const void * | getCurrentObjectData () const |
|
uiParent * | getParent () |
|
bool | isSaveAs () const |
|
int | queueID () const |
|
void | reportSuccessfullSave () |
|
| CallBacker () |
|
| CallBacker (const CallBacker &) |
|
virtual | ~CallBacker () |
|
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
|
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
|
void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More...
|
|
void | detachCB (const NotifierAccess &, const CallBack &) const |
|
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
|
virtual bool | isCapsule () const |
|
bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More...
|
|
void | stopReceivingNotifications () const |
|
Presents a list of items that have not been saved, giving the user the opportunity to save them.
MyClass::MyClass()
{
mCB(this,MyClass,askSaveCB) );
}
MyClass::~MyClass()
{
mCB(this,MyClass,askSaveCB) );
}
{
if ( not_saved )
{
str += name(); str += "\"";
const bool issaveas = (bool) ioobj;
str.buf(), mCB(this,MyClass,saveCB()), issaveas, 0 ) );
}
}
{
{
}
if ( successfulSave )
}
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
IOObj * get(const DBKey &) const
Next functions return a new (unmanaged) IOObj.
static NotSavedPrompter & NSP()
Notifier< NotSavedPrompter > promptSaving
Definition: uinotsaveddlg.h:78
void reportSuccessfullSave()
void addObject(const uiString &str, const CallBack &savecb, bool issaveas, const void *dataptr)
void remove(const CallBack &) const
void notify(const CallBack &, bool first=false) const
Definition: uiparent.h:26
<>