OpendTect-6_4  6.4
uiwellpropertyrefsel.h
Go to the documentation of this file.
1 #ifndef uiwellpropertyrefsel_h
2 #define uiwellpropertyrefsel_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bruno / Bert
8  Date: April 2011 / May 2014
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "multiid.h"
15 #include "propertyref.h"
16 #include "welllogset.h"
17 #include "uigroup.h"
18 #include "uiwellmod.h"
19 #include "uistring.h"
20 
21 class PropertyRef;
22 class UnitOfMeasure;
23 
24 class uiLabel;
25 class uiComboBox;
26 class uiCheckBox;
27 class uiButton;
28 class uiUnitSel;
29 
30 namespace Well { class LogSet; }
31 
32 
35 public:
37  const PropertyRef* alternatepr=0);
38 
39  bool setAvailableLogs(const Well::LogSet&);
40 
41  void set(const char* txt,bool alt,const UnitOfMeasure* u=0);
42  void setCurrent(const char*);
43  void setUOM(const UnitOfMeasure&);
44 
45  const char* logName() const;
46  const UnitOfMeasure* getUnit() const;
47 
48  void selectAltProp(bool yn);
49  bool altPropSelected() const;
50 
51  const PropertyRef& normPropRef() const { return propref_; }
52  const PropertyRef* altPropRef() const { return altpropref_; }
53  const PropertyRef& selPropRef() const;
54 
56 
57 protected:
58 
63  int altpref_;
64 
68 
69  void updateSelCB(CallBacker*);
70  void switchPropCB(CallBacker*);
71 
72  void updateLogInfo();
73 
74 };
75 
76 
79 public:
80 
82  int size() const { return propflds_.size(); }
83 
84  bool setAvailableLogs(const Well::LogSet&,
85  BufferStringSet& notokpropnms);
86  void setLog(const PropertyRef::StdType,const char*,
87  bool check,const UnitOfMeasure*, int idx);
88  bool getLog(const PropertyRef::StdType,BufferString&,
89  bool&, BufferString& uom, int idx) const;
90 
91  uiWellSinglePropSel* getPropSelFromListByName(const BufferString&);
92  uiWellSinglePropSel* getPropSelFromListByIndex(int);
93  virtual bool isOK() const;
94  void setWellID( const MultiID& wid ) { wellid_ = wid; }
95 
96  uiButton* getRightmostButton( int idx ) { return viewbuts_[idx]; }
97 
100 
101 protected:
102 
106 
107  void updateSelCB(CallBacker*);
108  void createLogPushed(CallBacker*);
109  void viewLogPushed(CallBacker*);
110 
111 };
112 
113 
114 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiComboBox * lognmfld_
Definition: uiwellpropertyrefsel.h:65
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
const PropertyRef * altpropref_
Definition: uiwellpropertyrefsel.h:60
Definition: propertyref.h:176
Notifier< uiWellSinglePropSel > altPropChosen
Definition: uiwellpropertyrefsel.h:55
uiButton * getRightmostButton(int idx)
Definition: uiwellpropertyrefsel.h:96
ObjectSet< uiButton > createbuts_
Definition: uiwellpropertyrefsel.h:104
Selector for UnitOfMeasure&#39;s.
Definition: uiunitsel.h:38
const PropertyRef & propref_
Definition: uiwellpropertyrefsel.h:59
Definition: uiwellpropertyrefsel.h:77
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
ObjectSet< uiButton > viewbuts_
Definition: uiwellpropertyrefsel.h:105
void setWellID(const MultiID &wid)
Definition: uiwellpropertyrefsel.h:94
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:42
ObjectSet< uiWellSinglePropSel > propflds_
Definition: uiwellpropertyrefsel.h:103
Log set.
Definition: welllogset.h:32
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Definition: uiwellpropertyrefsel.h:33
Definition: directionalsurvey.h:19
uiCheckBox * altbox_
Definition: uiwellpropertyrefsel.h:67
BufferStringSet normunmeaslbls_
Definition: uiwellpropertyrefsel.h:61
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Notifier< uiWellPropSel > logCreated
Definition: uiwellpropertyrefsel.h:99
Definition: uilabel.h:24
int size() const
Definition: uiwellpropertyrefsel.h:82
uiUnitSel * unfld_
Definition: uiwellpropertyrefsel.h:66
BufferStringSet altunmeaslbls_
Definition: uiwellpropertyrefsel.h:62
StdType
Definition: propertyref.h:46
int altpref_
Definition: uiwellpropertyrefsel.h:63
MultiID wellid_
Definition: uiwellpropertyrefsel.h:98
Definition: uibutton.h:134
const PropertyRef * altPropRef() const
Definition: uiwellpropertyrefsel.h:52
Unit of Measure.
Definition: unitofmeasure.h:35
Compound key consisting of ints.
Definition: multiid.h:25
const PropertyRef & normPropRef() const
Definition: uiwellpropertyrefsel.h:51

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