|
| int | queueID () const |
| |
| void | addObject (const uiString &str, const CallBack &savecb, bool issaveas, const void *dataptr) |
| |
| void | addObject (const char *str, const CallBack &savecb, bool issaveas, const void *dataptr) |
| |
| bool | isSaveAs () const |
| |
| const void * | getCurrentObjectData () const |
| |
| uiParent * | getParent () |
| |
| void | reportSuccessfullSave () |
| |
| | NotSavedPrompter () |
| |
| | ~NotSavedPrompter () |
| |
| bool | doTrigger (uiParent *, bool withcancel, const uiString &actiontype) |
| | Invoke the system. Returns false if cancel has been pressed. More...
|
| |
| | 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 | detachCB (const NotifierAccess &, const CallBack &) const |
| |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| |
| bool | isNotifierAttached (const NotifierAccess *) const |
| | Only for debugging purposes, don't use. More...
|
| |
| virtual bool | isCapsule () const |
| |
| 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 )
}
| NotSavedPrompter::NotSavedPrompter |
( |
| ) |
|
| NotSavedPrompter::~NotSavedPrompter |
( |
| ) |
|
|
inline |
| void NotSavedPrompter::addObject |
( |
const uiString & |
str, |
|
|
const CallBack & |
savecb, |
|
|
bool |
issaveas, |
|
|
const void * |
dataptr |
|
) |
| |
Lets the object know that you have an object that should be added to the list of unsaved objects. Normally called when triggered by promptSaving.
- Parameters
-
| str | Description of the object (e.g. "Horizon A") |
| savecb | Callback that will save the object |
| issaveas | true if savecb will prompt user for a name |
| dataptr | Pointer that can be retrieved during savecb |
| void NotSavedPrompter::addObject |
( |
const char * |
str, |
|
|
const CallBack & |
savecb, |
|
|
bool |
issaveas, |
|
|
const void * |
dataptr |
|
) |
| |
Lets the object know that you have an object that should be added to the list of unsaved objects. Normally called when triggered by promptSaving.
- Parameters
-
| str | Description of the object (e.g. "Horizon A") |
| savecb | Callback that will save the object |
| issaveas | true if savecb will prompt user for a name |
| dataptr | Pointer that can be retrieved during savecb |
| void NotSavedPrompter::closeQueueCB |
( |
CallBacker * |
cb | ) |
|
|
protected |
| bool NotSavedPrompter::doTrigger |
( |
uiParent * |
, |
|
|
bool |
withcancel, |
|
|
const uiString & |
actiontype |
|
) |
| |
Invoke the system. Returns false if cancel has been pressed.
| const void* NotSavedPrompter::getCurrentObjectData |
( |
| ) |
const |
- Returns
- the dataptr of the currently active object.
- Note
- Only valid during a call from a cb given in addObject()
| uiParent* NotSavedPrompter::getParent |
( |
| ) |
|
- Returns
- a pointer to the save-dialog, which can be used when creating a dialog in a callback given in addObject.
- Note
- Only valid during a call from a cb given in addObject()
| bool NotSavedPrompter::isSaveAs |
( |
| ) |
const |
- Returns
- the issaveas status of the currently active object
- Note
- Only valid during a call from a cb given in addObject()
| int NotSavedPrompter::queueID |
( |
| ) |
const |
|
inline |
When OK is pressed (i.e. not cancel), a queue is executed. If you want something to be executed, add it to this queue.
| void NotSavedPrompter::reportSuccessfullSave |
( |
| ) |
|
Let the dialog know that the current object was successfully saved.
- Note
- Only valid during a call from a cb given in addObject()
| friend class uiNotSavedDlg |
|
friend |
| ObjectSet<NotSavedPrompterData> NotSavedPrompter::objects_ |
|
protected |
Will trigger from when users should save all unsaved objects, normally at survey change or shutdown.
| int NotSavedPrompter::queueid_ |
|
protected |