OpendTect  6.6
uinotsaveddlg.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: November 2010
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 
15 #include "uitoolsmod.h"
16 
17 #include "bufstring.h"
18 #include "callback.h"
19 #include "uistring.h"
20 
21 class uiNotSavedDlg;
22 class uiParent;
23 class NotSavedPrompterData;
24 
25 
75 public:
76  static NotSavedPrompter& NSP(); //gives instance
77 
82  int queueID() const { return queueid_; }
87  void addObject(const uiString& str,const CallBack& savecb,
88  bool issaveas, const void* dataptr );
98  void addObject(const char* str,const CallBack& savecb,bool issaveas,
99  const void* dataptr );
109  bool isSaveAs() const;
113  const void* getCurrentObjectData() const;
130  ~NotSavedPrompter() { detachAllNotifiers(); }
131  bool doTrigger(uiParent*,bool withcancel,const uiString& actiontype);
133 
134 protected:
135  friend class uiNotSavedDlg;
136 
138 
140  uiNotSavedDlg* dlg_;
141  int queueid_;
142 };
143 
144 
NotSavedPrompter::doTrigger
bool doTrigger(uiParent *, bool withcancel, const uiString &actiontype)
Invoke the system. Returns false if cancel has been pressed.
NotSavedPrompter::reportSuccessfullSave
void reportSuccessfullSave()
NotSavedPrompter::addObject
void addObject(const uiString &str, const CallBack &savecb, bool issaveas, const void *dataptr)
uistring.h
ObjectSet< NotSavedPrompterData >
NotSavedPrompter::closeQueueCB
void closeQueueCB(CallBacker *cb)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
NotSavedPrompter::getParent
uiParent * getParent()
NotSavedPrompter::NotSavedPrompter
NotSavedPrompter()
NotSavedPrompter::queueid_
int queueid_
Definition: uinotsaveddlg.h:141
NotSavedPrompter
Definition: uinotsaveddlg.h:74
callback.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
bufstring.h
NotSavedPrompter::promptSaving
Notifier< NotSavedPrompter > promptSaving
Definition: uinotsaveddlg.h:78
NotSavedPrompter::addObject
void addObject(const char *str, const CallBack &savecb, bool issaveas, const void *dataptr)
CallBack
CallBacks object-oriented (object + method).
Definition: callback.h:62
NotSavedPrompter::NSP
static NotSavedPrompter & NSP()
Notifier< NotSavedPrompter >
NotSavedPrompter::~NotSavedPrompter
~NotSavedPrompter()
Definition: uinotsaveddlg.h:130
NotSavedPrompter::getCurrentObjectData
const void * getCurrentObjectData() const
NotSavedPrompter::queueID
int queueID() const
Definition: uinotsaveddlg.h:82
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
NotSavedPrompter::dlg_
uiNotSavedDlg * dlg_
Definition: uinotsaveddlg.h:140
NotSavedPrompter::mODTextTranslationClass
mODTextTranslationClass(NotSavedPrompter)
uiParent
Definition: uiparent.h:26
NotSavedPrompter::isSaveAs
bool isSaveAs() const
NotSavedPrompter::objects_
ObjectSet< NotSavedPrompterData > objects_
Definition: uinotsaveddlg.h:139

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021