OpendTect-6_4  6.4
uiwellmarkersel.h
Go to the documentation of this file.
1 #ifndef uiwellmarkersel_h
2 #define uiwellmarkersel_h
3 /*+
4 ________________________________________________________________________
5 
6 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7 Author: Bert
8 Date: Aug 2012
9 RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uiwellmod.h"
15 
16 #include "uidialog.h"
17 #include "uigroup.h"
18 #include "uistring.h"
19 
20 #include "bufstringset.h"
21 
22 
23 class uiComboBox;
24 class uiIOObjSelGrp;
25 class uiListBox;
26 namespace Well { class Marker; class MarkerSet; }
27 
28 
33 public:
34 
35  mExpClass(uiWell) Setup
36  {
37  public:
38  Setup(bool one,const char* sel_txt=0);
39  // Pass an empty string ("") to get no label
40 
41  mDefSetupMemb(bool,single);
42  mDefSetupMemb(bool,allowsame);
43  mDefSetupMemb(bool,withudf);
44  mDefSetupMemb(bool,unordered);
45  mDefSetupMemb(bool,middef);
48  };
49 
51 
52  void setMarkers(const Well::MarkerSet&);
53  void setMarkers(const BufferStringSet&);
54 
55  void setInput(const Well::Marker&,bool top=true);
56  void setInput(const char*,bool top=true);
57 
58  const char* getText(bool top=true) const;
59  int getType(bool top=true) const;
62 
63  void usePar(const IOPar&);
64  void fillPar(IOPar&) const;
65 
66  static const char* sKeyUdfLvl();
67  static const char* sKeyDataStart();
68  static const char* sKeyDataEnd();
69 
70  uiComboBox* getFld( bool top )
71  { return top ? topfld_ : botfld_; }
72 
74 
75 protected:
76 
77  const Setup setup_;
80 
81  void setMarkers(uiComboBox&,const BufferStringSet&);
82  void mrkSel(CallBacker*);
83 
84 };
85 
86 
91 public:
92 
93  mExpClass(uiWell) Setup
94  {
95  public:
97  bool withwllfilt=true,
99  : markerschoicemode_(markerscm)
100  , withwellfilter_(withwllfilt)
101  , wellschoicemode_(wellscm) {}
102 
103  mDefSetupMemb(OD::ChoiceMode,markerschoicemode);
104  mDefSetupMemb(bool,withwellfilter);
105  mDefSetupMemb(OD::ChoiceMode,wellschoicemode);
106 
107  };
108 
110  const uiWellMarkersDlg::Setup&);
111 
112  //Available after dlg.go():
113  void getNames(BufferStringSet&);
114  void getWellNames(BufferStringSet&);
115  void getWellIDs(TypeSet<MultiID>&);
116 
117  uiIOObjSelGrp* wellSelGrp() { return wellselgrp_; }
118 
119 private:
120 
123 
124  void fltrMarkerNamesCB(CallBacker*);
125 };
126 
127 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Set of Markers.
Definition: wellmarker.h:76
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: oduicommon.h:46
ChoiceMode
What to choose from any list-type UI object.
Definition: oduicommon.h:42
FixedString Setup()
Definition: keystrs.h:116
Definition: uiwellmarkersel.h:35
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uiwellmarkersel.h:93
uiIOObjSelGrp * wellselgrp_
Definition: uiwellmarkersel.h:121
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
Definition: uidialog.h:42
uiIOObjSelGrp * wellSelGrp()
Definition: uiwellmarkersel.h:117
List Box.
Definition: uilistbox.h:75
uiComboBox * topfld_
Definition: uiwellmarkersel.h:78
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const Setup setup_
Definition: uiwellmarkersel.h:77
uiComboBox * getFld(bool top)
Definition: uiwellmarkersel.h:70
Select one or two markers (i.e. a range)
Definition: uiwellmarkersel.h:31
Definition: directionalsurvey.h:19
Notifier< uiWellMarkerSel > mrkSelDone
Definition: uiwellmarkersel.h:73
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
uiComboBox * botfld_
Definition: uiwellmarkersel.h:79
uiListBox * markersselgrp_
Definition: uiwellmarkersel.h:122
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Select a list of markers from the well database.
Definition: uiwellmarkersel.h:89
Marker, should be attached to Strat level.
Definition: wellmarker.h:35
Setup(OD::ChoiceMode markerscm=OD::ChooseAtLeastOne, bool withwllfilt=true, OD::ChoiceMode wellscm=OD::ChooseAtLeastOne)
Definition: uiwellmarkersel.h:96
Basic group for letting the user select an object.
Definition: uiioobjselgrp.h:46

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