OpendTect-6_4  6.4
uinotsaveddlg.h
Go to the documentation of this file.
1 #ifndef uinotsaveddlg_h
2 #define uinotsaveddlg_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: November 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uitoolsmod.h"
17 
18 #include "bufstring.h"
19 #include "callback.h"
20 #include "uistring.h"
21 
22 class uiNotSavedDlg;
23 class uiParent;
24 class NotSavedPrompterData;
25 
26 
76 public:
77  static NotSavedPrompter& NSP(); //gives instance
78 
83  int queueID() const { return queueid_; }
88  void addObject(const uiString& str,const CallBack& savecb,
89  bool issaveas, const void* dataptr );
99  void addObject(const char* str,const CallBack& savecb,bool issaveas,
100  const void* dataptr );
110  bool isSaveAs() const;
114  const void* getCurrentObjectData() const;
118  uiParent* getParent();
124  void reportSuccessfullSave();
131  ~NotSavedPrompter() { detachAllNotifiers(); }
132  bool doTrigger(uiParent*,bool withcancel,const uiString& actiontype);
134 
135 protected:
136  friend class uiNotSavedDlg;
137 
138  void closeQueueCB(CallBacker* cb);
139 
141  uiNotSavedDlg* dlg_;
142  int queueid_;
143 };
144 
145 
146 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiNotSavedDlg * dlg_
Definition: uinotsaveddlg.h:141
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
ObjectSet< NotSavedPrompterData > objects_
Definition: uinotsaveddlg.h:140
int queueID() const
Definition: uinotsaveddlg.h:83
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uinotsaveddlg.h:74
int queueid_
Definition: uinotsaveddlg.h:142
Notifier< NotSavedPrompter > promptSaving
Definition: uinotsaveddlg.h:79
~NotSavedPrompter()
Definition: uinotsaveddlg.h:131
CallBacks object-oriented (object + method).
Definition: callback.h:57

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