![]() |
OpendTect 8.0
|
#include <uinotfinisheddlg.h>
Public Member Functions | |
| ~NotFinishedPrompter () | |
| void | addObject (const char *str) |
| void | addObject (const char *str, const CallBack &stopcb, const void *dataptr) |
| void | addObject (const uiString &str) |
| void | addObject (const uiString &str, const CallBack &stopcb, const void *dataptr) |
| bool | doTrigger (uiParent *, bool withcancel, const uiString &actiontype) |
| Invoke the system. Returns false if cancel has been pressed. | |
| const void * | getCurrentObjectData () const |
| uiParent * | getParent () |
| int | queueID () const |
| void | removeObject (const char *) |
| void | removeObject (const uiString &) |
| void | reportSuccessfulStop () |
Public Member Functions inherited from CallBacker | |
| 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. | |
| 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. | |
| CallBacker & | operator= (const CallBacker &)=delete |
| void | stopReceivingNotifications () const |
| virtual CallBacker * | trueCaller () |
Static Public Member Functions | |
| static NotFinishedPrompter & | NFP () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Public Attributes | |
| Notifier< NotFinishedPrompter > | promptEnding |
Protected Member Functions | |
| NotFinishedPrompter () | |
| void | closeQueueCB (CallBacker *) |
Protected Attributes | |
| uiNotFinishedDlg * | dlg_ = nullptr |
| ObjectSet< NotFinishedPrompterData > | objects_ |
| int | queueid_ |
Friends | |
| class | uiNotFinishedDlg |
Presents a list of items that have not finished, giving the user the opportunity to abort the application exit or survey change.
<>
| NotFinishedPrompter::~NotFinishedPrompter | ( | ) |
|
protected |
| void NotFinishedPrompter::addObject | ( | const char * | str | ) |
| void NotFinishedPrompter::addObject | ( | const char * | str, |
| const CallBack & | stopcb, | ||
| const void * | dataptr ) |
| void NotFinishedPrompter::addObject | ( | const uiString & | str | ) |
Add a object to the list of running processes. Normally called when triggered by promptEnding. Use this version to register a process that doesn't need any special cleanup before being terminated.'
| str | Description of the process |
| void NotFinishedPrompter::addObject | ( | const uiString & | str, |
| const CallBack & | stopcb, | ||
| const void * | dataptr ) |
Add a object to the list if running processes. Normally called when triggered by promptEnding.Use this version to register a process that needs special cleanup before termination.
| str | Description of the process |
| stopcb | Callback that will stop the process |
| dataptr | Pointer that can be retrieved during stopcb |
|
protected |
Invoke the system. Returns false if cancel has been pressed.
| const void * NotFinishedPrompter::getCurrentObjectData | ( | ) | const |
| uiParent * NotFinishedPrompter::getParent | ( | ) |
|
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 NotFinishedPrompter::removeObject | ( | const char * | ) |
| void NotFinishedPrompter::removeObject | ( | const uiString & | ) |
| void NotFinishedPrompter::reportSuccessfulStop | ( | ) |
Let the dialog know that the current process was successfully stopped. Only valid during a call from a cb given in addProcess()
|
friend |
|
protected |
|
protected |
| Notifier<NotFinishedPrompter> NotFinishedPrompter::promptEnding |
Will trigger from when users should be notified of running processes that will be terminated at events like survey change or application shutdown.
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025