OpendTect  6.6
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  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "multiid.h"
14 #include "propertyref.h"
15 #include "welllogset.h"
16 #include "uigroup.h"
17 #include "uiwellmod.h"
18 #include "uistring.h"
19 
20 class PropertyRef;
21 class UnitOfMeasure;
22 
23 class uiLabel;
24 class uiComboBox;
25 class uiCheckBox;
26 class uiButton;
27 class uiUnitSel;
28 
29 namespace Well { class LogSet; }
30 
31 
34 public:
36  const PropertyRef* alternatepr=0);
37 
39 
40  void set(const char* txt,bool alt,const UnitOfMeasure* u=0);
41  void setCurrent(const char*);
42  void setUOM(const UnitOfMeasure&);
43 
44  const char* logName() const;
45  const UnitOfMeasure* getUnit() const;
46 
47  void selectAltProp(bool yn);
48  bool altPropSelected() const;
49 
50  const PropertyRef& normPropRef() const { return propref_; }
51  const PropertyRef* altPropRef() const { return altpropref_; }
52  const PropertyRef& selPropRef() const;
53 
55 
56 protected:
57 
62  int altpref_;
63 
67 
70 
71  void updateLogInfo();
72 
73 };
74 
75 
78 public:
79 
81  int size() const { return propflds_.size(); }
82 
84  BufferStringSet& notokpropnms);
85  void setLog(const PropertyRef::StdType,const char*,
86  bool check,const UnitOfMeasure*, int idx);
88  bool&, BufferString& uom, int idx) const;
89 
92  virtual bool isOK() const;
93  void setWellID( const MultiID& wid ) { wellid_ = wid; }
94 
95  uiButton* getRightmostButton( int idx ) { return viewbuts_[idx]; }
96 
99 
100 protected:
101 
105 
109 
110 };
111 
112 
uiWellPropSel::uiWellPropSel
uiWellPropSel(uiParent *, const PropertyRefSelection &)
uiWellSinglePropSel::uiWellSinglePropSel
uiWellSinglePropSel(uiParent *, const PropertyRef &, const PropertyRef *alternatepr=0)
uistring.h
uiWellPropSel::getLog
bool getLog(const PropertyRef::StdType, BufferString &, bool &, BufferString &uom, int idx) const
uiWellPropSel::setWellID
void setWellID(const MultiID &wid)
Definition: uiwellpropertyrefsel.h:93
uiWellSinglePropSel::selectAltProp
void selectAltProp(bool yn)
ObjectSet< uiWellSinglePropSel >
uiWellSinglePropSel::selPropRef
const PropertyRef & selPropRef() const
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiWellPropSel::propflds_
ObjectSet< uiWellSinglePropSel > propflds_
Definition: uiwellpropertyrefsel.h:102
uiWellPropSel::viewLogPushed
void viewLogPushed(CallBacker *)
uiComboBox
Combo box.
Definition: uicombobox.h:32
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiWellPropSel::setAvailableLogs
bool setAvailableLogs(const Well::LogSet &, BufferStringSet &notokpropnms)
uiCheckBox
Definition: uibutton.h:167
uiWellSinglePropSel::normPropRef
const PropertyRef & normPropRef() const
Definition: uiwellpropertyrefsel.h:50
uiWellSinglePropSel::altpref_
int altpref_
Definition: uiwellpropertyrefsel.h:62
uiWellSinglePropSel
Definition: uiwellpropertyrefsel.h:33
uiWellSinglePropSel::normunmeaslbls_
BufferStringSet normunmeaslbls_
Definition: uiwellpropertyrefsel.h:60
uiWellPropSel::viewbuts_
ObjectSet< uiButton > viewbuts_
Definition: uiwellpropertyrefsel.h:104
uiUnitSel
Selector for UnitOfMeasure's.
Definition: uiunitsel.h:39
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiWellSinglePropSel::logName
const char * logName() const
uigroup.h
uiWellSinglePropSel::lognmfld_
uiComboBox * lognmfld_
Definition: uiwellpropertyrefsel.h:64
uiWellPropSel::getPropSelFromListByName
uiWellSinglePropSel * getPropSelFromListByName(const BufferString &)
uiWellPropSel::isOK
virtual bool isOK() const
uiWellPropSel::updateSelCB
void updateSelCB(CallBacker *)
PropertyRefSelection
Definition: propertyref.h:166
multiid.h
uiWellSinglePropSel::altPropChosen
Notifier< uiWellSinglePropSel > altPropChosen
Definition: uiwellpropertyrefsel.h:54
uiWellSinglePropSel::setCurrent
void setCurrent(const char *)
Well
Definition: directionalsurvey.h:20
uiWellSinglePropSel::altPropRef
const PropertyRef * altPropRef() const
Definition: uiwellpropertyrefsel.h:51
welllogset.h
uiWellSinglePropSel::setAvailableLogs
bool setAvailableLogs(const Well::LogSet &)
uiWellSinglePropSel::updateLogInfo
void updateLogInfo()
uiGroup
Definition: uigroup.h:54
uiWellSinglePropSel::altPropSelected
bool altPropSelected() const
uiWellSinglePropSel::updateSelCB
void updateSelCB(CallBacker *)
uiWellSinglePropSel::set
void set(const char *txt, bool alt, const UnitOfMeasure *u=0)
uiWellPropSel::getPropSelFromListByIndex
uiWellSinglePropSel * getPropSelFromListByIndex(int)
uiWellSinglePropSel::unfld_
uiUnitSel * unfld_
Definition: uiwellpropertyrefsel.h:65
Notifier< uiWellSinglePropSel >
uiWellSinglePropSel::getUnit
const UnitOfMeasure * getUnit() const
uiWellSinglePropSel::switchPropCB
void switchPropCB(CallBacker *)
uiWellPropSel
Definition: uiwellpropertyrefsel.h:77
uiWellSinglePropSel::altbox_
uiCheckBox * altbox_
Definition: uiwellpropertyrefsel.h:66
uiWellSinglePropSel::mODTextTranslationClass
mODTextTranslationClass(uiWellSinglePropSel)
propertyref.h
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
PropertyRef
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:43
UnitOfMeasure
Unit of Measure.
Definition: unitofmeasure.h:35
uiWellSinglePropSel::altunmeaslbls_
BufferStringSet altunmeaslbls_
Definition: uiwellpropertyrefsel.h:61
Well::LogSet
Log set.
Definition: welllogset.h:32
uiWellPropSel::getRightmostButton
uiButton * getRightmostButton(int idx)
Definition: uiwellpropertyrefsel.h:95
uiWellSinglePropSel::propref_
const PropertyRef & propref_
Definition: uiwellpropertyrefsel.h:58
PropertyRef::StdType
StdType
Definition: propertyref.h:46
uiWellPropSel::size
int size() const
Definition: uiwellpropertyrefsel.h:81
uiLabel
Definition: uilabel.h:24
uiWellPropSel::createbuts_
ObjectSet< uiButton > createbuts_
Definition: uiwellpropertyrefsel.h:103
uiWellPropSel::logCreated
Notifier< uiWellPropSel > logCreated
Definition: uiwellpropertyrefsel.h:98
uiParent
Definition: uiparent.h:26
uiWellPropSel::mODTextTranslationClass
mODTextTranslationClass(uiWellPropSel)
uiWellPropSel::createLogPushed
void createLogPushed(CallBacker *)
uiWellSinglePropSel::altpropref_
const PropertyRef * altpropref_
Definition: uiwellpropertyrefsel.h:59
uiWellSinglePropSel::setUOM
void setUOM(const UnitOfMeasure &)
uiWellPropSel::setLog
void setLog(const PropertyRef::StdType, const char *, bool check, const UnitOfMeasure *, int idx)
uiWellPropSel::wellid_
MultiID wellid_
Definition: uiwellpropertyrefsel.h:97

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