OpendTect-6_4  6.4
uiodmenumgr.h
Go to the documentation of this file.
1 #ifndef uiodmenumgr_h
2 #define uiodmenumgr_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Bril
8  Date: Dec 2003
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiodmainmod.h"
15 #include "uiodapplmgr.h"
16 
17 class DirList;
18 class MeasureToolMan;
19 class uiODFaultToolMan;
20 class uiODHelpMenuMgr;
21 class uiMenu;
22 class uiToolBar;
23 class uiAction;
24 
25 
39 
40  friend class uiODMain;
41  friend class uiODHelpMenuMgr;
42 
43 public:
44 
45  uiMenu* fileMnu() { return surveymnu_; }
46  uiMenu* surveyMnu() { return surveymnu_; }
47  uiMenu* analMnu() { return analmnu_; }
48  uiMenu* analWellMnu() { return analwellmnu_; }
49  uiMenu* layerModelMnu() { return layermodelmnu_; }
50  uiMenu* procMnu() { return procmnu_; }
51  uiMenu* procWellMnu() { return procwellmnu_; }
52  uiMenu* sceneMnu() { return scenemnu_; }
53  uiMenu* viewMnu() { return viewmnu_; }
54  uiMenu* utilMnu() { return utilmnu_; }
55  uiMenu* helpMnu() { return helpmnu_; }
56  uiMenu* docMnu();
57  uiMenu* settMnu() { return settmnu_; }
58  uiMenu* toolsMnu() { return toolsmnu_; }
59  uiMenu* installMnu() { return installmnu_; }
60  uiMenu* preLoadMenu() { return preloadmnu_; }
61  uiMenu* createSeisOutputMenu() { return csoitm_; }
62 
63  uiMenu* getBaseMnu(uiODApplMgr::ActType);
65  uiMenu* getMnu(bool imp,uiODApplMgr::ObjType);
67 
68  uiToolBar* dtectTB() { return dtecttb_; }
69  uiToolBar* viewTB() { return viewtb_; }
70  uiToolBar* manTB() { return mantb_; }
71  uiToolBar* pluginTB();
72  uiToolBar* customTB(const char*);
73 
74  // Probably not needed by plugins
75  void updateStereoMenu();
76  void updateViewMode(bool);
77  void updateAxisMode(bool);
78  bool isSoloModeOn() const;
79  void enableMenuBar(bool);
80  void enableActButton(bool);
81  void setCameraPixmap(bool isperspective);
82  void insertNewSceneItem(uiAction*,int id);
83  void insertNewSceneItem(uiMenu*);
84  void updateSceneMenu();
85 
86  static int ask2D3D(const uiString& txt,int res2d=2,int res3d=3,
87  int rescncl=0);
88  int add2D3DToolButton(uiToolBar&,const char* iconnnm,
89  const uiString& tooltip,
90  const CallBack& cb2d,const CallBack& cb3d,
91  int itmid2d=-1,int itmid3d=-1);
92  void add2D3DMenuItem(uiMenu&,const char* iconnnm,
93  const uiString& menuitmtxt,
94  const CallBack& cb2d,const CallBack& cb3d,
95  int itmid2d=-1,int itmid3d=-1);
96 
99 
100 protected:
101 
103  ~uiODMenuMgr();
104  void initSceneMgrDepObjs(uiODApplMgr*,uiODSceneMgr*);
105 
108 
130 
136 
139 
140  void fillSurveyMenu();
141  void fillImportMenu();
142  void fillExportMenu();
143  void fillManMenu();
144  void fillAnalMenu();
145  void fillProcMenu();
146  void fillSceneMenu();
147  void fillViewMenu();
148  void fillUtilMenu();
149  void fillDtectTB(uiODApplMgr*);
150  void fillCoinTB(uiODSceneMgr*);
151  void fillManTB();
152 
153  void selectionMode(CallBacker*);
154  void handleToolClick(CallBacker*);
155  void handleViewClick(CallBacker*);
156  void handleClick(CallBacker*);
157  void removeSelection(CallBacker*);
158  void dispColorBar(CallBacker*);
159  void manSeis(CallBacker*);
160  void manHor(CallBacker*);
161  void manBody(CallBacker*);
162  void manProps(CallBacker*);
163  void manFlt(CallBacker*);
164  void manWll(CallBacker*);
165  void manPick(CallBacker*);
166  void manWvlt(CallBacker*);
167  void manStrat(CallBacker*);
168  void manPDF(CallBacker*);
169  void updateDTectToolBar(CallBacker*);
170  void updateDTectMnus(CallBacker*);
171  void toggViewMode(CallBacker*);
172  void add2D3DMenuItem(uiMenu&,const char* iconnnm,
173  const uiString& menuitmtxt,
174  int itmid2d=-1,int itmid3d=-1);
175 
176  uiAction* stereooffitm_;
177  uiAction* stereoredcyanitm_;
178  uiAction* stereoquadbufitm_;
179  uiAction* stereooffsetitm_;
181  uiAction* lastsceneitm_;
182  int axisid_, actviewid_, cameraid_, soloid_;
183  int coltabid_, polyselectid_,viewselectid_,curviewmode_ ;
184  int viewinlid_, viewcrlid_, viewzid_, viewnid_, viewnzid_;
187 
188  inline uiODApplMgr& applMgr() { return appl_.applMgr(); }
189  inline uiODSceneMgr& sceneMgr() { return appl_.sceneMgr(); }
190 
191  void showLogFile();
192  void mkViewIconsMnu();
193  void addIconMnuItems(const DirList&,uiMenu*,
194  BufferStringSet&);
195 public:
196  void createFaultToolMan();
197 };
198 
199 
200 #endif
Definition: uitoolbar.h:31
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiMenu * analMnu()
Definition: uiodmenumgr.h:47
uiODApplMgr & applMgr()
Definition: uiodmenumgr.h:188
uiODHelpMenuMgr * helpmgr_
Definition: uiodmenumgr.h:107
uiAction * addtimedepthsceneitm_
Definition: uiodmenumgr.h:180
uiToolBar * plugintb_
Definition: uiodmenumgr.h:134
Notifier< uiODMenuMgr > dTectTBChanged
Definition: uiodmenumgr.h:97
uiMenu * preloadmnu_
Definition: uiodmenumgr.h:121
Application level manager - ties part servers together.
Definition: uiodapplmgr.h:55
OpendTect application top level object.
Definition: uiodmain.h:41
uiMenu * preLoadMenu()
Definition: uiodmenumgr.h:60
uiMenu * settMnu()
Definition: uiodmenumgr.h:57
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiMenu * csoitm_
Definition: uiodmenumgr.h:127
uiMenu * fileMnu()
Definition: uiodmenumgr.h:45
uiMenu * surveyMnu()
Definition: uiodmenumgr.h:46
uiToolBar * dtectTB()
< Within Survey - Import or Export
Definition: uiodmenumgr.h:68
uiMenu * layerModelMnu()
Definition: uiodmenumgr.h:49
uiMenu * utilMnu()
Definition: uiodmenumgr.h:54
uiODSceneMgr & sceneMgr()
Definition: uiodmenumgr.h:189
uiMenu * langmnu_
Definition: uiodmenumgr.h:124
The OpendTect help menu manager.
Definition: uiodhelpmenumgr.h:24
uiMenu * helpmnu_
Definition: uiodmenumgr.h:122
ObjectSet< uiToolBar > customtbs_
Definition: uiodmenumgr.h:135
Definition: uistring.h:89
ObjectSet< uiMenu > impmnus_
Definition: uiodmenumgr.h:128
uiMenu * helpmnu_
Definition: uiodhelpmenumgr.h:40
Set of BufferString objects.
Definition: bufstringset.h:28
ObjType
Definition: uiodapplmgr.h:94
uiAction * lastsceneitm_
Definition: uiodmenumgr.h:181
uiToolBar * viewTB()
Definition: uiodmenumgr.h:69
uiMenu * surveymnu_
Definition: uiodmenumgr.h:109
uiMenu * viewMnu()
Definition: uiodmenumgr.h:53
ObjectSet< uiMenu > expmnus_
Definition: uiodmenumgr.h:129
int removeselectionid_
Definition: uiodmenumgr.h:185
ActType
Definition: uiodapplmgr.h:98
uiMenu * procmnu_
Definition: uiodmenumgr.h:113
uiMenu * impmnu_
Definition: uiodmenumgr.h:118
uiAction * stereoquadbufitm_
Definition: uiodmenumgr.h:178
Provides file and directory names in a certain directory.
Definition: dirlist.h:23
uiToolBar * viewtb_
Definition: uiodmenumgr.h:132
uiODMain & appl_
Definition: uiodmenumgr.h:106
uiMenu * helpMnu()
Definition: uiodmenumgr.h:55
Manages the scenes and the corresponding trees.
Definition: uiodscenemgr.h:47
uiMenu * procWellMnu()
Definition: uiodmenumgr.h:51
uiODSceneMgr & sceneMgr()
Definition: uiodmain.h:53
uiMenu * toolsmnu_
Definition: uiodmenumgr.h:125
uiToolBar * dtecttb_
Definition: uiodmenumgr.h:131
uiMenu * sceneMnu()
Definition: uiodmenumgr.h:52
MeasureToolMan * measuretoolman_
Definition: uiodmenumgr.h:138
Definition: uiodfaulttoolman.h:90
bool inviewmode_
Definition: uiodmenumgr.h:186
Definition: uimenu.h:65
uiMenu * viewmnu_
Definition: uiodmenumgr.h:116
uiMenu * analWellMnu()
Definition: uiodmenumgr.h:48
Definition: measuretoolman.h:24
uiMenu * expmnu_
Definition: uiodmenumgr.h:119
uiMenu * installMnu()
Definition: uiodmenumgr.h:59
uiMenu * installmnu_
Definition: uiodmenumgr.h:126
uiMenu * procwellmnu_
Definition: uiodmenumgr.h:114
uiMenu * utilmnu_
Definition: uiodmenumgr.h:117
uiAction * stereooffitm_
Definition: uiodmenumgr.h:176
uiMenu * manmnu_
Definition: uiodmenumgr.h:120
uiToolBar * mantb_
Definition: uiodmenumgr.h:133
uiAction * stereoredcyanitm_
Definition: uiodmenumgr.h:177
uiODFaultToolMan * faulttoolman_
Definition: uiodmenumgr.h:137
Notifier< uiODMenuMgr > dTectMnuChanged
Definition: uiodmenumgr.h:98
int viewzid_
Definition: uiodmenumgr.h:184
uiMenu * analwellmnu_
Definition: uiodmenumgr.h:111
int soloid_
Definition: uiodmenumgr.h:182
int viewselectid_
Definition: uiodmenumgr.h:183
uiODApplMgr & applMgr()
Definition: uiodmain.h:51
uiMenu * settmnu_
Definition: uiodmenumgr.h:123
CallBacks object-oriented (object + method).
Definition: callback.h:57
uiToolBar * manTB()
Definition: uiodmenumgr.h:70
uiMenu * createSeisOutputMenu()
Definition: uiodmenumgr.h:61
The OpendTect menu manager.
Definition: uiodmenumgr.h:37
uiMenu * scenemnu_
Definition: uiodmenumgr.h:115
uiMenu * layermodelmnu_
Definition: uiodmenumgr.h:112
uiMenu * procMnu()
Definition: uiodmenumgr.h:50
uiAction * stereooffsetitm_
Definition: uiodmenumgr.h:179
uiMenu * analmnu_
Definition: uiodmenumgr.h:110
uiMenu * toolsMnu()
Definition: uiodmenumgr.h:58

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