OpendTect  6.6
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  RCS: $Id$
10  ________________________________________________________________________
11 
12 -*/
13 
14 #include "uicmddrivermod.h"
15 #include "command.h"
16 #include "cmdcomposer.h"
17 
18 #include "uicombobox.h"
19 #include "uilistbox.h"
20 
21 
22 namespace CmdDrive
23 {
24 
26 
27 mExpClass(uiCmdDriver) ComboActivator: public Activator
28 {
29 public:
30  ComboActivator(const uiComboBox&,int itmidx);
31  void actCB(CallBacker*);
32 protected:
35 };
36 
37 
38 mStartDeclCmdClass( uiCmdDriver, ListButton, UiObjectCmd ) mEndDeclCmdClass
41 
42 mExpClass(uiCmdDriver) ListActivator: public Activator
43 {
44 public:
45  ListActivator(const uiListBox&,int itmidx,
46  const BufferStringSet& clicktags);
47  void actCB(CallBacker*);
48 protected:
51 
53 };
54 
55 mStartDeclCmdClass( uiCmdDriver, ListSelect, UiObjectCmd ) mEndDeclCmdClass
56 
58 {
59 public:
61  const TypeSet<int>& selset);
62  void actCB(CallBacker*);
63 protected:
66 };
67 
68 
69 mStartDeclCmdClass( uiCmdDriver, GetComboItem, UiObjQuestionCmd )
71 mStartDeclCmdClass( uiCmdDriver, CurComboItem, UiObjQuestionCmd )
73 mStartDeclCmdClass( uiCmdDriver, NrComboItems, UiObjQuestionCmd )
75 mStartDeclCmdClass( uiCmdDriver, IsComboItemOn, UiObjQuestionCmd )
77 
78 mStartDeclCmdClass( uiCmdDriver, NrListItems, UiObjQuestionCmd )
80 mStartDeclCmdClass( uiCmdDriver, IsListItemOn, UiObjQuestionCmd )
82 mStartDeclCmdClass( uiCmdDriver, IsListButtonOn, UiObjQuestionCmd )
84 mStartDeclCmdClass( uiCmdDriver, CurListItem, UiObjQuestionCmd )
86 mStartDeclCmdClass( uiCmdDriver, GetListItem, UiObjQuestionCmd )
88 mStartDeclCmdClass( uiCmdDriver, NrListMenuItems, UiObjQuestionCmd )
90 mStartDeclCmdClass( uiCmdDriver, IsListMenuItemOn, UiObjQuestionCmd )
92 mStartDeclCmdClass( uiCmdDriver, GetListMenuItem, UiObjQuestionCmd )
94 
95 
97 protected:
101 
102 mStartDeclComposerClassWithInit( uiCmdDriver, List, CmdComposer, uiListBoxObj )
103 public:
104  virtual void updateInternalState();
105 
106 protected:
107  void reInit();
111 
113  int writeListSelect(bool differential,bool virtually=false);
114  void writeListSelect(int firstidx,int lastidx,
115  int blockstate,bool clear);
119 
120  int stagenr_;
125 
131 
133 
134 }; // namespace CmdDrive
135 
CmdDrive::ListActivator::actCB
void actCB(CallBacker *)
CmdDrive::ListActivator
Definition: listcommands.h:43
CmdDrive::ListCmdComposer::ischeckeditems_
TypeSet< int > ischeckeditems_
Definition: listcommands.h:130
cmdcomposer.h
CmdDrive::UiObjectCmd
Definition: command.h:155
CmdDrive::ListCmdComposer::writeListMenu
void writeListMenu(const CmdRecEvent &)
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
mEndDeclCmdClass
#define mEndDeclCmdClass
Definition: command.h:151
CmdDrive::ListCmdComposer::leftclicked_
bool leftclicked_
Definition: listcommands.h:122
uiComboBox
Combo box.
Definition: uicombobox.h:32
CmdDrive::ListCmdComposer::stagenr_
int stagenr_
Definition: listcommands.h:120
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
CmdDrive::ComboActivator
Definition: listcommands.h:28
CmdDrive::ListActivator::ListActivator
ListActivator(const uiListBox &, int itmidx, const BufferStringSet &clicktags)
CmdDrive::ComboActivator::ComboActivator
ComboActivator(const uiComboBox &, int itmidx)
CmdDrive::ListCmdComposer::writeListButton
void writeListButton()
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
CmdDrive::ListCmdComposer::writeListSelect
void writeListSelect(int firstidx, int lastidx, int blockstate, bool clear)
CmdDrive::ListSelectActivator::actselset_
TypeSet< int > actselset_
Definition: listcommands.h:65
CmdDrive::ListActivator::actlist_
uiListBox & actlist_
Definition: listcommands.h:49
CmdDrive::ComboCmdComposer::edittext_
BufferString edittext_
Definition: listcommands.h:99
CmdDrive::mStartDeclCmdClass
mStartDeclCmdClass(CmdDriver, Wheel, UiObjectCmd) mEndDeclCmdClass class WheelActivator mStartDeclCmdClass(CmdDriver, GetWheel, UiObjQuestionCmd) mEndDeclCmdClass mStartDeclComposerClassWithInit(CmdDriver
CmdDrive::ListCmdComposer::wascheckeditems_
TypeSet< int > wascheckeditems_
Definition: listcommands.h:128
command.h
CmdDrive::ListCmdComposer::selecteditems_
TypeSet< int > selecteditems_
Definition: listcommands.h:126
CmdDrive::CmdComposer
Definition: cmdcomposer.h:52
CmdDrive::ListSelectActivator::ListSelectActivator
ListSelectActivator(const uiListBox &, const TypeSet< int > &selset)
CmdDrive::ComboActivator::actcombox_
uiComboBox & actcombox_
Definition: listcommands.h:33
mEndDeclComposerClass
#define mEndDeclComposerClass
Definition: cmdcomposer.h:148
CmdDrive::ListCmdComposer::checkeditems_
TypeSet< int > checkeditems_
Definition: listcommands.h:127
CmdDrive::ComboActivator::actitmidx_
int actitmidx_
Definition: listcommands.h:34
uilistbox.h
CmdDrive::ListActivator::actclicktags_
BufferStringSet actclicktags_
Definition: listcommands.h:52
uiListBox
List Box.
Definition: uilistbox.h:75
CmdDrive::ListCmdComposer::selchanged_
bool selchanged_
Definition: listcommands.h:123
mStartDeclComposerClassWithInit
#define mStartDeclComposerClassWithInit(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:144
CmdDrive::ListCmdComposer::labelStoredStateNew
void labelStoredStateNew()
CmdDrive::ListCmdComposer::clickedidx_
int clickedidx_
Definition: listcommands.h:121
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
CmdDrive::ComboActivator::actCB
void actCB(CallBacker *)
CmdDrive::ListCmdComposer::writeListSelect
void writeListSelect()
CmdDrive::ListActivator::actitmidx_
int actitmidx_
Definition: listcommands.h:50
CmdDrive::ListCmdComposer::writeListClick
void writeListClick()
CmdDrive
Command Drive
Definition: canvascommands.h:22
CmdDrive::ListCmdComposer::isselecteditems_
TypeSet< int > isselecteditems_
Definition: listcommands.h:129
CmdDrive::ListCmdComposer::storeListState
void storeListState()
CmdDrive::CmdRecEvent
Definition: cmdrecorder.h:35
CmdDrive::ListCmdComposer::reInit
void reInit()
CmdDrive::ListCmdComposer::writeListSelect
int writeListSelect(bool differential, bool virtually=false)
CmdDrive::ListCmdComposer::listcmdsflushed_
bool listcmdsflushed_
Definition: listcommands.h:124
CmdDrive::UiObjQuestionCmd
Definition: command.h:161
CmdDrive::ListSelectActivator::actCB
void actCB(CallBacker *)
uicombobox.h
CmdDrive::ListSelectActivator::actlist_
uiListBox & actlist_
Definition: listcommands.h:64
CmdDrive::ListCmdComposer::updateInternalState
virtual void updateInternalState()
CmdDrive::ListCmdComposer::labelStoredStateOld
void labelStoredStateOld()
StrmOper::clear
void clear(std::ios &)
CmdDrive::Activator
Definition: command.h:186
TypeSet< int >
CmdDrive::ListSelectActivator
Definition: listcommands.h:58
CmdDrive::ComboCmdComposer::itemedited_
bool itemedited_
Definition: listcommands.h:98

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