OpendTect  6.3
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 ________________________________________________________________________
10 
11 -*/
12 
13 
14 #include "uitoolsmod.h"
15 
16 #include "bufstring.h"
17 #include "notify.h"
18 #include "uistring.h"
19 
20 class uiNotSavedDlg;
21 class uiParent;
22 class NotSavedPrompterData;
23 
24 
74 public:
75  static NotSavedPrompter& NSP(); //gives instance
76 
81  int queueID() const { return queueid_; }
86  void addObject(const uiString& str,const CallBack& savecb,
87  bool issaveas, const void* dataptr );
97  void addObject(const char* str,const CallBack& savecb,bool issaveas,
98  const void* dataptr );
108  bool isSaveAs() const;
112  const void* getCurrentObjectData() const;
116  uiParent* getParent();
122  void reportSuccessfullSave();
129  ~NotSavedPrompter() { detachAllNotifiers(); }
130  bool doTrigger(uiParent*,bool withcancel,const uiString& actiontype);
132 
133 protected:
134  friend class uiNotSavedDlg;
135 
136  void closeQueueCB(CallBacker* cb);
137 
139  uiNotSavedDlg* dlg_;
140  int queueid_;
141 };
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
uiNotSavedDlg * dlg_
Definition: uinotsaveddlg.h:139
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
ObjectSet< NotSavedPrompterData > objects_
Definition: uinotsaveddlg.h:138
int queueID() const
Definition: uinotsaveddlg.h:81
Definition: uistring.h:88
Definition: uiparent.h:24
Definition: uinotsaveddlg.h:72
int queueid_
Definition: uinotsaveddlg.h:140
Notifier< NotSavedPrompter > promptSaving
Definition: uinotsaveddlg.h:77
~NotSavedPrompter()
Definition: uinotsaveddlg.h:129
CallBacks object-oriented (object + method).
Definition: callback.h:62

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