OpendTect-6_4  6.4
listcommands.h
Go to the documentation of this file.
1 #ifndef listcommands_h
2 #define listcommands_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 "uicombobox.h"
20 #include "uilistbox.h"
21 
22 
23 namespace CmdDrive
24 {
25 
27 
28 mExpClass(uiCmdDriver) ComboActivator: public Activator
29 {
30 public:
31  ComboActivator(const uiComboBox&,int itmidx);
32  void actCB(CallBacker*);
33 protected:
36 };
37 
38 
39 mStartDeclCmdClass( uiCmdDriver, ListButton, UiObjectCmd ) mEndDeclCmdClass
42 
43 mExpClass(uiCmdDriver) ListActivator: public Activator
44 {
45 public:
46  ListActivator(const uiListBox&,int itmidx,
47  const BufferStringSet& clicktags);
48  void actCB(CallBacker*);
49 protected:
52 
54 };
55 
56 mStartDeclCmdClass( uiCmdDriver, ListSelect, UiObjectCmd ) mEndDeclCmdClass
57 
59 {
60 public:
62  const TypeSet<int>& selset);
63  void actCB(CallBacker*);
64 protected:
67 };
68 
69 
70 mStartDeclCmdClass( uiCmdDriver, GetComboItem, UiObjQuestionCmd )
72 mStartDeclCmdClass( uiCmdDriver, CurComboItem, UiObjQuestionCmd )
74 mStartDeclCmdClass( uiCmdDriver, NrComboItems, UiObjQuestionCmd )
76 mStartDeclCmdClass( uiCmdDriver, IsComboItemOn, UiObjQuestionCmd )
78 
79 mStartDeclCmdClass( uiCmdDriver, NrListItems, UiObjQuestionCmd )
81 mStartDeclCmdClass( uiCmdDriver, IsListItemOn, UiObjQuestionCmd )
83 mStartDeclCmdClass( uiCmdDriver, IsListButtonOn, UiObjQuestionCmd )
85 mStartDeclCmdClass( uiCmdDriver, CurListItem, UiObjQuestionCmd )
87 mStartDeclCmdClass( uiCmdDriver, GetListItem, UiObjQuestionCmd )
89 mStartDeclCmdClass( uiCmdDriver, NrListMenuItems, UiObjQuestionCmd )
91 mStartDeclCmdClass( uiCmdDriver, IsListMenuItemOn, UiObjQuestionCmd )
93 mStartDeclCmdClass( uiCmdDriver, GetListMenuItem, UiObjQuestionCmd )
95 
96 
98 protected:
99  bool itemedited_;
100  BufferString edittext_;
102 
103 mStartDeclComposerClassWithInit( uiCmdDriver, List, CmdComposer, uiListBoxObj )
104 public:
105  virtual void updateInternalState();
106 
107 protected:
108  void reInit();
109  void storeListState();
110  void labelStoredStateOld();
111  void labelStoredStateNew();
112 
113  void writeListSelect();
114  int writeListSelect(bool differential,bool virtually=false);
115  void writeListSelect(int firstidx,int lastidx,
116  int blockstate,bool clear);
117  void writeListButton();
118  void writeListMenu(const CmdRecEvent&);
119  void writeListClick();
120 
121  int stagenr_;
122  int clickedidx_;
123  bool leftclicked_;
124  bool selchanged_;
125  bool listcmdsflushed_;
126 
127  TypeSet<int> selecteditems_;
128  TypeSet<int> checkeditems_;
129  TypeSet<int> wascheckeditems_;
130  TypeSet<int> isselecteditems_;
131  TypeSet<int> ischeckeditems_;
132 
134 
135 }; // namespace CmdDrive
136 
137 #endif
#define mEndDeclCmdClass
Definition: command.h:152
#define mExpClass(module)
Definition: commondefs.h:160
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
TypeSet< int > actselset_
Definition: listcommands.h:66
Command Drive
Definition: canvascommands.h:22
Definition: command.h:186
Definition: listcommands.h:58
void clear(std::ios &)
Combo box.
Definition: uicombobox.h:32
Set of BufferString objects.
Definition: bufstringset.h:28
List Box.
Definition: uilistbox.h:75
#define mStartDeclComposerClassWithInit(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:145
uiListBox & actlist_
Definition: listcommands.h:65
Definition: cmdrecorder.h:35
Definition: cmdcomposer.h:52
int actitmidx_
Definition: listcommands.h:35
#define mEndDeclComposerClass
Definition: cmdcomposer.h:149
Definition: command.h:162
Definition: command.h:156
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
int actitmidx_
Definition: listcommands.h:51
BufferStringSet actclicktags_
Definition: listcommands.h:53
Definition: listcommands.h:28
uiComboBox & actcombox_
Definition: listcommands.h:34
uiListBox & actlist_
Definition: listcommands.h:50
Definition: listcommands.h:43

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