OpendTect  6.6
uicompoundparsel.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 Bril
8  Date: May 2006
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 #include "uistrings.h"
17 
18 class uiGenInput;
19 class uiButton;
20 class uiCheckBox;
21 
22 
31 {
32 public:
33  virtual ~uiCompoundParSel();
34 
35  void setSelText(const uiString&);
36  void setSelIcon(const char*);
37  void updateSummary() { updSummary(0); }
38 
40 
41 protected:
45  const uiString& buttxt,
46  const char* icid=0);
47 
48  virtual BufferString getSummary() const= 0;
49  void doSel(CallBacker*);
51 
53  uiButton* selbut_;
54 
55 private:
56 
57  void crTextFld(const uiString&);
58  void finishCreation(const uiString&,const uiString&);
59 
60 public:
61  mDeprecated ("Use uiString")
62  uiCompoundParSel( uiParent* p, const char* seltxt,
64  : uiCompoundParSel(p,toUiString(seltxt),t) {}
65  mDeprecated ("Use uiString")
66  uiCompoundParSel( uiParent* p, const char* seltxt,
67  const char* buttxt,
68  const char* icid=0 )
69  : uiCompoundParSel(p,toUiString(seltxt),
70  toUiString(buttxt),icid) {}
71 
72 };
73 
74 
81 {
82 public:
83 
85  const uiString& seltxt,
86  bool mkinvisible, // if not, makes insensitive
87  const uiString& buttxt=
89 
90  void setChecked(bool);
91  bool isChecked() const;
92 
94 
95 protected:
96 
98  bool mkinvis_;
99 
101 
102 };
103 
104 
uiCompoundParSel::updateSummary
void updateSummary()
Definition: uicompoundparsel.h:37
uiCompoundParSel::~uiCompoundParSel
virtual ~uiCompoundParSel()
uiCheckedCompoundParSel::setChecked
void setChecked(bool)
File::toUiString
Export_Basic uiString toUiString(ViewStyle)
uiCompoundParSel::finishCreation
void finishCreation(const uiString &, const uiString &)
OD
OpendTect.
Definition: commontypes.h:28
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiCheckBox
Definition: uibutton.h:167
uiCheckedCompoundParSel
CompoundParSel providing something that is optional.
Definition: uicompoundparsel.h:81
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiCompoundParSel::txtfld_
uiGenInput * txtfld_
Definition: uicompoundparsel.h:52
OD::Select
@ Select
Definition: oduicommon.h:95
uigroup.h
uiCheckedCompoundParSel::uiCheckedCompoundParSel
uiCheckedCompoundParSel(uiParent *, const uiString &seltxt, bool mkinvisible, const uiString &buttxt=uiStrings::sEmptyString())
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiCompoundParSel::mDeprecated
mDeprecated("Use uiString") uiCompoundParSel(uiParent *p
uiCompoundParSel::setSelText
void setSelText(const uiString &)
uiCompoundParSel::doSel
void doSel(CallBacker *)
uiGroup
Definition: uigroup.h:54
OD::StdActionType
StdActionType
Definition: oduicommon.h:79
mDeprecated
#define mDeprecated(msg)
Definition: plfdefs.h:215
uistrings.h
uiStrings::sEmptyString
static uiString sEmptyString()
Definition: uistrings.h:354
Notifier< uiCompoundParSel >
uiCompoundParSel::setSelIcon
void setSelIcon(const char *)
uiCheckedCompoundParSel::mkinvis_
bool mkinvis_
Definition: uicompoundparsel.h:98
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiCheckedCompoundParSel::checkCB
void checkCB(CallBacker *)
uiCheckedCompoundParSel::isChecked
bool isChecked() const
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiCompoundParSel::selbut_
uiButton * selbut_
Definition: uicompoundparsel.h:53
uiCheckedCompoundParSel::checked
Notifier< uiCheckedCompoundParSel > checked
Definition: uicompoundparsel.h:93
uiCompoundParSel::crTextFld
void crTextFld(const uiString &)
uiCompoundParSel::updSummary
void updSummary(CallBacker *)
uiCompoundParSel::uiCompoundParSel
uiCompoundParSel(uiParent *, const uiString &seltxt, const uiString &buttxt, const char *icid=0)
uiCompoundParSel::butPush
Notifier< uiCompoundParSel > butPush
Definition: uicompoundparsel.h:39
uiParent
Definition: uiparent.h:26
uiCompoundParSel::uiCompoundParSel
uiCompoundParSel(uiParent *, const uiString &seltxt, OD::StdActionType t=OD::Select)
uiCompoundParSel
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
uiCompoundParSel::getSummary
virtual BufferString getSummary() const =0
uiCheckedCompoundParSel::cbox_
uiCheckBox * cbox_
Definition: uicompoundparsel.h:97

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