OpendTect-6_4  6.4
uiposfilterset.h
Go to the documentation of this file.
1 #ifndef uiposfilterset_h
2 #define uiposfilterset_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uicompoundparsel.h"
17 #include "uiposfiltgroup.h"
18 #include "iopar.h"
19 class uiGenInput;
20 class uiListBox;
21 
26 public:
27 
28  struct Setup : public uiPosFiltGroup::Setup
29  {
30  Setup( bool is_2d )
31  : uiPosFiltGroup::Setup(is_2d)
32  , seltxt_(uiStrings::sFilters())
33  , incprovs_(false) {}
34 
35  mDefSetupMemb(uiString,seltxt)
36  mDefSetupMemb(bool,incprovs)
37  };
38 
39  uiPosFilterSet(uiParent*,const Setup&);
40 
41  void usePar(const IOPar&);
42  bool fillPar(IOPar&) const;
43 
44 protected:
45 
49 
53 
54  void selChg(CallBacker*);
55  int selIdx() const;
56 };
57 
58 
60 {
61 public:
62 
64 
65  uiPosFilterSetSel(uiParent*,const Setup&);
66 
67  void usePar(const IOPar&);
68  void fillPar( IOPar& iop ) const { iop.merge(iop_); }
69 
70 protected:
71 
72  Setup setup_;
74 
75  void doDlg(CallBacker*);
76  BufferString getSummary() const;
77 
78 };
79 
80 
81 #endif
Setup(bool is_2d)
Definition: uiposfilterset.h:30
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
Definition: uiposfilterset.h:28
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Setup setup_
Definition: uiposfilterset.h:72
uiPosFilterSet::Setup Setup
Definition: uiposfilterset.h:63
Definition: uiposfiltgroup.h:26
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
IOPar iop_
Definition: uiposfilterset.h:73
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
void merge(const IOPar &)
merge entries using the set() command
Definition: uistrings.h:24
Definition: uistring.h:89
Definition: uiparent.h:26
List Box.
Definition: uilistbox.h:75
uiListBox * selfld_
Definition: uiposfilterset.h:52
group for providing positions, usually for 2D or 3D seismics
Definition: uiposfiltgroup.h:22
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: uiposfilterset.h:59
General Input Element.
Definition: uigeninput.h:58
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
BoolTypeSet isprov_
Definition: uiposfilterset.h:48
uiGenInput * ynfld_
Definition: uiposfilterset.h:50
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Setup setup_
Definition: uiposfilterset.h:46
lets user choose a way to provide positions
Definition: uiposfilterset.h:24
ObjectSet< uiPosFiltGroup > grps_
Definition: uiposfilterset.h:51
void fillPar(IOPar &iop) const
Definition: uiposfilterset.h:68
BoolTypeSet issel_
Definition: uiposfilterset.h:47

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