OpendTect-6_4  6.4
uipropvalfld.h
Go to the documentation of this file.
1 #ifndef uipropvalfld_h
2 #define uipropvalfld_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Aug 2012
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 class PropertyRef;
17 class UnitOfMeasure;
18 class uiGenInput;
19 class uiUnitSel;
20 
21 
23 {
24 public:
25 
27  float defval=mUdf(float),
28  const UnitOfMeasure* defunit=0);
29 
30  float getValue(bool internal=true) const;
31  void setValue(float val,bool isinternal=true);
32  const char* getUnitName() const;
33  const UnitOfMeasure* getUnit() const;
34  void setUnit(const UnitOfMeasure* uom=0);
35  void setUnitName(const char*);
36 
37  void setReadOnly(bool);
38  const char* propName() const;
39 
41 
42 protected:
43 
47  mutable float lastsetvalue_;
48 
49  void handleValChg(float,bool) const;
50 
51  void valChg(CallBacker*);
52  void unChg(CallBacker*);
53 
54 };
55 
56 
57 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiUnitSel * unfld_
Definition: uipropvalfld.h:45
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Selector for UnitOfMeasure's.
Definition: uiunitsel.h:38
Ref Data for a (usually petrophysical) property.
Definition: propertyref.h:42
Definition: uiparent.h:26
const UnitOfMeasure * prevuom_
Definition: uipropvalfld.h:46
Definition: uipropvalfld.h:22
void setUnit(const UnitOfMeasure *uom=0)
const char * getUnitName() const
const UnitOfMeasure * getUnit() const
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
General Input Element.
Definition: uigeninput.h:58
float lastsetvalue_
Definition: uipropvalfld.h:47
uiGenInput * valfld_
Definition: uipropvalfld.h:44
Notifier< uiPropertyValFld > valueChanged
Definition: uipropvalfld.h:40
Unit of Measure.
Definition: unitofmeasure.h:35

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