OpendTect-6_4  6.4
uiodhortreeitem.h
Go to the documentation of this file.
1 #ifndef uiodhortreeitem_h
2 #define uiodhortreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: May 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "uiodmainmod.h"
17 #include "uiodemsurftreeitem.h"
18 
19 class uEMHorizonShiftDialog;
20 
23  typedef uiODTreeItem inheritedClass;
24 public:
27 
28  virtual void removeChild(uiTreeItem*);
29 
32 
33 protected:
35  const char* iconName() const;
36  bool showSubMenu();
37  virtual bool addChld(uiTreeItem*,bool,bool);
38  const char* parentType() const
39  { return typeid(uiODTreeTop).name(); }
40 
41  void sort();
44 };
45 
46 
47 
50 public:
51  const char* name() const { return typeid(*this).name(); }
52  uiTreeItem* create() const
53  { return new uiODHorizonParentTreeItem; }
54  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
55 };
56 
57 
60 public:
61  uiODHorizonTreeItem(int visid,bool rgba,
62  bool atsect,bool dummy);
64  bool rgba,bool atsect);
66 
67  virtual int reloadEMObject(); // Return new display id.
68 
69 protected:
70  bool init();
71  void initMenuItems();
72  void initNotify();
73  uiString createDisplayName() const;
74  void dispChangeCB(CallBacker*);
75  const char* parentType() const
76  { return typeid(uiODHorizonParentTreeItem).name(); }
77 
78  virtual void createMenu(MenuHandler*,bool istb);
79  virtual void handleMenuCB(CallBacker*);
80 
81  bool askContinueAndSaveIfNeeded(bool withcancel);
82 
83  uEMHorizonShiftDialog* horshiftdlg_;
93 
100 
101  bool rgba_;
103 };
104 
105 
108  mDefineItemMembers( Horizon2DParent, TreeItem, TreeTop );
109  mShowMenu;
111  void sort();
112  virtual void removeChild(uiTreeItem*);
113  bool addChld(uiTreeItem* child, bool below, bool downwards );
114 
115 };
116 
117 
120 public:
121  const char* name() const { return typeid(*this).name(); }
122  uiTreeItem* create() const
123  { return new uiODHorizon2DParentTreeItem; }
124  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
125 };
126 
127 
130 public:
131  uiODHorizon2DTreeItem(int visid,bool dummy);
133 
134 protected:
135  void initMenuItems();
136  void initNotify();
137  void dispChangeCB(CallBacker*);
138  const char* parentType() const
139  { return typeid(uiODHorizon2DParentTreeItem).name(); }
140 
141  virtual void createMenu(MenuHandler*,bool istb);
142  virtual void handleMenuCB(CallBacker*);
143 
144  bool askContinueAndSaveIfNeeded(bool withcancel);
145 
151 };
152 
153 #endif
MenuItem shiftmnuitem_
Definition: uiodhortreeitem.h:92
MenuItem snapeventmnuitem_
Definition: uiodhortreeitem.h:91
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
uEMHorizonShiftDialog * horshiftdlg_
Definition: uiodhortreeitem.h:83
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: menuhandler.h:187
MenuItem fillholesmnuitem_
Definition: uiodhortreeitem.h:87
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MenuItem delchildrenmnuitem_
Definition: uiodhortreeitem.h:97
MenuItem workflowsmnuitem_
Definition: uiodhortreeitem.h:147
MenuItem lockmnuitem_
Definition: uiodhortreeitem.h:98
MenuItem trackitem_
Definition: uiodhortreeitem.h:42
bool init()
MenuItem parentsmnuitem_
Definition: uiodhortreeitem.h:94
bool atsections_
Definition: uiodhortreeitem.h:102
Definition: uiodhortreeitem.h:118
Definition: uistring.h:89
Definition: uiodtreeitem.h:80
const char * parentType() const
Definition: uiodhortreeitem.h:75
MenuItem derive3dhormnuitem_
Definition: uiodhortreeitem.h:148
Definition: uiodhortreeitem.h:48
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
MenuItem interpolatemnuitem_
Definition: uiodhortreeitem.h:150
Definition: uiodhortreeitem.h:128
MenuItem unlockmnuitem_
Definition: uiodhortreeitem.h:99
MenuItem geom2attrmnuitem_
Definition: uiodhortreeitem.h:89
MenuItem algomnuitem_
Definition: uiodhortreeitem.h:146
MenuItem workflowsmnuitem_
Definition: uiodhortreeitem.h:86
Definition: menuhandler.h:76
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
Definition: uiodemsurftreeitem.h:26
MenuItem parentsrdlmnuitem_
Definition: uiodhortreeitem.h:95
Definition: uiodtreeitem.h:50
Definition: uiodhortreeitem.h:106
bool rgba_
Definition: uiodhortreeitem.h:101
MenuItem positionmnuitem_
Definition: uiodhortreeitem.h:90
#define mShowMenu
Definition: uiodtreeitem.h:90
MenuItem filterhormnuitem_
Definition: uiodhortreeitem.h:88
const char * parentType() const
Definition: uiodhortreeitem.h:138
void sort(ObjectSet< T > &os)
Sort ObjectSet. Must have operator > defined for elements.
Definition: objectset.h:220
MenuItem childrenmnuitem_
Definition: uiodhortreeitem.h:96
static uiHor3DInterpol * create(uiParent *)
CNotifier< uiODHorizonParentTreeItem, int > handleMenu
Definition: uiodhortreeitem.h:30
Definition: uiodhortreeitem.h:58
MenuItem constzitem_
Definition: uiodhortreeitem.h:43
MenuItem snapeventmnuitem_
Definition: uiodhortreeitem.h:149
const char * parentType() const
Definition: uiodhortreeitem.h:38
Definition: i_layout.h:28
MenuItem newmenu_
Definition: uiodhortreeitem.h:31
MenuItem algomnuitem_
Definition: uiodhortreeitem.h:85
Definition: uitreeitemmanager.h:34
Definition: uiodhortreeitem.h:21
MenuItem hordatamnuitem_
Definition: uiodhortreeitem.h:84

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