OpendTect  6.6
uitable.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: A.H. Lammertink
8  Date: 12/02/2003
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uibasemod.h"
15 #include "uiobj.h"
16 
17 #include "color.h"
18 #include "keyenum.h"
19 #include "rowcol.h"
20 #include "draw.h"
21 #include "uistrings.h"
22 
23 class BufferStringSet;
24 class uiPixmap;
25 class uiGroup;
26 class uiLabel;
27 class uiTableBody;
28 
29 
30 mExpClass(uiBase) uiTable : public uiObject
32 friend class i_tableMessenger;
33 friend class uiTableBody;
34 public:
35 
37  {
41  SingleRow
42  };
43 
45  {
46  SelectItems, SelectRows, SelectColumns
47  };
48 
50  {
51  Interactive, Stretch, Fixed, ResizeToContents
52  };
53 
54  mExpClass(uiBase) Setup
55  {
56  public:
57 
58  Setup(int nrrows=-1,int nrcols=-1)
59  : size_(nrrows,nrcols)
60  , rowdesc_(uiStrings::sRow())
61  , coldesc_(uiStrings::sColumn())
62  , insertrowallowed_(true)
63  , removerowallowed_(true)
64  , rowgrow_(false)
65  , insertcolallowed_(true)
66  , removecolallowed_(true)
67  , colgrow_(false)
68  , fillrow_(false)
69  , fillcol_(false)
70  , minrowhgt_(1.f)
71  , maxrowhgt_(3.f)
72  , mincolwdt_(1.f*uiObject::baseFldSize())
74  , maxcolwdt_(2.3f*uiObject::baseFldSize())
76  , selmode_(NoSelection)
77  , removeselallowed_(true)
78  , snglclkedit_(true)
79  , defcollbl_(false)
80  , defrowlbl_(false)
81  , manualresize_(false)
83  , defrowstartidx_(1)
85  , rightclickdisabled_(false)
87  , enablecopytext_(false)
88  {}
89 
91  mDefSetupMemb(uiString,rowdesc)
93  mDefSetupMemb(bool,rowgrow)
94  mDefSetupMemb(bool,colgrow)
95  mDefSetupMemb(bool,insertrowallowed)
96  mDefSetupMemb(bool,removerowallowed)
97  mDefSetupMemb(bool,insertcolallowed)
98  mDefSetupMemb(bool,removecolallowed)
99  mDefSetupMemb(bool,fillrow)
100  mDefSetupMemb(bool,fillcol)
101  mDefSetupMemb(float,maxrowhgt)
102  mDefSetupMemb(float,minrowhgt)
103  mDefSetupMemb(float,maxcolwdt)
104  mDefSetupMemb(float,mincolwdt)
106  mDefSetupMemb(bool,removeselallowed)
107  mDefSetupMemb(bool,snglclkedit)
108  mDefSetupMemb(bool,defrowlbl)
109  mDefSetupMemb(bool,defcollbl)
110  mDefSetupMemb(bool,manualresize)
111  mDefSetupMemb(int,defrowstartidx)
112  mDefSetupMemb(bool,rightclickdisabled)
113  mDefSetupMemb(bool,enablecopytext)
114 
115  Setup& sizesFixed( bool yn )
116  {
117  insertrowallowed_ = removerowallowed_ = rowgrow_ =
118  insertcolallowed_ = removecolallowed_ = colgrow_ = !yn;
119  return *this;
120  }
121 
122  Setup& rowdesc( const char* desc )
123  { rowdesc_ = toUiString(desc); return *this; }
124  Setup& coldesc( const char* desc )
125  { coldesc_ = toUiString(desc); return *this; }
126  };
127 
128  uiTable(uiParent*,const Setup&,const char* nm);
129  virtual ~uiTable();
130 
131  const char* text(const RowCol&) const;
132  void setText(const RowCol&,const char*);
133  void setText(const RowCol&,const OD::String&);
134  void setText(const RowCol&,const uiString&);
135  void clearCell(const RowCol&);
136  void clearTable();
137  void showGrid(bool);
138  bool gridShown() const;
139  void setCurrentCell(const RowCol&,bool noselection=false);
143  uiObject* getCellObject(const RowCol&) const;
144  void clearCellObject(const RowCol&);
146  void setCellGroup(const RowCol&,uiGroup*);
149  uiGroup* getCellGroup(const RowCol&) const;
151  void setCellChecked(const RowCol&,bool yn);
152  bool isCellChecked(const RowCol&) const;
153 
154  int nrRows() const;
155  int nrCols() const;
156  void setNrRows(int);
157  void setNrCols(int);
159 
160  int columnWidth(int) const;
161  int rowHeight(int) const;
162 
163  void setLeftMargin(int);
164  void setColumnWidth(int col,int w);
165  void setColumnWidthInChar(int col,float w);
166 
167  void setTopMargin(int);
168  void setRowHeight(int row,int h);
169  void setRowHeightInChar(int row,float h);
170 
171  void resizeHeaderToContents(bool hor);
180  void setColumnStretchable(int,bool);
181  void setRowStretchable(int,bool);
182  bool isColumnStretchable(int) const;
183  bool isRowStretchable(int) const;
184 
185  void setTableReadOnly(bool);
186  bool isTableReadOnly() const;
187 
188  void setColumnReadOnly(int,bool);
189  bool isColumnReadOnly(int) const;
190  void setRowReadOnly(int,bool);
191  bool isRowReadOnly(int) const;
192 
193  void setCellReadOnly(const RowCol&,bool);
194  bool isCellReadOnly(const RowCol&) const;
195 
196  void hideColumn(int,bool);
197  void hideRow(int,bool);
198  bool isColumnHidden(int) const;
199  bool isRowHidden(int) const;
200 
201  bool isTopHeaderHidden() const;
202  bool isLeftHeaderHidden() const;
203  void setTopHeaderHidden(bool);
205 
206  void insertRows(int row,int count);
207  inline void insertRows( const RowCol& rc, int count )
208  { insertRows( rc.row(), count ); }
209  void insertColumns(int col,int count);
210  inline void insertColumns( const RowCol& rc, int count )
211  { insertColumns( rc.col(), count ); }
212  void removeRow(int);
213  void removeRow( const RowCol& rc )
214  { removeRow( rc.row() ); }
215  void removeRows(const TypeSet<int>&);
216  void removeColumn(int);
217  void removeColumn( const RowCol& rc )
218  { removeColumn( rc.col() ); }
220 
221  bool isSelected(const RowCol&) const;
222  bool isRowSelected(int) const;
223  bool isColumnSelected(int) const;
224  // next 3 return in selected order
228  int currentRow() const;
229  int currentCol() const;
231  { return RowCol( currentRow(), currentCol() ); }
232  void setSelected(const RowCol&,bool yn=true);
233  void selectRow(int row);
234  void selectColumn(int col);
235  void selectItems(const TypeSet<RowCol>&,bool);
237  void ensureCellVisible(const RowCol&);
238 
239  const char* rowLabel(int) const;
240  const char* rowLabel( const RowCol& rc ) const
241  { return rowLabel(rc.row()); }
242  void setRowLabel(int,const uiString&); // also sets tooltip
243  void setRowLabels(const uiStringSet&);
245  void setRowLabel( const RowCol& rc, const uiString& lbl )
246  { setRowLabel( rc.row(), lbl ); }
247  void setRowToolTip(int,const uiString&);
248 
249  const char* columnLabel(int) const;
250  const char* columnLabel( const RowCol& rc ) const
251  { return columnLabel(rc.col()); }
252  void setColumnLabel(int,const uiString&); //also sets tooltip
255  void setColumnLabel( const RowCol& rc, const uiString& lbl )
256  { setColumnLabel( rc.col(), lbl ); }
257  void setColumnToolTip(int,const uiString&);
258 
259  void setCellToolTip(const RowCol&,const uiString&);
260 
264  void setLabelBGColor(int,Color,bool isrow);
265 
266 
267  Setup& setup() { return setup_; }
268  const Setup& setup() const { return setup_; }
269 
270  const RowCol& notifiedCell() const { return notifcell_; }
271  void setNotifiedCell(const RowCol& rc)
272  { notifcell_=rc; }
273  const TypeSet<int>& getNotifRCs() const
274  { return seliscols_ ? notifcols_ : notifrows_; }
275  const TypeSet<RowCol>& getNotifCells() const { return notifcells_; }
276 
282 
283  const RowCol& newCell() const { return newcell_; }
291 
292  void setPixmap(const RowCol&,const uiPixmap&);
293  void setColor(const RowCol&,const Color&);
294  Color getColor(const RowCol&) const;
295  void setHeaderBackground(int,const Color&,bool isrow);
296  Color getHeaderBackground(int,bool isrow) const;
297  void showOuterFrame(bool);
298 
299  int getIntValue(const RowCol&) const;
301  double getDValue(const RowCol&) const;
302  float getFValue(const RowCol&) const;
303  void setValue(const RowCol&,int);
304  void setValue(const RowCol&,od_int64);
305  void setValue(const RowCol&,float);
306  void setValue(const RowCol&,float,int nrdec);
307  void setValue(const RowCol&,double);
308  void setValue(const RowCol&,double,int nrdec);
309 
312  void editCell(const RowCol&,bool replace=false);
313  void setMouseTracking(bool);
314 
316  {
317  public:
319  : firstrow_(-1), lastrow_(-1)
320  , firstcol_(-1), lastcol_(-1) {}
321 
322  int nrRows() const { return lastrow_-firstrow_+1; }
323  int nrCols() const { return lastcol_-firstcol_+1; }
324 
326  int lastrow_;
327 
329  int lastcol_;
330  };
331 
332 
334 
336  int maxNrOfSelections() const;
337 
339  bool needOfVirtualKeyboard() const;
340  void popupVirtualKeyboard(int globalx=-1,int globaly=-1);
341 
342 protected:
343 
351 
352  mutable Setup setup_;
353 
354  virtual void popupMenu(CallBacker*);
356 
358  void updateCellSizes(const uiSize* sz=0);
360 
361  bool getSelected();
362  void removeRCs(const TypeSet<int>&,bool col);
363  void update(bool row,int nr);
364 
366 
367 private:
368 
369  uiTableBody* body_;
370  uiTableBody& mkbody(uiParent*,const char*,int,int);
372 
373  mutable uiSize lastsz;
374 
375 public:
376  mDeprecated ("Use getDValue")
377  double getdValue( const RowCol& rc ) const
378  { return getDValue( rc ); }
379  mDeprecated ("Use getFValue")
380  float getfValue( const RowCol& rc ) const
381  { return getFValue( rc ); }
382 
383  mDeprecated ("Use uiString")
384  void setRowLabel( int idx, const char* lbl )
385  { setRowLabel(idx,toUiString(lbl)); }
386  mDeprecated ("Use uiStringSet")
387  void setRowLabels(const char**);
389  void setRowLabel( const RowCol& rc, const char* lbl )
390  { setRowLabel( rc.row(), toUiString(lbl) ); }
391  mDeprecated ("Use uiString")
392  void setRowToolTip( int idx, const char* tt )
393  { setRowToolTip(idx,toUiString(tt)); }
394 
395  mDeprecated ("Use uiString")
396  void setColumnLabel( int idx, const char* lbl )
397  { setColumnLabel(idx,toUiString(lbl)); }
398  mDeprecated ("Use uiStringSet")
399  void setColumnLabels(const char**);
401  void setTopLeftCornerLabel(const uiString&);
402 
403  void setPrefWidthInChars(int);
404 };
405 
uiTable::isColumnStretchable
bool isColumnStretchable(int) const
uiTable::clearTable
void clearTable()
uiTable::columnClicked
CNotifier< uiTable, int > columnClicked
Definition: uitable.h:290
uiTable::rowInserted
Notifier< uiTable > rowInserted
Definition: uitable.h:284
uiTable::getNotifCells
const TypeSet< RowCol > & getNotifCells() const
Definition: uitable.h:275
uiTable::seliscols_
bool seliscols_
Definition: uitable.h:349
uiTable::setDefaultColLabels
void setDefaultColLabels()
uiTable::setCellGroup
void setCellGroup(const RowCol &, uiGroup *)
uiTable::setTopHeaderHidden
void setTopHeaderHidden(bool)
uiTable::notifcell_
RowCol notifcell_
Definition: uitable.h:345
uiTable::maxNrOfSelections
int maxNrOfSelections() const
uiTable::setColumnResizeMode
void setColumnResizeMode(ResizeMode)
Default is Stretch.
uiTable::setColumnLabels
void setColumnLabels(const BufferStringSet &)
uiTable::rowClicked
CNotifier< uiTable, int > rowClicked
Definition: uitable.h:289
uiTable::selectionDeleted
Notifier< uiTable > selectionDeleted
Definition: uitable.h:286
uiTable::insertRows
void insertRows(int row, int count)
uiTable::setRowHeightInChar
void setRowHeightInChar(int row, float h)
uiTable::Setup
Definition: uitable.h:55
uiTable::setColumnToolTip
void setColumnToolTip(int, const uiString &)
uiTable::editCell
void editCell(const RowCol &, bool replace=false)
uiPixmap
Off-screen pixel-based paint device.
Definition: uipixmap.h:34
uiTable::isRowStretchable
bool isRowStretchable(int) const
uiTable::selectItems
void selectItems(const TypeSet< RowCol > &, bool)
uiTable::resizeRowToContents
void resizeRowToContents(int)
uiTable::isRowHidden
bool isRowHidden(int) const
uiTable::setSelectionMode
void setSelectionMode(SelectionMode)
uiTable::gridShown
bool gridShown() const
uiTable::SelectRows
@ SelectRows
Definition: uitable.h:46
uiTable::resizeRowsToContents
void resizeRowsToContents()
uiTable::setup_
Setup setup_
Definition: uitable.h:352
uiTable::getCellGroup
uiGroup * getCellGroup(const RowCol &) const
uiTable::rowLabel
const char * rowLabel(const RowCol &rc) const
Definition: uitable.h:240
uiTable::showOuterFrame
void showOuterFrame(bool)
uiTable::isTableReadOnly
bool isTableReadOnly() const
uiStringSet
Definition: uistringset.h:23
ObjectSet
Set of pointers to objects.
Definition: commontypes.h:31
uiTable::SelectionRange::firstcol_
int firstcol_
Definition: uitable.h:328
uiTable::setValue
void setValue(const RowCol &, double, int nrdec)
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiTable::handleLongTabletPress
bool handleLongTabletPress()
File::toUiString
Export_Basic uiString toUiString(ViewStyle)
uiTable::setNrRows
void setNrRows(int)
uiTable::setCellToolTip
void setCellToolTip(const RowCol &, const uiString &)
uiTable::istablereadonly_
bool istablereadonly_
Definition: uitable.h:365
uiTable::getDValue
double getDValue(const RowCol &) const
uiTable::isColumnHidden
bool isColumnHidden(int) const
uiTable::getFValue
float getFValue(const RowCol &) const
uiTable::clearCellObject
void clearCellObject(const RowCol &)
uiTable::Setup::Setup
Setup(int nrrows=-1, int nrcols=-1)
Definition: uitable.h:58
od_int64
#define od_int64
Definition: plftypes.h:35
uiTable::getSelectedCells
bool getSelectedCells(TypeSet< RowCol > &) const
uiTable::getNotifRCs
const TypeSet< int > & getNotifRCs() const
Definition: uitable.h:273
uiTable::rowDeleted
Notifier< uiTable > rowDeleted
Definition: uitable.h:285
uiTable::selranges_
ObjectSet< SelectionRange > selranges_
Definition: uitable.h:344
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiTable::nrCols
int nrCols() const
uiTable::cellObjChangedCB
void cellObjChangedCB(CallBacker *)
uiTable::setValue
void setValue(const RowCol &, float, int nrdec)
uiTable::getCell
RowCol getCell(uiObject *)
uiTable::isCellReadOnly
bool isCellReadOnly(const RowCol &) const
uiTable::hideRow
void hideRow(int, bool)
uiTable::isSelected
bool isSelected(const RowCol &) const
uiTable::setNotifiedCell
void setNotifiedCell(const RowCol &rc)
Definition: uitable.h:271
uiTable::columnWidth
int columnWidth(int) const
uiTable::cornerlabel_
uiLabel * cornerlabel_
Definition: uitable.h:371
uiTable::setText
void setText(const RowCol &, const char *)
uiTable::setPrefHeightInRows
void setPrefHeightInRows(int)
uiTable::getCell
RowCol getCell(uiGroup *)
uiTable::SelectionRange::lastcol_
int lastcol_
Definition: uitable.h:329
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
uiStrings
Definition: uistrings.h:27
uiTable::updateCellSizes
void updateCellSizes(const uiSize *sz=0)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiTable::selectionChanged
Notifier< uiTable > selectionChanged
Definition: uitable.h:281
uiTable::setColumnReadOnly
void setColumnReadOnly(int, bool)
Pos::IdxPair::row
IdxType & row()
Definition: posidxpair.h:44
uiTable::columnLabel
const char * columnLabel(const RowCol &rc) const
Definition: uitable.h:250
uiTable::SelectionRange::nrRows
int nrRows() const
Definition: uitable.h:322
uiTable::Setup::coldesc
Setup & coldesc(const char *desc)
Definition: uitable.h:124
uiTable::SelectionRange::nrCols
int nrCols() const
Definition: uitable.h:323
uiTable::resizeColumnToContents
void resizeColumnToContents(int)
OD::ButtonState
ButtonState
Definition: keyenum.h:20
keyenum.h
uiTable::~uiTable
virtual ~uiTable()
uiTable::removeRows
void removeRows(const TypeSet< int > &)
uiTable::rightClicked
Notifier< uiTable > rightClicked
Definition: uitable.h:279
uiTable::resizeColumnsToContents
void resizeColumnsToContents()
uiTable::mDeprecated
mDeprecated("Use getDValue") double getdValue(const RowCol &rc) const
Definition: uitable.h:376
uiTable::setRowLabel
void setRowLabel(int, const uiString &)
uiTable::setValue
void setValue(const RowCol &, double)
uiTable::setCellReadOnly
void setCellReadOnly(const RowCol &, bool)
uiTable::setPixmap
void setPixmap(const RowCol &, const uiPixmap &)
uiTable::mODTextTranslationClass
mODTextTranslationClass(uiTable) friend class i_tableMessenger
uiTable::newCell
const RowCol & newCell() const
Definition: uitable.h:283
uiTable::isRowReadOnly
bool isRowReadOnly(int) const
uiTable::selectRow
void selectRow(int row)
Pos::IdxPair::col
IdxType & col()
Definition: posidxpair.h:49
uiTable::popupVirtualKeyboard
void popupVirtualKeyboard(int globalx=-1, int globaly=-1)
uiTable::setCurrentCell
void setCurrentCell(const RowCol &, bool noselection=false)
uiTable::body_
uiTableBody * body_
Definition: uitable.h:369
uiTable::setNrCols
void setNrCols(int)
uiTable::setColumnLabel
void setColumnLabel(const RowCol &rc, const uiString &lbl)
Definition: uitable.h:255
uiTable::clearCell
void clearCell(const RowCol &)
uiTable::selectColumn
void selectColumn(int col)
uiTable::setSelected
void setSelected(const RowCol &, bool yn=true)
uiTable::ensureCellVisible
void ensureCellVisible(const RowCol &)
Alignment::HPos
HPos
Definition: draw.h:25
uiTable::showGrid
void showGrid(bool)
uiTable::getColor
Color getColor(const RowCol &) const
uiTable::setTableReadOnly
void setTableReadOnly(bool)
uiTable::setHeaderBackground
void setHeaderBackground(int, const Color &, bool isrow)
uiTable::valueChanged
Notifier< uiTable > valueChanged
Definition: uitable.h:277
uiTable::notifrows_
TypeSet< int > notifrows_
Definition: uitable.h:347
uiTable::ResizeMode
ResizeMode
Definition: uitable.h:50
uiTable::Setup::mDefSetupMemb
mDefSetupMemb(RowCol, size) mDefSetupMemb(uiString
uiTable::setCellChecked
void setCellChecked(const RowCol &, bool yn)
uiTable::setCellObject
void setCellObject(const RowCol &, uiObject *)
uiTable::notifcols_
TypeSet< int > notifcols_
Definition: uitable.h:348
uiTable::setRowLabel
void setRowLabel(const RowCol &rc, const uiString &lbl)
Definition: uitable.h:245
uiTable::removeColumn
void removeColumn(int)
uiTable::removeAllSelections
void removeAllSelections()
uiTable::setRowStretchable
void setRowStretchable(int, bool)
uiTable::removeRow
void removeRow(int)
uiTable::mkbody
uiTableBody & mkbody(uiParent *, const char *, int, int)
uiTable::getSelBehavior
SelectionBehavior getSelBehavior() const
uiTable::needOfVirtualKeyboard
bool needOfVirtualKeyboard() const
uiTable::currentRow
int currentRow() const
uiGroup
Definition: uigroup.h:54
uiTable::getInt64Value
od_int64 getInt64Value(const RowCol &) const
uiTable::setRowLabels
void setRowLabels(const BufferStringSet &)
mDeprecated
#define mDeprecated(msg)
Definition: plfdefs.h:215
uiTable::mDeprecated
mDeprecated("Use uiString") void setColumnLabel(int idx
uiTable::SelectionMode
SelectionMode
Definition: uitable.h:37
uiTable::insertRows
void insertRows(const RowCol &rc, int count)
Definition: uitable.h:207
uistrings.h
uiTable::selectedRanges
const ObjectSet< SelectionRange > & selectedRanges() const
uiTable::setRowResizeMode
void setRowResizeMode(ResizeMode)
Default is ResizeToContents.
uiTable::insertColumns
void insertColumns(const RowCol &rc, int count)
Definition: uitable.h:210
uiTable::setRowToolTip
void setRowToolTip(int, const uiString &)
uiTable::getIntValue
int getIntValue(const RowCol &) const
Notifier< uiTable >
uiTable::getSelectedCols
bool getSelectedCols(TypeSet< int > &) const
uiTable::SelectionBehavior
SelectionBehavior
Definition: uitable.h:45
uiTable::setLabelAlignment
void setLabelAlignment(Alignment::HPos, bool cols)
uiTable::setColor
void setColor(const RowCol &, const Color &)
uiTable::removeColumn
void removeColumn(const RowCol &rc)
Definition: uitable.h:217
uiTable::SelectionRange::lastrow_
int lastrow_
Definition: uitable.h:326
uiTable::mDeprecated
mDeprecated("Use uiString") void setRowToolTip(int idx
uiSize
Definition: uigeom.h:25
uiTable::insertColumns
void insertColumns(int col, int count)
uiTable::setRowLabels
void setRowLabels(const uiStringSet &)
uiTable::setValue
void setValue(const RowCol &, float)
uiTable::removeColumns
void removeColumns(const TypeSet< int > &)
uiTable::currentCell
RowCol currentCell() const
Definition: uitable.h:230
uiTable::setup
const Setup & setup() const
Definition: uitable.h:268
uiTable::SelectionRange::SelectionRange
SelectionRange()
Definition: uitable.h:318
uiTable::leftClicked
Notifier< uiTable > leftClicked
Definition: uitable.h:278
draw.h
uiTable::isColumnReadOnly
bool isColumnReadOnly(int) const
uiTable::columnLabel
const char * columnLabel(int) const
uiTable::setRowReadOnly
void setRowReadOnly(int, bool)
uiTable::isCellChecked
bool isCellChecked(const RowCol &) const
uiTable::setDefaultRowLabels
void setDefaultRowLabels()
uiTable::colInserted
Notifier< uiTable > colInserted
Definition: uitable.h:287
uiTable::nrRows
int nrRows() const
uiTable::popupMenu
virtual void popupMenu(CallBacker *)
uiTable::setRowHeight
void setRowHeight(int row, int h)
uiTable::setColumnLabel
void setColumnLabel(int, const uiString &)
uiTable::setLeftMargin
void setLeftMargin(int)
uiTable::setup
Setup & setup()
Definition: uitable.h:267
uiTable::setColumnWidthInChar
void setColumnWidthInChar(int col, float w)
uiTable::colDeleted
Notifier< uiTable > colDeleted
Definition: uitable.h:288
uiTable::setColumnLabels
void setColumnLabels(const uiStringSet &)
uiObject
The base class for most UI elements.
Definition: uiobj.h:38
uiTable::notifcells_
TypeSet< RowCol > notifcells_
Definition: uitable.h:346
uiTable::newcell_
RowCol newcell_
Definition: uitable.h:350
uiTable::uiTable
uiTable(uiParent *, const Setup &, const char *nm)
uiTable
Definition: uitable.h:31
uiTable::text
const char * text(const RowCol &) const
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiTable::Stretch
@ Stretch
Definition: uitable.h:51
uiTable::mDeprecated
mDeprecated("Use getFValue") float getfValue(const RowCol &rc) const
Definition: uitable.h:379
uiTable::setColumnStretchable
void setColumnStretchable(int, bool)
uiTable::setLeftHeaderHidden
void setLeftHeaderHidden(bool)
OD::String
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
uiTable::getCellObject
uiObject * getCellObject(const RowCol &) const
uiTable::Single
@ Single
a single range of cells.
Definition: uitable.h:39
uiTable::setTopMargin
void setTopMargin(int)
uiTable::getHeaderBackground
Color getHeaderBackground(int, bool isrow) const
uiTable::isColumnSelected
bool isColumnSelected(int) const
uiTable::hideColumn
void hideColumn(int, bool)
uiLabel
Definition: uilabel.h:24
uiTable::doubleClicked
Notifier< uiTable > doubleClicked
Definition: uitable.h:280
uiTable::setSelectionBehavior
void setSelectionBehavior(SelectionBehavior)
uiTable::buttonstate_
OD::ButtonState buttonstate_
Definition: uitable.h:355
uiTable::update
void update(bool row, int nr)
uiTable::getSelected
bool getSelected()
color.h
uiTable::isTopHeaderHidden
bool isTopHeaderHidden() const
uiTable::mDeprecated
mDeprecated("Use uiStringSet") void setRowLabels(const char **)
uiTable::setValue
void setValue(const RowCol &, od_int64)
RowCol
IdxPair used for its row() and col().
Definition: rowcol.h:25
uiTable::NoSelection
@ NoSelection
No cell can be selected by the user.
Definition: uitable.h:38
uiTable::rowHeight
int rowHeight(int) const
uiParent
Definition: uiparent.h:26
i_tableMessenger
Helper class for uiTable to relay Qt's 'activated' messages to uiAction.
Definition: i_qtable.h:31
uiTable::resizeHeaderToContents
void resizeHeaderToContents(bool hor)
uiTable::removeRow
void removeRow(const RowCol &rc)
Definition: uitable.h:213
uiTable::setLabelBGColor
void setLabelBGColor(int, Color, bool isrow)
uiTable::lastsz
uiSize lastsz
Definition: uitable.h:373
uiTable::setText
void setText(const RowCol &, const uiString &)
uiTable::setText
void setText(const RowCol &, const OD::String &)
uiTable::Setup::rowdesc
Setup & rowdesc(const char *desc)
Definition: uitable.h:122
mDeprecatedDef
#define mDeprecatedDef
Definition: plfdefs.h:216
uiTable::getSelectedRows
bool getSelectedRows(TypeSet< int > &) const
uiTable::mDeprecated
mDeprecated("Use uiStringSet") void setColumnLabels(const char **)
uiTable::setMouseTracking
void setMouseTracking(bool)
Color
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
uiTable::mDeprecated
mDeprecated("Use uiString") void setRowLabel(int idx
uiTable::SelectionRange::firstrow_
int firstrow_
Definition: uitable.h:325
CNotifier< uiTable, int >
rowcol.h
uiTable::notifiedCell
const RowCol & notifiedCell() const
Definition: uitable.h:270
uiTable::isLeftHeaderHidden
bool isLeftHeaderHidden() const
uiTable::geometrySet_
void geometrySet_(CallBacker *)
uiTable::Multi
@ Multi
multiple ranges of cells.
Definition: uitable.h:40
uiTable::SelectionRange
Definition: uitable.h:316
uiTable::rowLabel
const char * rowLabel(int) const
uiobj.h
TypeSet< int >
uiTable::removeRCs
void removeRCs(const TypeSet< int > &, bool col)
uiTable::isRowSelected
bool isRowSelected(int) const
uiTable::currentCol
int currentCol() const
uiTable::setValue
void setValue(const RowCol &, int)
uiTable::setColumnWidth
void setColumnWidth(int col, int w)

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