1 #ifndef uitreeitemmanager_h 2 #define uitreeitemmanager_h 16 #include "uitoolsmod.h" 40 virtual void prepareForShutdown();
44 virtual bool askContinueAndSaveIfNeeded(
bool withcancel);
48 bool areAllParentsChecked();
50 void entryInEditMode(
int col);
53 virtual bool select();
55 virtual bool isSelected()
const;
56 void setChecked(
bool yn,
bool trigger=
false);
57 virtual bool isChecked()
const;
61 bool isExpanded()
const;
63 bool isCollapsed()
const;
65 bool hasChildren()
const;
66 bool hasGrandChildren()
const;
67 bool allChildrenExpanded()
const;
68 bool allChildrenCollapsed()
const;
69 bool allChildrenChecked()
const;
70 bool allChildrenUnchecked()
const;
72 virtual int siblingIndex()
const;
82 virtual void moveItemToTop();
102 virtual void removeAllChildren();
104 virtual const uiTreeItem* findChild(
const char* name)
const;
107 virtual const uiTreeItem* findChild(
int selkey)
const;
110 virtual uiTreeItem* findChild(
const char* name);
116 virtual void findChildren(
const char*,
121 template<
class T>
inline void setProperty(
const char* key,
const T&);
130 inline void setPropertyPtr(
const char* key,
void*);
134 template<
class T>
inline bool getProperty(
const char* key, T& res)
const;
147 inline bool getPropertyPtr(
const char* key,
void*&)
const;
156 virtual void updateColumnText(
int col);
157 virtual void updateCheckStatus();
165 virtual int uiTreeViewItemType()
const;
168 virtual uiParent* getUiParent()
const;
170 virtual bool addChld(
uiTreeItem*,
bool below,
bool downwards);
182 virtual const char* parentType()
const = 0;
185 virtual bool init() {
return true; }
195 virtual bool selectWithKey(
int selkey);
200 virtual void updateSelection(
int selectionKey,
203 virtual bool shouldSelect(
int selectionkey)
const;
257 virtual bool addChld(uiTreeItem*,
bool below,
bool downwards);
282 virtual const char*
name()
const = 0;
293 int placementindex=-1,
303 void remove(
const char* );
305 int nrFactories()
const;
307 int getPlacementIdx(
int)
const;
308 int getPol2D(
int)
const;
346 if (
typeid(T)==
typeid(
void*) )
#define mExpClass(module)
Definition: commondefs.h:160
int nrChildren() const
Definition: uitreeitemmanager.h:85
CNotifier< uiTreeFactorySet, int > removenotifier
Definition: uitreeitemmanager.h:311
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< uiTreeItem > children_
Definition: uitreeitemmanager.h:213
void rightClickCB(CallBacker *)
uiTreeViewItem * uitreeviewitem_
Definition: uitreeitemmanager.h:212
bool getPropertyPtr(const char *key, void *&) const
Definition: uitreeitemmanager.h:332
void disabAnyClick(bool yn)
Definition: uitreeitemmanager.h:252
virtual void updateSelection(int selectionkey, bool=false)
Interface class for Notifier. See comments there.
Definition: callback.h:161
IOPar properties_
Definition: uitreeitemmanager.h:207
#define od_int64
Definition: plftypes.h:36
ObjectSet< uiTreeItemFactory > factories_
Definition: uitreeitemmanager.h:315
virtual int selectionKey() const
Definition: uitreeitemmanager.h:52
static const uiString & emptyString()
Definition: uistring.h:109
Definition: uistring.h:89
Definition: uiparent.h:26
uiTreeItem * child_
Definition: uitreeitemmanager.h:234
bool get(const char *, int &) const
bool isChecked() const
Definition: uitreeitemmanager.h:249
TypeSet< int > pol2ds_
Definition: uitreeitemmanager.h:317
virtual bool addChild(uiTreeItem *, bool below)
virtual bool isExpandable() const
Definition: uitreeitemmanager.h:198
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
virtual bool showSubMenu()
Definition: uitreeitemmanager.h:194
Definition: uitreeview.h:201
void setName(const uiString &nm)
Definition: uitreeitemmanager.h:45
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiTreeTopItem(uiTreeView *, bool=false)
TypeSet< int > placementidxs_
Definition: uitreeitemmanager.h:316
uiTreeViewItem * getItem()
Definition: uitreeitemmanager.h:160
const uiTreeViewItem * getItem() const
Definition: uitreeitemmanager.h:161
Definition: uitreeitemmanager.h:226
virtual bool init()
Definition: uitreeitemmanager.h:185
Definition: uitreeitemmanager.h:278
void setPtr(const char *, void *)
void anyButtonClickCB(CallBacker *)
Definition: uiodtreeitem.h:50
bool addChildImpl(CallBacker *, uiTreeItem *, bool, bool)
bool disabselcngresp_
Definition: uitreeitemmanager.h:273
Definition: uitreeview.h:33
virtual void removeItem(uiTreeViewItem *)
void updateSelTreeColumnText(int col)
bool getProperty(const char *key, T &res) const
Definition: uitreeitemmanager.h:323
virtual uiParent * getUiParent() const
virtual void updateColumnText(int col)
uiString name_
Definition: uitreeitemmanager.h:210
void addChild(uiBaseObject &)
void selectionChanged(CallBacker *)
void doubleClickCB(CallBacker *)
ObjectSet< uiTreeItem > & getChildren()
Definition: uitreeitemmanager.h:88
static uiHor3DInterpol * create(uiParent *)
uiTreeItem * parent_
Definition: uitreeitemmanager.h:209
bool getPtr(const char *, void *&) const
bool disabrightclick_
Definition: uitreeitemmanager.h:271
Definition: uitreeitemmanager.h:239
uiTreeView * listview_
Definition: uitreeitemmanager.h:270
void handleSelectionChanged(bool frmbtclk)
virtual bool isSelectable() const
Definition: uitreeitemmanager.h:197
void setPropertyPtr(const char *key, void *)
Definition: uitreeitemmanager.h:353
virtual ~uiTreeItemFactory()
Definition: uitreeitemmanager.h:281
Definition: i_layout.h:28
virtual bool useParentType() const
Definition: uitreeitemmanager.h:184
uiTreeItem * parentTreeItem()
Definition: uitreeitemmanager.h:223
void itemRenamed(CallBacker *)
void set(const char *ky, const char *val)
Definition: uitreeitemmanager.h:287
void setProperty(const char *key, const T &)
Definition: uitreeitemmanager.h:344
virtual const char * parentType() const
Definition: uitreeitemmanager.h:267
bool disabanyclick_
Definition: uitreeitemmanager.h:272
const ObjectSet< uiTreeItem > & getChildren() const
Definition: uitreeitemmanager.h:89
uiTreeItem * parent_
Definition: uitreeitemmanager.h:233
Definition: uitreeitemmanager.h:34
virtual bool addChld(uiTreeItem *, bool below, bool downwards)
virtual void translateText()
Definition: uitreeitemmanager.h:159
uiTreeView * getTreeView() const
Definition: uitreeitemmanager.h:253
void disabRightClick(bool yn)
Definition: uitreeitemmanager.h:251
CNotifier< uiTreeFactorySet, int > addnotifier
Definition: uitreeitemmanager.h:310