1 #ifndef tablecommands_h 2 #define tablecommands_h 15 #include "uicmddrivermod.h" 27 enum
TableTag { RowTag=0,RowHead,CellTag,ColHead,ColTag };
29 bool parTableSelPre(
const char* prefix,
TableTag,
87 virtual
bool isUiObjChangeCommand()
const {
return false; }
123 : table_( uitable ) {};
125 bool headInsert(
const RowCol&);
126 int remove(
const RowCol&,
int startidx=0);
127 int indexOf(
const RowCol&,
int startidx=0)
const;
129 bool equalToCurItemSel()
const;
130 bool equalToClickedItem(
const RowCol&)
const;
132 bool storeCurItemSel();
148 virtual
void updateInternalState();
153 void storeTableState();
154 void labelStoredStateOld();
155 void labelStoredStateNew();
157 void writeTableSelect();
158 int writeTableSelect(
bool differential,
159 bool virtually=false);
160 void writeTableSelect(const RowCol& firstrc,
161 const RowCol& lastrc,
162 int blockstate,
bool clear);
163 void writeTableFill();
164 void writeTableMenu(const CmdRecEvent&);
165 void writeTableClick();
172 bool tablecmdsflushed_;
#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
void setTable(const uiTable *uit)
Definition: tablecommands.h:134
Command Drive
Definition: canvascommands.h:22
RowCol actrc_
Definition: tablecommands.h:50
Definition: tablecommands.h:73
Definition: tablecommands.h:25
TypeSet< RowCol > set_
Definition: tablecommands.h:142
void clear()
Definition: tablecommands.h:135
Definition: tablecommands.h:119
Definition: command.h:186
Set of BufferString objects.
Definition: bufstringset.h:28
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
const TypeSet< RowCol > & getSet() const
Definition: tablecommands.h:138
const TypeSet< RowCol > & actselset_
Definition: tablecommands.h:82
Definition: tablecommands.h:86
uiTable & acttable_
Definition: tablecommands.h:49
uiTable & acttable_
Definition: tablecommands.h:65
RowCol actrc_
Definition: tablecommands.h:66
#define mStartDeclComposerClassWithInit(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:145
Definition: geom2dascio.h:21
BufferString acttxt_
Definition: tablecommands.h:67
Definition: cmdrecorder.h:35
Definition: cmdcomposer.h:52
#define mStartDeclCmdClassNoActNoEntry(mod, cmdkey, parentclass)
Definition: command.h:122
#define mEndDeclComposerClass
Definition: cmdcomposer.h:149
IdxPair used for its row() and col().
Definition: rowcol.h:25
virtual bool isVisualCommand() const
Definition: tablecommands.h:88
Definition: command.h:156
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const uiTable * table_
Definition: tablecommands.h:141
Definition: tablecommands.h:58
Definition: tablecommands.h:42
TableTag
Definition: tablecommands.h:27
TableState(const uiTable *uitable=0)
Definition: tablecommands.h:122
BufferStringSet actclicktags_
Definition: tablecommands.h:52
uiTable & acttable_
Definition: tablecommands.h:80