1 #ifndef uistratdispdata_h 2 #define uistratdispdata_h 15 #include "uistratmod.h" 16 #include "uistratmod.h" 28 class NodeOnlyUnitRef;
44 Unit(
const char* nm,
const char* fullcode=0,
52 const char* name()
const {
return name_.buf(); }
53 const char* fullCode()
const {
return fullcode_.buf(); }
70 Level(
const char* nm,
const char* unitcode)
84 Column(
const char* nm )
100 for (
int idx=0; idx<cols_.size(); idx++ )
102 cols_[idx]->units_.erase();
103 cols_[idx]->levels_.erase();
112 {
return cols_.size(); }
114 {
return cols_[colidx]->units_.size(); }
116 { cols_[colidx]->units_ += un; un->colidx_=colidx; }
119 {
return cols_[idx]; }
121 {
return cols_[idx]; }
123 {
return gtUnit( colidx, uidx ); }
125 {
return gtUnit( colidx, uidx ); }
128 {
return cols_[colidx]->levels_.size(); }
130 {
return cols_[colidx]->levels_[lidx]; }
135 for (
int idx=0; idx<cols_.size(); idx++)
136 {
if ( cols_[idx]->isdisplayed_ ) nr++; }
143 {
return const_cast<Unit*
>(
144 cols_[colidx]->units_[uidx] ); }
185 void triggerDataChange(CallBacker*);
186 void treeDel(CallBacker*);
201 void handleUnitMenu(
const char*);
202 void handleUnitProperties(
const char*);
203 void setUnitLvl(
const char*);
204 void addUnit(
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
void addUnit(int colidx, Unit *un)
Definition: uistratdispdata.h:115
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< Column > cols_
Definition: uistratdispdata.h:146
UnitRef for units containing Leaf units only.
Definition: stratunitref.h:199
int nrCols() const
Definition: uistratdispdata.h:111
FixedString Level()
Definition: keystrs.h:78
const Unit * getUnit(int colidx, int uidx) const
Definition: uistratdispdata.h:124
#define mStruct(module)
Definition: commondefs.h:165
Column * getCol(int idx)
Definition: uistratdispdata.h:120
bool withauxs_
Definition: uistratdispdata.h:171
int nrDisplayedCols() const
Definition: uistratdispdata.h:132
StratDispData()
Definition: uistratdispdata.h:39
void addCol(Column *col)
Definition: uistratdispdata.h:108
const Level * getLevel(int colidx, int lidx) const
Definition: uistratdispdata.h:129
used to gather all units and tied levels from a tree for display
Definition: uistratdispdata.h:153
int levelcolidx_
Definition: uistratdispdata.h:175
int lithocolidx_
Definition: uistratdispdata.h:173
~StratDispData()
Definition: uistratdispdata.h:40
uiStratRefTree & uitree_
Definition: uistratdispdata.h:208
Strat::RefTree * tree_
Definition: uistratdispdata.h:169
Set of pointers to objects.
Definition: commontypes.h:32
Unit * gtUnit(int colidx, int uidx) const
Definition: uistratdispdata.h:142
Unit * getUnit(int colidx, int uidx)
Definition: uistratdispdata.h:122
FixedString Unit()
Definition: keystrs.h:143
Definition: uitreeview.h:201
StratDispData & data_
Definition: uistratdispdata.h:168
UnitRef for units containing other units only.
Definition: stratunitref.h:118
void eraseData()
Definition: uistratdispdata.h:98
const Column * getCol(int idx) const
Definition: uistratdispdata.h:118
int nrUnits(int colidx) const
Definition: uistratdispdata.h:113
Stratigraphy.
Definition: stratlevel.h:26
static Color White()
Definition: color.h:85
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uistratdispdata.h:36
Tree of UnitRef's.
Definition: stratreftree.h:29
Definition: uistratdispdata.h:193
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
bool withlevels_
Definition: uistratdispdata.h:172
int nrLevels(int colidx) const
Definition: uistratdispdata.h:127
int levelColIdx() const
Definition: uistratdispdata.h:164
Notifier< uiStratTreeToDisp > newtreeRead
Definition: uistratdispdata.h:162
int desccolidx_
Definition: uistratdispdata.h:174
Displays a Strat::RefTree.
Definition: uistratreftree.h:33