OpendTect-6_4  6.4
uiwellsel.h
Go to the documentation of this file.
1 #ifndef uiwellsel_h
2 #define uiwellsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: January 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiwellmod.h"
16 #include "uicompoundparsel.h"
17 #include "uiioobjsel.h"
18 #include "uiioobjselgrp.h"
19 #include "multiid.h"
20 
21 
22 mExpClass(uiWell) uiWellSel : public uiIOObjSel
24 public:
25 
26  uiWellSel(uiParent*,bool forread,const Setup&);
27  uiWellSel(uiParent*,bool forread,
28  const uiString& seltxt=uiString::emptyString(),
29  bool withinserters=true);
30 
31 protected:
32 
33  Setup getSetup(bool,const uiString&,bool) const;
34  IOObjContext getContext(bool,bool) const;
35 
36 };
37 
38 
41 public:
43  ~uiWellParSel();
44 
45  int nrSelected() const { return selids_.size(); }
46  void setSelected(const TypeSet<MultiID>&);
47  void getSelected(TypeSet<MultiID>&) const;
48 
49  void fillPar(IOPar&) const;
50  bool usePar(const IOPar&);
51 
53 
54 protected:
55 
56  void doDlg(CallBacker*);
57  BufferString getSummary() const;
58 
61 };
62 
63 
66 public:
67  uiMultiWellSel(uiParent*,bool single_line,
68  const uiIOObjSelGrp::Setup* su=0);
69 
70  int nrSelected() const;
71  void setSelected(const TypeSet<MultiID>&);
72  void getSelected(TypeSet<MultiID>&) const;
73  MultiID currentID() const;
74  void allowIOObjManip(bool yn);
75 
76  void fillPar(IOPar&) const;
77  bool usePar(const IOPar&);
78 
81 
82 protected:
83 
86 
87  void newSelectionCB(CallBacker*) { newSelection.trigger(); }
88  void newCurrentCB(CallBacker*) { newCurrent.trigger(); }
89 
90 };
91 
92 #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
Definition: uiioobjselgrp.h:50
IOPar & iopar_
Definition: uiwellsel.h:60
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
uiWellParSel * singlnfld_
Definition: uiwellsel.h:84
Notifier< uiMultiWellSel > newSelection
Definition: uiwellsel.h:79
static const uiString & emptyString()
Definition: uistring.h:109
Definition: uiwellsel.h:64
Definition: uistring.h:89
Definition: uiwellsel.h:39
Definition: uiparent.h:26
Notifier< uiMultiWellSel > newCurrent
Definition: uiwellsel.h:80
TypeSet< MultiID > selids_
Definition: uiwellsel.h:59
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Notifier< uiWellParSel > selDone
Definition: uiwellsel.h:52
uiIOObjSelGrp * multilnfld_
Definition: uiwellsel.h:85
void trigger(T &t)
Definition: callback.h:258
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:38
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uiwellsel.h:22
void newCurrentCB(CallBacker *)
Definition: uiwellsel.h:88
Basic group for letting the user select an object.
Definition: uiioobjselgrp.h:46
Definition: uiiosel.h:34
int nrSelected() const
Definition: uiwellsel.h:45
Compound key consisting of ints.
Definition: multiid.h:25
void newSelectionCB(CallBacker *)
Definition: uiwellsel.h:87
Holds the context for selecting and/or creating IOObjs.
Definition: ctxtioobj.h:62

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