![]() |
OpendTect
6.6
|
Public Member Functions | |
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 |
Static Public Member Functions | |
static NotSavedPrompter & | NSP () |
![]() | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Public Attributes | |
Notifier< NotSavedPrompter > | promptSaving |
Protected Member Functions | |
void | closeQueueCB (CallBacker *cb) |
Protected Attributes | |
uiNotSavedDlg * | dlg_ |
ObjectSet< NotSavedPrompterData > | objects_ |
int | queueid_ |
Friends | |
class | uiNotSavedDlg |
Presents a list of items that have not been saved, giving the user the opportunity to save them.
<>
NotSavedPrompter::NotSavedPrompter | ( | ) |
|
inline |
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.
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 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.
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 |
|
protected |
Invoke the system. Returns false if cancel has been pressed.
const void* NotSavedPrompter::getCurrentObjectData | ( | ) | const |
uiParent* NotSavedPrompter::getParent | ( | ) |
bool NotSavedPrompter::isSaveAs | ( | ) | const |
|
static |
|
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.
|
friend |
|
protected |
|
protected |
Notifier<NotSavedPrompter> NotSavedPrompter::promptSaving |
Will trigger from when users should save all unsaved objects, normally at survey change or shutdown.
|
protected |
Generated at 07/14/2022 09:52:41 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022