OpendTect  6.6
uimathexpression.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert
8  Date: Sep 2011
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 #include "uistrings.h"
17 class uiLineEdit;
18 class uiComboBox;
19 class uiPushButton;
20 class uiButton;
21 class uiToolButtonSetup;
22 namespace Math { class SpecVarSet; }
23 
24 
27 public:
28 
29  mExpClass(uiTools) Setup
30  {
31  public:
33  : label_(lbl)
34  , withsetbut_(false)
35  , withfns_(true)
36  , fnsbelow_(true)
37  , specvars_(0) {}
38 
39  mDefSetupMemb(bool,withfns);
40  mDefSetupMemb(bool,fnsbelow);
41  mDefSetupMemb(bool,withsetbut);
43  mDefSetupMemb(const Math::SpecVarSet*,specvars);
45  // if withsetbut and not set, will do returnpress
46  };
47 
49 
50  void setText(const char*);
51  void insertText(const char*);
52 
53  const char* text();
54  uiLineEdit* textField() { return txtfld_; }
55  uiButton* addButton(const uiToolButtonSetup&);
57 
59  void extFormSet() { retPressCB(0); }
60 
61 protected:
62 
67  uiButton* lastbut_;
69 
71  void doIns(CallBacker*);
74 
75 };
76 
77 
uiMathExpression::Setup::Setup
Setup(const uiString &lbl=uiStrings::sEmptyString())
Definition: uimathexpression.h:32
Math::SpecVarSet
Set of special variables for Math Formulae/Expressions.
Definition: mathspecvars.h:47
uiLineEdit
Definition: uilineedit.h:100
uiMathExpression::lastbut_
uiButton * lastbut_
Definition: uimathexpression.h:67
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(bool, withfns)
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(CallBack, setcb)
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(bool, withsetbut)
uiMathExpression::grpSel
void grpSel(CallBacker *)
uiMathExpression::grpfld_
uiComboBox * grpfld_
Definition: uimathexpression.h:64
uiMathExpression::doIns
void doIns(CallBacker *)
uiComboBox
Combo box.
Definition: uicombobox.h:32
uiMathExpression::fnfld_
uiComboBox * fnfld_
Definition: uimathexpression.h:65
uiMathExpression::uiMathExpression
uiMathExpression(uiParent *, const Setup &)
uiMathExpression::formSet
Notifier< uiMathExpression > formSet
Definition: uimathexpression.h:58
uiMathExpression::textField
uiLineEdit * textField()
Definition: uimathexpression.h:54
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiMathExpression::setButCB
void setButCB(CallBacker *)
uigroup.h
uiMathExpression::text
const char * text()
uiMathExpression::mODTextTranslationClass
mODTextTranslationClass(uiMathExpression)
uiMathExpression::retPressCB
void retPressCB(CallBacker *)
uiMathExpression::setup_
Setup setup_
Definition: uimathexpression.h:68
CallBack
CallBacks object-oriented (object + method).
Definition: callback.h:62
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(const Math::SpecVarSet *, specvars)
uiMathExpression::txtfld_
uiLineEdit * txtfld_
Definition: uimathexpression.h:63
uiGroup
Definition: uigroup.h:54
uistrings.h
uiStrings::sEmptyString
static uiString sEmptyString()
Definition: uistrings.h:354
Notifier< uiMathExpression >
uiMathExpression::setText
void setText(const char *)
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(uiString, label)
uiMathExpression::extFormSet
void extFormSet()
Definition: uimathexpression.h:59
uiMathExpression
Definition: uimathexpression.h:26
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiToolButtonSetup
Definition: uitoolbutton.h:90
uiMathExpression::setbut_
uiPushButton * setbut_
Definition: uimathexpression.h:66
uiParent
Definition: uiparent.h:26
uiMathExpression::Setup::mDefSetupMemb
mDefSetupMemb(bool, fnsbelow)
uiMathExpression::Setup
Definition: uimathexpression.h:30
Math
Definition: math2.h:29
uiMathExpression::addButton
uiButton * addButton(const uiToolButtonSetup &)
attach this yourself if it's the first and you have no 'Set' button
uiMathExpression::insertText
void insertText(const char *)
uiPushButton
is the base class for all buttons.
Definition: uibutton.h:88

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