OpendTect-6_4  6.4
uioddatatreeitem.h
Go to the documentation of this file.
1 #ifndef uioddatatreeitem_h
2 #define uioddatatreeitem_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 "uiodtreeitem.h"
18 #include "factory.h"
19 
20 class uiFKSpectrum;
21 class uiMenuHandler;
22 class uiSeisAmplSpectrum;
23 class uiStatsDisplayWin;
24 class uiVisPartServer;
25 namespace Attrib { class SelSpec; }
26 namespace ColTab { class Sequence; }
27 
28 
33 public:
34  uiODDataTreeItem(const char* parenttype);
36 
37  virtual bool select();
38  int displayID() const;
39  int attribNr() const;
40 
41  static int cPixmapWidth() { return 16; }
42  static int cPixmapHeight() { return 10; }
43 
45  const Attrib::SelSpec&,const char*,
46  factory )
47 
48 
51  void prepareForShutdown();
52 
53 protected:
54 
55  int uiTreeViewItemType() const;
56  virtual bool init();
57 
58  virtual void checkCB(CallBacker*);
59  void keyPressCB(CallBacker*);
60  bool shouldSelect(int) const;
61 
62  virtual bool hasTransparencyMenu() const { return true; }
63 
64  uiODApplMgr* applMgr() const;
66  int sceneID() const;
67  bool isSelectable() const { return true; }
68  bool isExpandable() const { return false; }
69  const char* parentType() const { return parenttype_; }
70  bool showSubMenu();
71 
72  virtual void createMenu(MenuHandler*,bool istoolbar);
73  void addToToolBarCB(CallBacker*);
74  void createMenuCB(CallBacker*);
75  virtual void handleMenuCB(CallBacker*);
76  void updateColumnText(int col);
77  virtual uiString createDisplayName() const = 0;
78 
79  void displayMiniCtab( const ColTab::Sequence* );
80 
87 
96  const char* parenttype_;
97 
101 };
102 
103 #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
Definition: uifkspectrum.h:27
virtual bool hasTransparencyMenu() const
Definition: uioddatatreeitem.h:62
MenuItem removemnuitem_
Definition: uioddatatreeitem.h:89
Definition: menuhandler.h:187
const char * parentType() const
Definition: uioddatatreeitem.h:69
Application level manager - ties part servers together.
Definition: uiodapplmgr.h:55
OpendTect application top level object.
Definition: uiodmain.h:41
uiFKSpectrum * fkspectrumwin_
Definition: uioddatatreeitem.h:100
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
The Visualization Part Server.
Definition: uivispartserv.h:60
MenuItem movemnuitem_
Definition: uioddatatreeitem.h:82
bool init()
MenuItem changetransparencyitem_
Definition: uioddatatreeitem.h:90
Definition: uistring.h:89
MenuItem movetobottommnuitem_
Definition: uioddatatreeitem.h:84
Definition: uimenuhandler.h:27
MenuItem statisticsitem_
Definition: uioddatatreeitem.h:91
Definition: menuhandler.h:76
uiStatsDisplayWin * statswin_
Definition: uioddatatreeitem.h:98
MenuItem displaymnuitem_
Definition: uioddatatreeitem.h:88
MenuItem amplspectrumitem_
Definition: uioddatatreeitem.h:92
MenuItem moveupmnuitem_
Definition: uioddatatreeitem.h:85
MenuItem movetotopmnuitem_
Definition: uioddatatreeitem.h:83
MenuItem movedownmnuitem_
Definition: uioddatatreeitem.h:86
bool isSelectable() const
Definition: uioddatatreeitem.h:67
MenuItem view2dvditem_
Definition: uioddatatreeitem.h:95
uiSeisAmplSpectrum * ampspectrumwin_
Definition: uioddatatreeitem.h:99
Definition: uiseisamplspectrum.h:20
const char * parenttype_
Definition: uioddatatreeitem.h:96
uiMenuHandler * menu_
Definition: uioddatatreeitem.h:81
Color Table
Definition: coltab.h:22
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
MenuItem fkspectrumitem_
Definition: uioddatatreeitem.h:93
Stats display main window. See uistatsdisplay.h for details.
Definition: uistatsdisplaywin.h:25
static int cPixmapHeight()
Definition: uioddatatreeitem.h:42
bool isExpandable() const
Definition: uioddatatreeitem.h:68
uiVisPartServer * visserv_
Definition: uioddatatreeitem.h:65
static int cPixmapWidth()
Definition: uioddatatreeitem.h:41
Definition: uitreeitemmanager.h:34
#define mDefineFactory2ParamInClass(T, P0, P1, funcname)
Definition: factory.h:471
MenuItem view2dwvaitem_
Definition: uioddatatreeitem.h:94
Semblance Attribute.
Definition: attribdataholder.h:25

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