OpendTect  6.6
uimadiosel.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3  * (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
4  * AUTHOR : Bert
5  * DATE : Sep 2007
6  * ID : $Id$
7 -*/
8 
9 #include "uicompoundparsel.h"
10 #include "uidialog.h"
11 #include "madprocflow.h"
12 #include "seistype.h"
13 #include "iopar.h"
14 
15 class uiCheckBox;
16 class uiGenInput;
17 class uiSeisSel;
18 class uiFileInput;
19 class uiSeisSubSel;
20 class uiSeis2DSubSel;
21 class uiSeis3DSubSel;
22 
23 
24 mClass(uiMadagascar) uiMadIOSel : public uiCompoundParSel
26 public:
27  uiMadIOSel(uiParent*,bool isinp);
28 
29  void usePar(const IOPar&);
30  void useParIfNeeded(const IOPar&);
31  bool fillPar( IOPar& iop ) const
32  { iop.merge(iop_); return iop_.size(); }
33 
35 protected:
36 
37  bool isinp_;
39 
40  virtual BufferString getSummary() const;
41  void doDlg(CallBacker*);
42 
43 };
44 
45 
46 mClass(uiMadagascar) uiMadIOSelDlg : public uiDialog
48 public:
49 
50  uiMadIOSelDlg(uiParent*,IOPar&,bool isinp);
51 
52  inline bool isInp() const
53  { return isinp_; }
54  bool isNone() const;
55  bool isMad() const;
56  bool isSU() const;
57  inline bool isOD() const { return !isMad() && !isNone(); }
59  {
60  return isNone() ? ODMad::ProcFlow::None
61  : (isMad() ? ODMad::ProcFlow::Madagascar
62  : (ODMad::ProcFlow::IOType)geomType());
63  }
64 
65  // Functions only valid if isOD()
69 
70  void usePar(const IOPar&);
71  bool fillPar(IOPar&);
73 
74 protected:
75 
76  int idx3d_, idx2d_, idxps3d_, idxps2d_, idxmad_,
77  idxsu_, idxnone_;
79  bool isinp_;
80 
88  // Inp only:
92 
97 
98  bool getInp();
100 
101 };
102 
103 
uiMadIOSel::useParIfNeeded
void useParIfNeeded(const IOPar &)
uiMadIOSelDlg::seisps3dfld_
uiSeisSel * seisps3dfld_
Definition: uimadiosel.h:84
uiMadIOSel
Definition: uimadiosel.h:25
uiMadIOSelDlg::seisSubSel
uiSeisSubSel * seisSubSel(Seis::GeomType)
uiMadIOSelDlg::idxsu_
int idxsu_
Definition: uimadiosel.h:77
uiMadIOSel::isinp_
bool isinp_
Definition: uimadiosel.h:37
uiMadIOSel::getSummary
virtual BufferString getSummary() const
madprocflow.h
uiSeis3DSubSel
Definition: uiseissubsel.h:79
uiMadIOSelDlg::isNone
bool isNone() const
uiMadIOSelDlg::mODTextTranslationClass
mODTextTranslationClass(uiMadIOSelDlg)
uiMadIOSelDlg::ioType
ODMad::ProcFlow::IOType ioType() const
Definition: uimadiosel.h:58
uiMadIOSel::uiMadIOSel
uiMadIOSel(uiParent *, bool isinp)
ODMad::ProcFlow::IOType
IOType
Definition: madprocflow.h:25
uiMadIOSelDlg::sconsfld_
uiCheckBox * sconsfld_
Definition: uimadiosel.h:87
uiCheckBox
Definition: uibutton.h:167
IOPar::merge
void merge(const IOPar &)
merge entries using the set() command
uiMadIOSelDlg::seis3dfld_
uiSeisSel * seis3dfld_
Definition: uimadiosel.h:82
uiMadIOSelDlg::isinp_
bool isinp_
Definition: uimadiosel.h:79
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
ODMad::ProcFlow::Madagascar
@ Madagascar
Definition: madprocflow.h:25
uiMadIOSelDlg::getInp
bool getInp()
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiMadIOSelDlg::fillPar
bool fillPar(IOPar &)
uiMadIOSel::usePar
void usePar(const IOPar &)
uiMadIOSelDlg::madfld_
uiFileInput * madfld_
Definition: uimadiosel.h:86
uiMadIOSel::selectionMade
Notifier< uiMadIOSel > selectionMade
Definition: uimadiosel.h:34
ODMad::ProcFlow::None
@ None
Definition: madprocflow.h:25
uiMadIOSelDlg::isMad
bool isMad() const
uiMadIOSelDlg::subsel2dpsfld_
uiSeis2DSubSel * subsel2dpsfld_
Definition: uimadiosel.h:91
uiMadIOSelDlg::subsel2dfld_
uiSeis2DSubSel * subsel2dfld_
Definition: uimadiosel.h:90
uiFileInput
A file-name input.
Definition: uifileinput.h:34
mClass
#define mClass(module)
Definition: commondefs.h:181
uiMadIOSelDlg::initWin
void initWin(CallBacker *)
uiMadIOSelDlg::seisps2dfld_
uiSeisSel * seisps2dfld_
Definition: uimadiosel.h:85
Notifier< uiMadIOSel >
uiMadIOSelDlg::selChg
void selChg(CallBacker *)
uiMadIOSelDlg::typfld_
uiGenInput * typfld_
Definition: uimadiosel.h:81
uidialog.h
uiMadIOSelDlg::isInp
bool isInp() const
Definition: uimadiosel.h:52
uiMadIOSel::mODTextTranslationClass
mODTextTranslationClass(uiMadIOSel)
uicompoundparsel.h
uiSeisSel
Definition: uiseissel.h:26
uiSeisSubSel
Definition: uiseissubsel.h:39
uiMadIOSelDlg::seis2dfld_
uiSeisSel * seis2dfld_
Definition: uimadiosel.h:83
uiMadIOSel::doDlg
void doDlg(CallBacker *)
uiMadIOSelDlg::geomType
Seis::GeomType geomType() const
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiSeis2DSubSel
Definition: uiseissubsel.h:91
uiMadIOSelDlg::idxps3d_
int idxps3d_
Definition: uimadiosel.h:76
uiMadIOSelDlg::sSelFileErrMsg
uiString sSelFileErrMsg(const uiString &)
uiMadIOSel::fillPar
bool fillPar(IOPar &iop) const
Definition: uimadiosel.h:31
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiMadIOSelDlg::uiMadIOSelDlg
uiMadIOSelDlg(uiParent *, IOPar &, bool isinp)
uiMadIOSelDlg::acceptOK
bool acceptOK(CallBacker *)
confirm accept
seistype.h
iopar.h
uiParent
Definition: uiparent.h:26
uiMadIOSelDlg::iop_
IOPar & iop_
Definition: uimadiosel.h:78
uiMadIOSelDlg::usePar
void usePar(const IOPar &)
uiMadIOSelDlg::isOD
bool isOD() const
Definition: uimadiosel.h:57
uiMadIOSel::iop_
IOPar iop_
Definition: uimadiosel.h:38
Seis::GeomType
GeomType
Definition: seistype.h:32
uiMadIOSelDlg::isSU
bool isSU() const
uiDialog
Definition: uidialog.h:42
uiMadIOSelDlg::subsel3dfld_
uiSeis3DSubSel * subsel3dfld_
Definition: uimadiosel.h:89
uiMadIOSelDlg
Definition: uimadiosel.h:47
uiMadIOSelDlg::sconsCB
void sconsCB(CallBacker *)
uiMadIOSelDlg::typSel
void typSel(CallBacker *)
uiCompoundParSel
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:31
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
uiMadIOSelDlg::seisSel
uiSeisSel * seisSel(Seis::GeomType)

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