OpendTect-6_4  6.4
uiwelldisplaymarkeredit.h
Go to the documentation of this file.
1 #ifndef uiwelldisplaymarkeredit_h
2 #define uiwelldisplaymarkeredit_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bruno
9  Date: Aug 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 
16 #include "uiwellmod.h"
17 #include "menuhandler.h"
18 #include "uidialog.h"
19 #include "uistring.h"
20 
21 class uiCheckBox;
22 class uiColorInput;
23 class uiGenInput;
24 class uiListBox;
25 class uiMenuHandler;
26 class uiToolButton;
28 
29 namespace Well { class Marker; class MarkerSet; class Data; }
30 
31 
34 public :
36  bool edit);
37 
38  void putToScreen();
39 
40 protected :
41 
43 
47 
48  bool acceptOK(CallBacker*);
49 };
50 
51 
52 
55 public:
58 
59  bool isPicking() const { return ispicking_; }
60  bool needSave() const { return needsave_; }
61  void addMarkerSet(Well::MarkerSet&);
62 
64 
65 protected:
66 
68 
74 
75  bool needsave_;
76  bool ispicking_;
77  bool hasedited_;
78 
81 
85 
86  virtual void addNewMrkrList();
87  virtual void editMrkrList();
88  virtual bool removeMrkrFromList();
89 
90  void addMoveMarker(int,float,const char*);
91  void removeMarker(int,const char*);
92 
93  virtual void getMarkerFromAll(ObjectSet<Well::Marker>&,
94  const char* nm);
95  virtual Well::Marker* getMarkerFromTmpList(const char* nm);
96 
97 
98  virtual bool acceptOK(CallBacker*);
99  void buttonPushedCB(CallBacker*);
100  virtual void fillMarkerList(CallBacker*);
101  virtual void handleUsrClickCB(CallBacker*) =0;
102  virtual void modeChg(CallBacker*);
103  virtual void listRClickCB(CallBacker*);
104  virtual bool rejectOK(CallBacker*);
105 };
106 
107 
108 
111 public:
114 
115  void addWellCtrl(uiWellDisplayControl&,Well::Data&);
116  void askForSavingEditedChanges();
117 
118 protected:
119 
122 
125 
126  void editMrkrList();
127  bool removeMrkrFromList();
128 
129  void triggerWDsMarkerChanged();
130  bool acceptOK(CallBacker*);
131  void handleUsrClickCB(CallBacker*);
132  void handleCtrlChangeCB(CallBacker*);
133  bool rejectOK(CallBacker*);
134 };
135 
136 
137 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Set of Markers.
Definition: wellmarker.h:76
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool needsave_
Definition: uiwelldisplaymarkeredit.h:75
ObjectSet< Well::Marker > tmplist_
Definition: uiwelldisplaymarkeredit.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool isPicking() const
Definition: uiwelldisplaymarkeredit.h:59
bool ispicking_
Definition: uiwelldisplaymarkeredit.h:76
uiGroup * toolgrp_
Definition: uiwelldisplaymarkeredit.h:69
uiGenInput * namefld_
Definition: uiwelldisplaymarkeredit.h:44
uiToolButton * pickbut_
Definition: uiwelldisplaymarkeredit.h:70
bool needSave() const
Definition: uiwelldisplaymarkeredit.h:60
Definition: uiwelldisplaycontrol.h:25
Definition: uiparent.h:26
Definition: uiwelldisplaymarkeredit.h:53
Well::Marker * curmrk_
Definition: uiwelldisplaymarkeredit.h:67
uiWellDisplayControl * curctrl_
Definition: uiwelldisplaymarkeredit.h:123
Definition: uidialog.h:42
uiCheckBox * stratmrkfld_
Definition: uiwelldisplaymarkeredit.h:46
Definition: uimenuhandler.h:27
List Box.
Definition: uilistbox.h:75
Notifier< uiDispEditMarkerDlg > pickmodechanged
Definition: uiwelldisplaymarkeredit.h:63
Well::Marker & marker_
Definition: uiwelldisplaymarkeredit.h:42
Definition: directionalsurvey.h:19
uiToolButton * addbut_
Definition: uiwelldisplaymarkeredit.h:73
ObjectSet< Well::MarkerSet > orgmarkerssets_
Definition: uiwelldisplaymarkeredit.h:79
Definition: uiwelldisplaymarkeredit.h:109
uiToolButton * rembut_
Definition: uiwelldisplaymarkeredit.h:71
ObjectSet< Well::Data > wds_
Definition: uiwelldisplaymarkeredit.h:121
General Input Element.
Definition: uigeninput.h:58
Well::Data * curwd_
Definition: uiwelldisplaymarkeredit.h:124
Definition: repos.h:25
small element for color selection. Has no text label.
Definition: uicolor.h:44
ObjectSet< uiWellDisplayControl > ctrls_
Definition: uiwelldisplaymarkeredit.h:120
ObjectSet< Well::MarkerSet > markerssets_
Definition: uiwelldisplaymarkeredit.h:80
uiToolButton * editbut_
Definition: uiwelldisplaymarkeredit.h:72
uiListBox * mrklist_
Definition: uiwelldisplaymarkeredit.h:82
Marker, should be attached to Strat level.
Definition: wellmarker.h:35
Definition: uitoolbutton.h:22
uiColorInput * colorfld_
Definition: uiwelldisplaymarkeredit.h:45
The holder of all data concerning a certain well.
Definition: welldata.h:113
Definition: uibutton.h:134
TypeSet< Color > colors_
Definition: uiwelldisplaymarkeredit.h:84
Definition: uiwelldisplaymarkeredit.h:32
bool hasedited_
Definition: uiwelldisplaymarkeredit.h:77

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