OpendTect-6_4  6.4
uiwindowfunctionsel.h
Go to the documentation of this file.
1 #ifndef uiwindowfunctionsel_h
2 #define uiwindowfunctionsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: July 2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uitoolsmod.h"
17 #include "uigroup.h"
18 #include "multiid.h"
19 
20 class WindowFunction;
21 class uiGenInput;
22 class uiPushButton;
23 class uiWindowFuncSelDlg;
24 class uiFreqTaperDlg;
25 
30 public:
31 
32  mStruct(uiTools) Setup
33  {
34  Setup()
35  : onlytaper_(false)
36  , with2fldsinput_(false)
37  , winparam_(mUdf(float))
38  {}
39 
40  mDefSetupMemb(const char*,winname )
41  mDefSetupMemb(const char*,label)
42  mDefSetupMemb(BufferString,inpfldtxt)
43  mDefSetupMemb(float,winparam)
44  mDefSetupMemb(bool,onlytaper)
45  mDefSetupMemb(bool,with2fldsinput)
46  };
47 
50 
51  NotifierAccess& typeChange();
52 
53  void setWindowName(const char*);
54  void setWindowParamValue(float,int fldnr=0);
55 
56  const char* windowName() const;
57  float windowParamValue() const;
58  const char* windowParamName() const;
59 
60  static const char* sNone() { return "None"; }
61 
62 protected:
63 
64  void windowChangedCB(CallBacker*);
65  virtual void winfuncseldlgCB(CallBacker*);
66  void windowClosed(CallBacker*);
67 
68  uiGenInput* getVariableFld(int winidx);
69  const uiGenInput* getVariableFld(int winidx) const;
70 
73 
74  bool onlytaper_;
80 
81 };
82 
83 
84 #endif
Definition: uigroup.h:54
bool onlytaper_
Definition: uiwindowfunctionsel.h:74
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
FixedString Setup()
Definition: keystrs.h:116
is the base class for all buttons.
Definition: uibutton.h:83
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Interface class for Notifier. See comments there.
Definition: callback.h:161
ObjectSet< WindowFunction > windowfuncs_
Definition: uiwindowfunctionsel.h:79
uiWindowFuncSelDlg * winfuncseldlg_
Definition: uiwindowfunctionsel.h:78
uiGenInput * windowtypefld_
Definition: uiwindowfunctionsel.h:75
Definition: uiwindowfuncseldlg.h:142
Definition: uiparent.h:26
ObjectSet< uiGenInput > varinpflds_
Definition: uiwindowfunctionsel.h:76
uiPushButton * viewbut_
Definition: uiwindowfunctionsel.h:77
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
General Input Element.
Definition: uigeninput.h:58
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
BufferString errmsg_
Definition: uiwindowfunctionsel.h:71
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uiwindowfunctionsel.h:28
Base class for window functions. The inheriting classes will give a value between 0 and 1 in the inte...
Definition: windowfunction.h:27
static const char * sNone()
Definition: uiwindowfunctionsel.h:60
Notifier< uiMainWin > windowClosed
triggered when window exits
Definition: uimainwin.h:132
Definition: uifreqtaper.h:187
Interval< float > annotrange_
Definition: uiwindowfunctionsel.h:72

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