OpendTect-6_4  6.4
uistratextlayseqgendesc.h
Go to the documentation of this file.
1 #ifndef uistratextlayseqgendesc_h
2 #define uistratextlayseqgendesc_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jan 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uistratmod.h"
16 #include "uistratlayseqgendesc.h"
17 #include "uigraphicsview.h"
18 #include "property.h"
19 class uiGenInput;
20 class uiRectItem;
21 class uiTextItem;
22 namespace Strat { class LayerSequenceGenDesc; }
23 
24 
29  , public uiLayerSequenceGenDesc
31 public:
32 
35 
36  virtual uiObject* outerObj() { return this; }
37  virtual uiStratLayerModelDisp* getLayModDisp(uiStratLayModEditTools&,
39  virtual void prepareDesc() { getTopDepthFromScreen(); }
40  virtual void setEditDesc();
41  virtual void setFromEditDesc();
42  virtual bool selProps();
43 
44  const Strat::LayerSequenceGenDesc& editedDesc() const { return editdesc_; }
45 
46 protected:
47 
53  const uiRect workrect_;
54  bool zinft_;
55 
56  void getTopDepthFromScreen();
57  void putTopDepthToScreen();
58  void reDraw(CallBacker*);
59  void wheelMoveCB(CallBacker*);
60  void singClckCB( CallBacker* cb ) { hndlClick(cb,false); }
61  void dblClckCB( CallBacker* cb ) { hndlClick(cb,true); }
62  void hndlClick(CallBacker*,bool);
63 
64  virtual void doDraw() = 0;
65 
67  virtual bool newLayGenReq(bool above) = 0;
68  virtual bool laygenEditReq() = 0;
69  virtual bool laygenRemoveReq() = 0;
70 
71 };
72 
73 
74 #define mDefuiExtLayerSequenceGenDescFns(clss,typstr) \
75  mDefuiLayerSequenceGenDescFns(clss,typstr) \
76 protected: \
77  virtual void doDraw(); \
78  virtual bool newLayGenReq(bool); \
79  virtual bool laygenEditReq(); \
80  virtual bool laygenRemoveReq(); \
81 public: \
82  virtual void descHasChanged()
83 
84 
85 #endif
#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: uigeom.h:42
Collection of LayerGenerator's that can generate a full LayerSequence.
Definition: stratlayseqgendesc.h:39
Definition: i_layout.h:28
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiPoint clickpos_
Definition: uistratextlayseqgendesc.h:66
The base class for most UI elements.
Definition: uiobj.h:38
const uiRect workrect_
will be filled
Definition: uistratextlayseqgendesc.h:53
void dblClckCB(CallBacker *cb)
Definition: uistratextlayseqgendesc.h:61
Definition: uiparent.h:26
Strat::LayerSequenceGenDesc & editdesc_
Definition: uistratextlayseqgendesc.h:48
uiTextItem * emptyitm_
Definition: uistratextlayseqgendesc.h:51
uiBorder border_
can be set
Definition: uistratextlayseqgendesc.h:52
uiRectItem * outeritm_
Definition: uistratextlayseqgendesc.h:50
General Input Element.
Definition: uigeninput.h:58
Definition: uigraphicsitemimpl.h:255
Definition: stratlayermodel.h:84
bool zinft_
From SI()
Definition: uistratextlayseqgendesc.h:54
Definition: uigeom.h:78
Stratigraphy.
Definition: stratlevel.h:26
const Strat::LayerSequenceGenDesc & editedDesc() const
Definition: uistratextlayseqgendesc.h:44
void singClckCB(CallBacker *cb)
Definition: uistratextlayseqgendesc.h:60
Definition: uigraphicsview.h:51
uiGenInput * topdepthfld_
Definition: uistratextlayseqgendesc.h:49
Definition: uigraphicsitemimpl.h:273
Base class for LayerSequenceGenDesc editors - with factory.
Definition: uistratlayseqgendesc.h:37
virtual mODTextTranslationClass(uiExtLayerSequenceGenDesc) public uiObject * outerObj()
Definition: uistratextlayseqgendesc.h:36
Base class for external LayerSequenceGenDesc editors, i.e. editors that are not also Layer Model disp...
Definition: uistratextlayseqgendesc.h:28
Definition: uistratlaymoddisp.h:47
virtual void prepareDesc()
Definition: uistratextlayseqgendesc.h:39
Definition: uistratlaymodtools.h:63

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