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

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