OpendTect-6_4  6.4
uistrattreewin.h
Go to the documentation of this file.
1 #ifndef uistrattreewin_h
2 #define uistrattreewin_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Helene Huck
9  Date: July 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uistratmod.h"
16 #include "uimainwin.h"
17 #include "manobjectset.h"
18 #include "menuhandler.h"
19 #include "multiid.h"
20 #include "uitoolbutton.h"
21 
22 class uiAction;
23 class uiStratLvlList;
24 class uiStratRefTree;
25 class uiStratTreeWin;
26 class uiStratDisplay;
27 class uiToolBar;
28 
29 namespace Strat { class RepositoryAccess; }
30 
31 mGlobal(uiStrat) const uiStratTreeWin& StratTWin();
33 
39 public:
40 
42  ~uiStratTreeWin();
43 
44  void popUp() const;
45  virtual bool closeOK();
46 
47  static void addTool(uiToolButtonSetup*);
48  static void makeEditable(bool allow);
49 
50 protected:
51 
56 
61 
69 
78 
79  bool needsave_;
82 
83  void finalizeCB(CallBacker*);
84  void initWin();
85  void saveLegacyTrees();
86  void initItem(MenuItem&,const uiString&,const char*);
87  void initMenuItems();
88  void createMenu();
89  void createToolBar();
90  void createGroups();
91  void updateDisplay();
92  void updateCaption();
93 
94  void actionCB(CallBacker*);
95  void newTree();
96  void openTree();
97  void defaultTree();
98  bool askSave();
99  bool save(bool saveas);
100  void reset();
101  void setNewRT();
102  void readTree(const MultiID&);
103 
104  void switchView();
105  void setIsLocked(bool yn);
106  bool isLocked() const;
107  void setEditable(bool yn);
108 
109  void updateButtonSensitivity();
110 
111  void manLiths();
112  void manConts();
113  void help();
114 
115  void selLvlChgCB(CallBacker*);
116  void rClickLvlCB(CallBacker*);
117  void unitSelCB(CallBacker*);
118  void unitRenamedCB(CallBacker*);
119  void survChgCB(CallBacker*);
120  void appCloseCB(CallBacker*);
121 
122 private:
123 
124  friend const uiStratTreeWin& StratTWin();
126  uiString sEditTxt(bool domenu);
127  uiString sLockTxt(bool domenu);
128 
129 public:
130  void changeLayerModelNumber(bool add);
131 
132 };
133 
134 #endif
Definition: uitoolbar.h:31
uiStratTreeWin & StratTreeWin()
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
MenuItem expanditem_
Definition: uistrattreewin.h:70
MenuItem saveitem_
Definition: uistrattreewin.h:65
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiToolBar * othertb_
Definition: uistrattreewin.h:60
MenuItem defaultitem_
Definition: uistrattreewin.h:64
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define mGlobal(module)
Definition: commondefs.h:163
Definition: uistratlvllist.h:18
MenuItem lockitem_
Definition: uistrattreewin.h:67
const uiStratTreeWin & StratTWin()
Definition: uistring.h:89
Definition: uiparent.h:26
MenuItem newitem_
Definition: uistrattreewin.h:62
MenuItem lithoitem_
Definition: uistrattreewin.h:75
uiStratRefTree * uitree_
Definition: uistrattreewin.h:52
bool needsave_
Definition: uistrattreewin.h:79
MenuItem openitem_
Definition: uistrattreewin.h:63
MenuItem resetitem_
Definition: uistrattreewin.h:68
Definition: uitoolbutton.h:76
MenuItem movedownitem_
Definition: uistrattreewin.h:73
Definition: menuhandler.h:76
static ManagedObjectSet< uiToolButtonSetup > tbsetups_
Definition: uistrattreewin.h:125
Main window for Stratigraphy display: holds the reference tree and the units description view...
Definition: uistrattreewin.h:37
MenuItem switchviewitem_
Definition: uistrattreewin.h:74
MenuItem collapseitem_
Definition: uistrattreewin.h:71
bool istreedisp_
Definition: uistrattreewin.h:80
uiStratLvlList * lvllist_
Definition: uistrattreewin.h:54
Stratigraphy.
Definition: stratlevel.h:26
Definition: uistratdisplay.h:103
MenuItem helpitem_
Definition: uistrattreewin.h:77
uiToolBar * treevwtb_
Definition: uistrattreewin.h:59
MenuItem moveupitem_
Definition: uistrattreewin.h:72
uiStratDisplay * uistratdisp_
Definition: uistrattreewin.h:53
Repository of all stratigraphic descriptions defining the building blocks of subsurface descriptions...
Definition: stratunitrepos.h:31
Strat::RepositoryAccess & repos_
Definition: uistrattreewin.h:55
uiToolBar * stratvwtb_
Definition: uistrattreewin.h:58
MultiID treekey_
Definition: uistrattreewin.h:81
uiToolBar * tb_
Definition: uistrattreewin.h:57
MenuItem contentsitem_
Definition: uistrattreewin.h:76
MenuItem saveasitem_
Definition: uistrattreewin.h:66
Compound key consisting of ints.
Definition: multiid.h:25
Displays a Strat::RefTree.
Definition: uistratreftree.h:33

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