OpendTect-6_4  6.4
menubutcommands.h
Go to the documentation of this file.
1 #ifndef menubutcommands_h
2 #define menubutcommands_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Jaap Glas
9  Date: February 2009
10  RCS: $Id$
11  ________________________________________________________________________
12 
13 -*/
14 
15 #include "uicmddrivermod.h"
16 #include "command.h"
17 #include "cmdcomposer.h"
18 
19 #include "uibutton.h"
20 #include "uimdiarea.h"
21 #include "uimenu.h"
22 #include "uitabbar.h"
23 
24 
25 namespace CmdDrive
26 {
27 
28 mStartDeclCmdClass( uiCmdDriver, Menu, UiObjectCmd )
29  bool isLocalEnvCommand() const { return false; }
31 
32 mExpClass(uiCmdDriver) MenuActivator : public Activator
33 {
34 public:
35  MenuActivator(const uiAction&);
36  void actCB(CallBacker*);
37 
38 protected:
39  uiAction& actmnuitm_;
40 };
41 
42 
43 mStartDeclCmdClass( uiCmdDriver, Button, UiObjectCmd )
44  bool isOpenQDlgCommand() const { return true; }
45 
46 protected:
47  bool actQDlgButton(const char* parstr);
49 
50 mExpClass(uiCmdDriver) ButtonActivator : public Activator
51 {
52 public:
53  ButtonActivator(const uiButton&);
54  void actCB(CallBacker*);
55 
56 protected:
57  uiButton& actbut_;
58 };
59 
60 
61 mStartDeclCmdClass( uiCmdDriver, Close, Command )
62 protected:
63  bool actCloseCurWin(const char* parstr);
65 
67 {
68 public:
69  MdiAreaCloseActivator(const uiMdiArea&,const char* winname);
70  void actCB(CallBacker*);
71 
72 protected:
73  uiMdiAreaWindow* actwindow_;
74 };
75 
76 
77 mStartDeclCmdClass( uiCmdDriver, Show, Command )
78  bool isOpenQDlgCommand() const { return false; }
79 
80 protected:
81  bool actShowCurWin(const char* parstr);
83 
84 mExpClass(uiCmdDriver) ShowActivator : public Activator
85 {
86 public:
87  ShowActivator(const uiMainWin&,int minnormax);
88  void actCB(CallBacker*);
89 
90 protected:
93 };
94 
95 
97 {
98 public:
99  MdiAreaShowActivator(const uiMdiArea&,const char* winname,
100  int minnormax);
101  void actCB(CallBacker*);
102 
103 protected:
104  uiMdiAreaWindow* actwindow_;
106 };
107 
108 
110 
111 mExpClass(uiCmdDriver) TabActivator : public Activator
112 {
113 public:
114  TabActivator(const uiTabBar&,int tabidx);
115  void actCB(CallBacker*);
116 
117 protected:
120 };
121 
122 
127 
128 
129 
130 mStartDeclCmdClass( uiCmdDriver, NrMenuItems, UiObjQuestionCmd )
131  bool isLocalEnvCommand() const { return false; }
133 
134 mStartDeclCmdClass( uiCmdDriver, IsMenuItemOn, UiObjQuestionCmd )
135  bool isLocalEnvCommand() const { return false; }
137 
138 mStartDeclCmdClass( uiCmdDriver, GetMenuItem, UiObjQuestionCmd )
139  bool isLocalEnvCommand() const { return false; }
141 
142 mStartDeclCmdClass( uiCmdDriver, IsButtonOn, UiObjQuestionCmd )
143  bool isOpenQDlgCommand() const { return true; }
144 protected:
145  bool actQDlgButton(const char* parstr);
147 
148 mStartDeclCmdClass( uiCmdDriver, GetButton, UiObjQuestionCmd )
149  bool isOpenQDlgCommand() const { return true; }
150 protected:
151  bool actQDlgButton(const char* parstr);
153 
154 mStartDeclCmdClass( uiCmdDriver, NrButtonMenuItems, UiObjQuestionCmd )
156 mStartDeclCmdClass( uiCmdDriver, IsButtonMenuItemOn, UiObjQuestionCmd )
158 mStartDeclCmdClass( uiCmdDriver, GetButtonMenuItem, UiObjQuestionCmd )
160 
165 
166 
167 mStartDeclCmdClass( uiCmdDriver, IsShown, UiObjQuestionCmd )
168  bool isLocalEnvCommand() const { return false; }
169 protected:
170  bool actIsCurWinShown(const char* parstr);
172 
173 
174 mStartDeclComposerClass( uiCmdDriver, Menu, CmdComposer, uiAction )
176 mStartDeclComposerClass( uiCmdDriver, Button, CmdComposer, uiButton )
178 mStartDeclComposerClass( uiCmdDriver, Close, CmdComposer, uiMainWin )
180 mStartDeclComposerClass( uiCmdDriver, MdiArea,CmdComposer,uiMdiArea )
182 mStartDeclComposerClass( uiCmdDriver, Tab, CmdComposer, uiTabBar )
184 
185 mStartDeclComposerClass( uiCmdDriver, QMsgBoxBut, CmdComposer, uiMainWin )
187 
188 
189 }; // namespace CmdDrive
190 
191 #endif
#define mEndDeclCmdClass
Definition: command.h:152
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
uiMdiAreaWindow * actwindow_
Definition: menubutcommands.h:104
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mStartDeclCmdClass(mod, cmdkey, parentclass)
Definition: command.h:148
Definition: menubutcommands.h:96
Command Drive
Definition: canvascommands.h:22
Definition: oduicommon.h:65
int actminnormax_
Definition: menubutcommands.h:105
Definition: command.h:186
TabBar widget only. Normally you'd want to use the uiTabStack class.
Definition: uitabbar.h:25
uiAction & actmnuitm_
Definition: menubutcommands.h:39
Definition: uimdiarea.h:65
Definition: oduicommon.h:70
Definition: menubutcommands.h:84
int actminnormax_
Definition: menubutcommands.h:92
Definition: menubutcommands.h:50
uiButton & actbut_
Definition: menubutcommands.h:57
uiMdiAreaWindow * actwindow_
Definition: menubutcommands.h:73
Definition: menubutcommands.h:111
uiMainWin & actmainwin_
Definition: menubutcommands.h:91
Definition: cmdcomposer.h:52
#define mEndDeclComposerClass
Definition: cmdcomposer.h:149
#define mStartDeclCmdClassNoEntry(mod, cmdkey, parentclass)
Definition: command.h:144
Definition: command.h:162
Definition: command.h:156
Definition: menubutcommands.h:32
#define mStartDeclCmdClassNoAct(mod, cmdkey, parentclass)
Definition: command.h:134
Definition: menubutcommands.h:124
#define mStartDeclComposerClass(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:131
Definition: menubutcommands.h:66
uiTabBar & acttabbar_
Definition: menubutcommands.h:118
int acttabidx_
Definition: menubutcommands.h:119
Definition: command.h:35

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