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

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