OpendTect-6_4  6.4
uicompoundparsel.h
Go to the documentation of this file.
1 #ifndef uicompoundparsel_h
2 #define uicompoundparsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert Bril
9  Date: May 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "uistrings.h"
18 
19 class uiGenInput;
20 class uiButton;
21 class uiCheckBox;
22 
23 
32 {
33 public:
34 
35  uiCompoundParSel(uiParent*,const uiString& seltxt,
37  uiCompoundParSel(uiParent*,const uiString& seltxt,
38  const uiString& buttxt,
39  const char* icid=0);
40 
41 
42  void setSelText(const uiString&);
43  void setSelIcon(const char*);
44  void updateSummary() { updSummary(0); }
45 
47 
48 protected:
49 
50  virtual BufferString getSummary() const= 0;
51  void doSel(CallBacker*);
52  void updSummary(CallBacker*);
53 
55  uiButton* selbut_;
56 
57 private:
58 
59  void crTextFld(const uiString&);
60  void finishCreation(const uiString&,const uiString&);
61 
62 };
63 
64 
71 {
72 public:
73 
75  const uiString& seltxt,
76  bool mkinvisible, // if not, makes insensitive
77  const uiString& buttxt=
79 
80  void setChecked(bool);
81  bool isChecked() const;
82 
84 
85 protected:
86 
88  bool mkinvis_;
89 
90  void checkCB(CallBacker*);
91 
92 };
93 
94 
95 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
Definition: uistring.h:89
Definition: uiparent.h:26
void setChecked(bool yn=true)
void updateSummary()
Definition: uicompoundparsel.h:44
uiButton * selbut_
Definition: uicompoundparsel.h:55
uiGenInput * txtfld_
Definition: uicompoundparsel.h:54
General Input Element.
Definition: uigeninput.h:58
StdActionType
Definition: oduicommon.h:61
Definition: oduicommon.h:78
bool mkinvis_
Definition: uicompoundparsel.h:88
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
CompoundParSel providing something that is optional.
Definition: uicompoundparsel.h:70
Notifier< uiCheckedCompoundParSel > checked
Definition: uicompoundparsel.h:83
static uiString sEmptyString()
Definition: uistrings.h:286
Definition: uibutton.h:134
uiCheckBox * cbox_
Definition: uicompoundparsel.h:87
Notifier< uiCompoundParSel > butPush
Definition: uicompoundparsel.h:46
bool isChecked() const

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