OpendTect-6_4  6.4
uioddisplaytreeitem.h
Go to the documentation of this file.
1 #ifndef uioddisplaytreeitem_h
2 #define uioddisplaytreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 4-11-2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "uiodmainmod.h"
17 #include "uiodtreeitem.h"
18 
19 class uiODDataTreeItem;
20 class uiVisPartServer;
21 namespace Attrib { class SelSpec; }
22 
23 
26 public:
27 
28  static bool create(uiTreeItem*,uiODApplMgr*,int displayid);
31 
33  virtual ~uiODDisplayTreeItem();
34 
35  void updateColumnText(int);
36  bool showSubMenu();
37  virtual bool actModeWhenSelected() const { return false; }
38  void updateCheckStatus();
39 
40  int displayID() const { return displayid_; }
41 
42  uiODDataTreeItem* addAttribItem();
43  void prepareForShutdown();
44  void handleAddAttrib();
45 
46  virtual void setOnlyAtSectionsDisplay(bool);
47  virtual bool displayedOnlyAtSections() const;
48 
49 protected:
50 
51  virtual uiODDataTreeItem* createAttribItem(const Attrib::SelSpec*) const;
52 
53  bool shouldSelect(int selkey) const;
54  int selectionKey() const;
55  int uiTreeViewItemType() const;
56  virtual void checkCB(CallBacker*);
57  virtual void keyPressCB(CallBacker*);
58  virtual bool doubleClick(uiTreeViewItem*);
59  virtual bool init();
60 
61  bool isSelectable() const { return true; }
62  bool isExpandable() const { return false; }
63  uiString getLockMenuText() const;
64 
65  virtual uiString createDisplayName() const;
66  void updateLockPixmap(bool islocked);
67  void selectRGBA(const Pos::GeomID&);
68 
69  virtual bool askContinueAndSaveIfNeeded(bool withcancel)
70  { return true; }
71 
72  void addToToolBarCB(CallBacker*);
73  void createMenuCB(CallBacker*);
74  virtual void createMenu(MenuHandler*,bool istb);
75  virtual void handleMenuCB(CallBacker*);
76  virtual void deleteObject();
77 
80 
90 
91 public:
92  virtual bool isOnlyAtSections() const
93  { return displayedOnlyAtSections(); }
94 };
95 
96 
97 #endif
Definition: uioddatatreeitem.h:31
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
MenuItem removemnuitem_
Definition: uioddisplaytreeitem.h:86
Definition: menuhandler.h:187
MenuItem displaymnuitem_
Definition: uioddisplaytreeitem.h:82
MenuItem duplicatemnuitem_
Definition: uioddisplaytreeitem.h:85
Definition: uiodtreeitem.h:27
Application level manager - ties part servers together.
Definition: uiodapplmgr.h:55
OpendTect application top level object.
Definition: uiodmain.h:41
virtual bool askContinueAndSaveIfNeeded(bool withcancel)
Definition: uioddisplaytreeitem.h:69
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
The Visualization Part Server.
Definition: uivispartserv.h:60
bool init()
MenuItem addattribmnuitem_
Definition: uioddisplaytreeitem.h:83
MenuItem addvolprocmnuitem_
Definition: uioddisplaytreeitem.h:84
MenuItem hidemnuitem_
Definition: uioddisplaytreeitem.h:88
Definition: uistring.h:89
Definition: uioddisplaytreeitem.h:24
bool isExpandable() const
Definition: uioddisplaytreeitem.h:62
bool isSelectable() const
Definition: uioddisplaytreeitem.h:61
int displayID() const
Definition: uioddisplaytreeitem.h:40
MenuItem histogrammnuitem_
Definition: uioddisplaytreeitem.h:89
Definition: uitreeview.h:201
Definition: menuhandler.h:76
int displayid_
Definition: uioddisplaytreeitem.h:79
virtual bool actModeWhenSelected() const
Definition: uioddisplaytreeitem.h:37
MenuItem lockmnuitem_
Definition: uioddisplaytreeitem.h:87
Index_Type GeomID
Definition: commontypes.h:52
static uiHor3DInterpol * create(uiParent *)
uiVisPartServer * visserv_
Definition: uioddisplaytreeitem.h:78
MenuItem addmnuitem_
Definition: uioddisplaytreeitem.h:81
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Definition: uitreeitemmanager.h:34
Semblance Attribute.
Definition: attribdataholder.h:25
virtual bool isOnlyAtSections() const
Definition: uioddisplaytreeitem.h:92

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