1 #ifndef uistratselunits_h 2 #define uistratselunits_h 15 #include "uistratmod.h" 18 class uiStratSelUnitsListItem;
28 enum Type { Simple, Single, Multi };
38 , autochoosechildparent_(true)
39 , chooseallinitial_(false)
40 , fldtxt_(t==Multi?
"Units":
"Unit") {}
63 void setExpanded(
int dpth=
mUdf(
int));
87 inline bool isMulti()
const {
return setup_.type_==Multi; }
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Setup(Type t, Strat::UnitRefIter::Pol p)
Definition: uistratselunits.h:34
Type
Definition: uistratselunits.h:28
ObjectSet< uiStratSelUnitsListItem > lvitms_
Definition: uistratselunits.h:74
bool doingautochoose_
Definition: uistratselunits.h:78
bool isPresent(const char *) const
const Strat::NodeUnitRef & topnode_
Definition: uistratselunits.h:76
uiTreeView * tree_
Definition: uistratselunits.h:73
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
Set of pointers to objects.
Definition: commontypes.h:32
uiComboBox * combo_
Definition: uistratselunits.h:72
Definition: uistratselunits.h:30
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
UnitRef for units containing other units only.
Definition: stratunitref.h:118
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Definition: uitreeview.h:33
Reference data for a stratigraphic unit.
Definition: stratunitref.h:38
const T * find(const ObjectSet< T > &os, const S &val)
Get const object in set.
Definition: objectset.h:183
Setup setup_
Definition: uistratselunits.h:77
Notifier< uiStratSelUnits > currentChanged
Definition: uistratselunits.h:65
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uistratselunits.h:24
const Strat::UnitRef * curunit_
Definition: uistratselunits.h:68
bool isMulti() const
Definition: uistratselunits.h:87
Notifier< uiStratSelUnits > unitChosen
Only issued for Multi.
Definition: uistratselunits.h:66
Pol
Definition: stratunitrefiter.h:34
Notifier< uiStratSelUnits > unitPicked
Only for Single.
Definition: uistratselunits.h:67
const uiStratSelUnitsListItem * find(const Strat::UnitRef *ur) const
Definition: uistratselunits.h:94