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

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