OpendTect  6.3
uiwellmarkersel.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6 Author: Bert
7 Date: Aug 2012
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "uiwellmod.h"
13 
14 #include "uidialog.h"
15 #include "uigroup.h"
16 #include "uistring.h"
17 
18 class uiComboBox;
19 class uiGenInput;
20 class uiMultiWellSel;
21 class uiListBox;
22 class BufferStringSet;
23 class DBKeySet;
24 namespace Well { class Marker; class MarkerSet; }
25 
26 
31 public:
32 
33  mExpClass(uiWell) Setup
34  {
35  public:
36  Setup(bool one,const char* sel_txt=0);
37  // Pass an empty string ("") to get no label
38 
39  mDefSetupMemb(bool,single);
40  mDefSetupMemb(bool,allowsame);
41  mDefSetupMemb(bool,withudf);
42  mDefSetupMemb(bool,unordered);
43  mDefSetupMemb(bool,middef);
46  };
47 
49 
50  void setMarkers(const Well::MarkerSet&);
51  void setMarkers(const BufferStringSet&);
52 
53  void setInput(const Well::Marker&,bool top=true);
54  void setInput(const char*,bool top=true);
55 
56  const char* getText(bool top=true) const;
57  int getType(bool top=true) const;
60 
61  void usePar(const IOPar&);
62  void fillPar(IOPar&) const;
63 
64  static const char* sKeyUdfLvl();
65  static const char* sKeyDataStart();
66  static const char* sKeyDataEnd();
67 
68  uiComboBox* getFld( bool top )
69  { return top ? topfld_ : botfld_; }
70 
72 
73 protected:
74 
75  const Setup setup_;
78 
79  void setMarkers(uiComboBox&,const BufferStringSet&);
80  void mrkSel(CallBacker*);
81 
82 };
83 
84 
89 public:
90 
91  mExpClass(uiWell) Setup
92  {
93  public:
95  bool withwllfilt=true,
97  : markerschoicemode_(markerscm)
98  , withwellfilter_(withwllfilt)
99  , wellschoicemode_(wellscm) {}
100 
101  mDefSetupMemb(OD::ChoiceMode,markerschoicemode);
102  mDefSetupMemb(bool,withwellfilter);
103  mDefSetupMemb(OD::ChoiceMode,wellschoicemode);
104 
105  };
106 
108  const uiWellMarkersDlg::Setup&);
109 
110  //Available after dlg.go():
111  void getNames(BufferStringSet&);
112  void getWellNames(BufferStringSet&);
113  void getWellIDs(DBKeySet&);
114 
115 protected:
116 
117  void fltrMarkerNamesCB(CallBacker*);
118 
123 
124 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Set of Markers.
Definition: wellmarker.h:83
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: oduicommon.h:44
ChoiceMode
What to choose from any list-type UI object.
Definition: oduicommon.h:40
FixedString Setup()
Definition: keystrs.h:113
Definition: uiwellmarkersel.h:33
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: uiwellmarkersel.h:91
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
BufferStringSet markernms_
Definition: uiwellmarkersel.h:119
Definition: dbkey.h:98
Definition: uiwellsel.h:38
Combo box.
Definition: uicombobox.h:30
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
Definition: uidialog.h:40
List Box.
Definition: uilistbox.h:73
uiComboBox * topfld_
Definition: uiwellmarkersel.h:76
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
const Setup setup_
Definition: uiwellmarkersel.h:75
uiComboBox * getFld(bool top)
Definition: uiwellmarkersel.h:68
Select one or two markers (i.e. a range)
Definition: uiwellmarkersel.h:29
Definition: wellcommon.h:16
Notifier< uiWellMarkerSel > mrkSelDone
Definition: uiwellmarkersel.h:71
General Input Element.
Definition: uigeninput.h:56
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:129
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
uiComboBox * botfld_
Definition: uiwellmarkersel.h:77
uiListBox * markersselgrp_
Definition: uiwellmarkersel.h:121
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Select a list of markers from the well database.
Definition: uiwellmarkersel.h:87
Marker, can be attached to Strat level. When not attached, uses the object&#39;s own (fallback) name and ...
Definition: wellmarker.h:32
Setup(OD::ChoiceMode markerscm=OD::ChooseAtLeastOne, bool withwllfilt=true, OD::ChoiceMode wellscm=OD::ChooseAtLeastOne)
Definition: uiwellmarkersel.h:94
uiMultiWellSel * wellselgrp_
Definition: uiwellmarkersel.h:120
uiGenInput * filtfld_
Definition: uiwellmarkersel.h:122

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