OpendTect-6_4  6.4
uirockphysform.h
Go to the documentation of this file.
1 #ifndef uirockphysform_h
2 #define uirockphysform_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Sep 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "propertyref.h"
18 class uiComboBox;
19 class uiGenInput;
20 class uiLabel;
21 class uiPushButton;
22 class uiTextEdit;
23 class uiTextBrowser;
24 class uiRockPhysConstantFld;
25 namespace Math { class Formula; }
26 namespace RockPhysics { class Formula; }
27 
28 
29 mExpClass(uiTools) uiRockPhysForm : public uiGroup
31 public:
32 
35 
36  PropertyRef::StdType getType() const;
37  void setType(PropertyRef::StdType);
39 
40  bool getFormulaInfo(Math::Formula&,
41  TypeSet<PropertyRef::StdType>* tps=0) const;
42  const char* getText(bool replace_consts=true) const;
43 
44  const char* errMsg() const { return errmsg_.buf(); }
45  bool isOK();
46 
47 protected:
48 
54 
57 
58  void typSel(CallBacker*);
59  void nameSel(CallBacker*);
60 
61  void createFlds(uiGroup*);
62  BufferString getFormText(const RockPhysics::Formula&,bool) const;
63 
64 };
65 
66 
67 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Ref Data for a (usually petrophysical) property.
Definition: rockphysics.h:34
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uitextedit.h:74
const char * errMsg() const
Definition: uirockphysform.h:44
is the base class for all buttons.
Definition: uibutton.h:83
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiComboBox * nmfld_
Definition: uirockphysform.h:50
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
const PropertyRef::StdType fixedtype_
Definition: uirockphysform.h:55
uiTextEdit * formulafld_
Definition: uirockphysform.h:51
Definition: rockphysics.h:37
Math formula: (expression, inputs, units, calculation, storage).
Definition: mathformula.h:65
Set of (small) copyable elements.
Definition: commontypes.h:30
General Input Element.
Definition: uigeninput.h:58
const char * buf() const
Definition: odstring.h:47
Definition: uitextedit.h:102
uiTextBrowser * descriptionfld_
Definition: uirockphysform.h:52
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: uirockphysform.h:56
Definition: uilabel.h:24
BufferString errmsg_
Definition: horizontracker.h:119
Definition: math2.h:29
uiComboBox * typfld_
Definition: uirockphysform.h:49
Definition: uirockphysform.h:29
StdType
Definition: propertyref.h:46
ObjectSet< uiRockPhysConstantFld > cstflds_
Definition: uirockphysform.h:53

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