1 #ifndef uimathexpressionvariable_h 2 #define uimathexpressionvariable_h 14 #include "uitoolsmod.h" 20 namespace Math {
class Formula;
class Expression; }
34 bool withsubinps=
false,
38 void addInpViewIcon(
const char* inm,
const char* tooltip,
46 int varIdx()
const {
return varidx_; }
49 {
return varnm_ == nm; }
54 const char* getInput()
const;
58 void selectInput(
const char*,
bool exact=
false);
59 void selectSubInput(
int);
61 void setUnit(
const char*);
67 uiGroup* rightMostField();
95 void updateInpNms(
bool sub);
97 void setVariable(
const char*,
bool);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiComboBox * inpfld_
Definition: uimathexpressionvariable.h:88
bool isconst_
Definition: uimathexpressionvariable.h:82
Selector for UnitOfMeasure's.
Definition: uiunitsel.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool isActive() const
Definition: uimathexpressionvariable.h:51
void initFlds(CallBacker *)
Definition: uimathexpressionvariable.h:72
const OD::String & varName() const
Definition: uimathexpressionvariable.h:47
uiLabel * inplbl_
Definition: uimathexpressionvariable.h:87
void inpChg(CallBacker *)
Definition: uimathexpressionvariable.h:73
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
const int varidx_
Definition: uimathexpressionvariable.h:77
bool hasVarName(const char *nm) const
Definition: uimathexpressionvariable.h:48
Set of BufferString objects.
Definition: bufstringset.h:28
Set of special variables for Math Formulae/Expressions.
Definition: mathspecvars.h:47
uiGenInput * constfld_
Definition: uimathexpressionvariable.h:90
bool isactive_
Definition: uimathexpressionvariable.h:81
bool isConst() const
Definition: uimathexpressionvariable.h:52
Notifier< uiMathExpressionVariable > inpSel
Definition: uimathexpressionvariable.h:64
int specidx_
Definition: uimathexpressionvariable.h:83
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
uiGroup * inpgrp_
Definition: uimathexpressionvariable.h:86
Notifier< uiMathExpressionVariable > subInpSel
Definition: uimathexpressionvariable.h:65
void trigger(T &t)
Definition: callback.h:258
Definition: uimathexpressionvariable.h:28
BufferStringSet nonspecinputs_
Definition: uimathexpressionvariable.h:79
Math::SpecVarSet & specvars_
Definition: uimathexpressionvariable.h:84
BufferString varnm_
Definition: uimathexpressionvariable.h:78
Parsed Math expression.
Definition: mathexpression.h:32
void subInpChg(CallBacker *)
Definition: uimathexpressionvariable.h:74
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiUnitSel * unfld_
Definition: uimathexpressionvariable.h:91
const uiToolButton * viewBut() const
Definition: uimathexpressionvariable.h:68
uiComboBox * subinpfld_
Definition: uimathexpressionvariable.h:89
StdType
Definition: propertyref.h:46
int varIdx() const
Definition: uimathexpressionvariable.h:46
CallBacks object-oriented (object + method).
Definition: callback.h:57
BufferStringSet nonspecsubinputs_
Definition: uimathexpressionvariable.h:80
Unit of Measure.
Definition: unitofmeasure.h:35
int specIdx() const
Definition: uimathexpressionvariable.h:53
uiToolButton * vwbut_
Definition: uimathexpressionvariable.h:92