OpendTect  6.3
uiwellsel.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: Nanne Hemstra
8  Date: January 2012
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiwellmod.h"
14 #include "uiioobjsel.h"
15 #include "uiioobjselgrp.h"
16 #include "dbkey.h"
17 
18 class uiWellSingLineMultiSel;
19 
20 
21 mExpClass(uiWell) uiWellSel : public uiIOObjSel
23 public:
24 
25  uiWellSel(uiParent*,bool forread,const Setup&);
26  uiWellSel(uiParent*,bool forread,
27  const uiString& seltxt=uiString::emptyString(),
28  bool withinserters=true);
29 
30 protected:
31 
32  Setup getSetup(bool,const uiString&,bool) const;
33  IOObjContext getContext(bool,bool) const;
34 
35 };
36 
37 
40 public:
41 
42  uiMultiWellSel(uiParent*,bool single_line,
43  const uiIOObjSelGrp::Setup* su=0);
44 
45  int nrSelected() const;
46  void setSelected(const DBKeySet&);
47  void getSelected(DBKeySet&) const;
48  DBKey currentID() const;
49 
50  void fillPar(IOPar&) const;
51  bool usePar(const IOPar&);
52 
55 
56 protected:
57 
58  uiWellSingLineMultiSel* singlnfld_;
60 
61  void newSelectionCB( CallBacker* ) { newSelection.trigger(); }
62  void newCurrentCB( CallBacker* ) { newCurrent.trigger(); }
63 
64 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: uiioobjselgrp.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
Definition: dbkey.h:98
Notifier< uiMultiWellSel > newSelection
Definition: uiwellsel.h:53
static const uiString & emptyString()
Definition: uistring.h:107
Definition: uiwellsel.h:38
void trigger()
Definition: notify.h:128
Definition: uistring.h:88
Definition: uiparent.h:24
Notifier< uiMultiWellSel > newCurrent
Definition: uiwellsel.h:54
uiWellSingLineMultiSel * singlnfld_
Definition: uiwellsel.h:58
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
uiIOObjSelGrp * multilnfld_
Definition: uiwellsel.h:59
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:36
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Definition: uiwellsel.h:21
void newCurrentCB(CallBacker *)
Definition: uiwellsel.h:62
Basic group for letting the user select an object.
Definition: uiioobjselgrp.h:44
Definition: uiiosel.h:32
void newSelectionCB(CallBacker *)
Definition: uiwellsel.h:61
Holds the context for selecting and/or creating IOObjs.
Definition: ioobjctxt.h:59

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