OpendTect  6.3
menubutcommands.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: Jaap Glas
8  Date: February 2009
9  ________________________________________________________________________
10 
11 -*/
12 
13 #include "uicmddrivermod.h"
14 #include "command.h"
15 #include "cmdcomposer.h"
16 
17 #include "uibutton.h"
18 #include "uimdiarea.h"
19 #include "uimenu.h"
20 #include "uitabbar.h"
21 
22 
23 namespace CmdDrive
24 {
25 
26 mStartDeclCmdClass( uiCmdDriver, Menu, UiObjectCmd )
27  bool isLocalEnvCommand() const { return false; }
29 
30 mExpClass(uiCmdDriver) MenuActivator : public Activator
31 {
32 public:
33  MenuActivator(const uiAction&);
34  void actCB(CallBacker*);
35 
36 protected:
37  uiAction& actmnuitm_;
38 };
39 
40 
41 mStartDeclCmdClass( uiCmdDriver, Button, UiObjectCmd )
42  bool isOpenQDlgCommand() const { return true; }
43 
44 protected:
45  bool actQDlgButton(const char* parstr);
47 
48 mExpClass(uiCmdDriver) ButtonActivator : public Activator
49 {
50 public:
51  ButtonActivator(const uiButton&);
52  void actCB(CallBacker*);
53 
54 protected:
55  uiButton& actbut_;
56 };
57 
58 
59 mStartDeclCmdClass( uiCmdDriver, Close, Command )
60 protected:
61  bool actCloseCurWin(const char* parstr);
63 
65 {
66 public:
67  MdiAreaCloseActivator(const uiMdiArea&,const char* winname);
68  void actCB(CallBacker*);
69 
70 protected:
71  uiMdiAreaWindow* actwindow_;
72 };
73 
74 
76  bool isOpenQDlgCommand() const { return false; }
77 
78 protected:
79  bool actShowCurWin(const char* parstr);
81 
82 mExpClass(uiCmdDriver) ShowActivator : public Activator
83 {
84 public:
85  ShowActivator(const uiMainWin&,int minnormax);
86  void actCB(CallBacker*);
87 
88 protected:
91 };
92 
93 
95 {
96 public:
97  MdiAreaShowActivator(const uiMdiArea&,const char* winname,
98  int minnormax);
99  void actCB(CallBacker*);
100 
101 protected:
102  uiMdiAreaWindow* actwindow_;
104 };
105 
106 
108 
109 mExpClass(uiCmdDriver) TabActivator : public Activator
110 {
111 public:
112  TabActivator(const uiTabBar&,int tabidx);
113  void actCB(CallBacker*);
114 
115 protected:
118 };
119 
120 
125 
126 
127 
128 mStartDeclCmdClass( uiCmdDriver, NrMenuItems, UiObjQuestionCmd )
129  bool isLocalEnvCommand() const { return false; }
131 
132 mStartDeclCmdClass( uiCmdDriver, IsMenuItemOn, UiObjQuestionCmd )
133  bool isLocalEnvCommand() const { return false; }
135 
136 mStartDeclCmdClass( uiCmdDriver, GetMenuItem, UiObjQuestionCmd )
137  bool isLocalEnvCommand() const { return false; }
139 
140 mStartDeclCmdClass( uiCmdDriver, IsButtonOn, UiObjQuestionCmd )
141  bool isOpenQDlgCommand() const { return true; }
142 protected:
143  bool actQDlgButton(const char* parstr);
145 
146 mStartDeclCmdClass( uiCmdDriver, GetButton, UiObjQuestionCmd )
147  bool isOpenQDlgCommand() const { return true; }
148 protected:
149  bool actQDlgButton(const char* parstr);
151 
152 mStartDeclCmdClass( uiCmdDriver, NrButtonMenuItems, UiObjQuestionCmd )
154 mStartDeclCmdClass( uiCmdDriver, IsButtonMenuItemOn, UiObjQuestionCmd )
156 mStartDeclCmdClass( uiCmdDriver, GetButtonMenuItem, UiObjQuestionCmd )
158 
163 
164 
165 mStartDeclCmdClass( uiCmdDriver, IsShown, UiObjQuestionCmd )
166  bool isLocalEnvCommand() const { return false; }
167 protected:
168  bool actIsCurWinShown(const char* parstr);
170 
171 
172 mStartDeclComposerClass( uiCmdDriver, Menu, CmdComposer, uiAction )
174 mStartDeclComposerClass( uiCmdDriver, Button, CmdComposer, uiButton )
176 mStartDeclComposerClass( uiCmdDriver, Close, CmdComposer, uiMainWin )
178 mStartDeclComposerClass( uiCmdDriver, MdiArea,CmdComposer,uiMdiArea )
180 mStartDeclComposerClass( uiCmdDriver, Tab, CmdComposer, uiTabBar )
182 
183 mStartDeclComposerClass( uiCmdDriver, QMsgBoxBut, CmdComposer, uiMainWin )
185 
186 
187 }; // namespace CmdDrive
#define mEndDeclCmdClass
Definition: command.h:150
#define mExpClass(module)
Definition: commondefs.h:157
User interface main window.
Definition: uimainwin.h:34
uiMdiAreaWindow * actwindow_
Definition: menubutcommands.h:102
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
#define mStartDeclCmdClass(mod, cmdkey, parentclass)
Definition: command.h:146
Definition: menubutcommands.h:94
Command Drive
Definition: canvascommands.h:20
Definition: oduicommon.h:63
int actminnormax_
Definition: menubutcommands.h:103
Definition: command.h:184
TabBar widget only. Normally you'd want to use the uiTabStack class.
Definition: uitabbar.h:23
uiAction & actmnuitm_
Definition: menubutcommands.h:37
Definition: uimdiarea.h:63
Definition: oduicommon.h:68
Definition: menubutcommands.h:82
int actminnormax_
Definition: menubutcommands.h:90
Definition: menubutcommands.h:48
uiButton & actbut_
Definition: menubutcommands.h:55
uiMdiAreaWindow * actwindow_
Definition: menubutcommands.h:71
Definition: menubutcommands.h:109
uiMainWin & actmainwin_
Definition: menubutcommands.h:89
Definition: cmdcomposer.h:50
#define mEndDeclComposerClass
Definition: cmdcomposer.h:147
#define mStartDeclCmdClassNoEntry(mod, cmdkey, parentclass)
Definition: command.h:142
Definition: odpresentationmgr.h:32
Definition: command.h:160
Definition: command.h:154
Definition: menubutcommands.h:30
#define mStartDeclCmdClassNoAct(mod, cmdkey, parentclass)
Definition: command.h:132
Definition: menubutcommands.h:122
#define mStartDeclComposerClass(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:129
Definition: menubutcommands.h:64
uiTabBar & acttabbar_
Definition: menubutcommands.h:116
int acttabidx_
Definition: menubutcommands.h:117
Definition: command.h:33

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