OpendTect-6_4  6.4
uisurvinfoed.h
Go to the documentation of this file.
1 #ifndef uisurvinfoed_h
2 #define uisurvinfoed_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: June 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uidialog.h"
17 #include "uisip.h"
18 #include "bufstringset.h"
19 #include "ranges.h"
20 
21 class SurveyInfo;
22 class uiCheckBox;
23 class uiComboBox;
24 class uiGenInput;
25 class uiGroup;
26 class uiLabel;
27 class uiPushButton;
28 class uiSurvInfoProvider;
29 namespace Coords { class CoordSystem; }
30 
37 
38 public:
39 
41  bool isnew=false);
42  bool isOK() const { return topgrp_; }
45 
46  bool dirnmChanged() const { return dirnamechanged; }
47  const char* dirName() const;
48 
49  static ObjectSet<uiSurvInfoProvider>& survInfoProvs();
50  static int addInfoProvider(uiSurvInfoProvider*);
51  static bool copySurv(const char* frompath,const char* fromdirnm,
52  const char* topath,const char* todirnm);
53  static bool renameSurv(const char* path,const char* fromdirnm,
54  const char* todirnm);
55 
57 
58 protected:
59 
64  bool isnew_;
68 
70 
78 
103 
104  bool xyInFeet() const;
106  void mkSIPFld(uiObject*);
107  void mkRangeGrp();
108  void mkCoordGrp();
109  void mkTransfGrp();
110  void setValues();
111  void updStatusBar(const char*);
112  bool setRanges();
113  bool setSurvName();
114  bool setCoords();
115  bool setRelation();
116  bool doApply();
117 
118  bool acceptOK(CallBacker*);
119  bool rejectOK(CallBacker*);
120  void updatePar(CallBacker*);
121  void sipCB(CallBacker*);
122  void doFinalise(CallBacker*);
123  void setInl1Fld(CallBacker*);
124  void rangeChg(CallBacker*);
125  void depthDisplayUnitSel(CallBacker*);
126  void updZUnit(CallBacker*);
127  void chgSetMode(CallBacker*);
128  void pathbutPush(CallBacker*);
129  void appButPushed(CallBacker*);
130  void coordSystemCB(CallBacker*);
131 
132  static uiString getSRDString(bool infeet);
133  static uiString getCoordString(bool infeet);
134 
135  friend class uiSurvey;
136 
137 };
138 
139 
141 {
142 public:
143  uiCopySurveySIP();
144 
145  virtual const char* usrText() const { return "Copy from other survey"; }
146  virtual uiDialog* dialog(uiParent*);
147  virtual bool getInfo(uiDialog*,TrcKeyZSampling&,Coord crd[3]);
148  virtual const char* iconName() const { return "copyobj"; }
149 
150  virtual TDInfo tdInfo() const { return tdinf_; }
151  virtual bool xyInFeet() const { return inft_; }
152 
153  IOPar* getCoordSystemPars() const;
154 
155 protected:
156 
157  TDInfo tdinf_;
158  bool inft_;
160 
161 public:
162  //Do NOT use, for ABI compatibility only
163  void reset();
164 
165 };
166 
167 
170 public:
171  uiSurveyFileSIP();
172 
173  virtual const char* usrText() const;
174  virtual uiDialog* dialog(uiParent*);
175  virtual bool getInfo(uiDialog*,TrcKeyZSampling&,Coord crd[3]);
176  virtual const char* iconName() const { return "ascii"; }
177 
178  virtual TDInfo tdInfo() const { return tdinf_; }
179  virtual bool xyInFeet() const { return inft_; }
180 
181  virtual IOPar* getCoordSystemPars() const;
182 
183 protected:
184 
185  TDInfo tdinf_;
186  bool inft_;
189 
190 };
191 
192 
193 #endif
Notifier< uiSurveyInfoEditor > survParChanged
Definition: uisurvinfoed.h:56
uiGenInput * y0fld_
Definition: uisurvinfoed.h:82
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
IOPar * impiop_
Definition: uisurvinfoed.h:65
uiGenInput * crlfld_
Definition: uisurvinfoed.h:74
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiComboBox * zunitfld_
Definition: uisurvinfoed.h:76
uiGenInput * zfld_
Definition: uisurvinfoed.h:75
The main survey selection dialog.
Definition: uisurvey.h:32
is the base class for all buttons.
Definition: uibutton.h:83
Definition: uisurvinfoed.h:140
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
TDInfo tdinf_
Definition: uisurvinfoed.h:185
RefMan< Coords::CoordSystem > coordsystem_
Definition: uisurvinfoed.h:188
ObjectSet< uiSurvInfoProvider > sips_
Definition: uisurvinfoed.h:66
virtual bool xyInFeet() const
Definition: uisurvinfoed.h:151
uiGenInput * ic1fld_
Definition: uisurvinfoed.h:86
uiGenInput * xinlfld_
Definition: uisurvinfoed.h:80
uiGroup * rangegrp_
Definition: uisurvinfoed.h:95
uiGenInput * xcrlfld_
Definition: uisurvinfoed.h:81
uiGenInput * pathfld_
Definition: uisurvinfoed.h:72
RefMan< Coords::CoordSystem > coordsystem_
Definition: uisurvinfoed.h:69
BufferStringSet survlist_
Definition: uisurvinfoed.h:159
bool dirnamechanged
Definition: uisurvinfoed.h:105
uiGenInput * refdatumfld_
Definition: uisurvinfoed.h:101
The base class for most UI elements.
Definition: uiobj.h:38
uiGenInput * yinlfld_
Definition: uisurvinfoed.h:83
Definition: uisurvinfoed.h:168
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
Definition: uiparent.h:26
Holds survey general information.
Definition: survinfo.h:45
A cartesian coordinate in 2D space.
Definition: coord.h:25
uiLabel * xyunitlbl_
Definition: uisurvinfoed.h:102
BufferString surveynm_
Definition: uisurvinfoed.h:187
Set of BufferString objects.
Definition: bufstringset.h:28
uiGenInput * survnmfld_
Definition: uisurvinfoed.h:71
virtual TDInfo tdInfo() const
Definition: uisurvinfoed.h:178
virtual const char * iconName() const
Definition: uisurvinfoed.h:148
Definition: uidialog.h:42
uiGenInput * xy2fld_
Definition: uisurvinfoed.h:90
BufferString orgdirname_
Definition: uisurvinfoed.h:61
virtual TDInfo tdInfo() const
Definition: uisurvinfoed.h:150
const BufferString rootdir_
Definition: uisurvinfoed.h:63
bool inft_
Definition: uisurvinfoed.h:186
Definition: uisip.h:51
Definition: coordsystem.h:22
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiPushButton * coordsysfld_
Definition: uisurvinfoed.h:98
The survey info editor.
Definition: uisurvinfoed.h:35
uiGenInput * depthdispfld_
Definition: uisurvinfoed.h:100
bool inft_
Definition: uisurvinfoed.h:158
uiSurvInfoProvider * lastsip_
Definition: uisurvinfoed.h:67
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
General Input Element.
Definition: uigeninput.h:58
uiComboBox * pol2dfld_
Definition: uisurvinfoed.h:77
bool isnew_
Definition: uisurvinfoed.h:64
uiGenInput * ic2fld_
Definition: uisurvinfoed.h:87
uiComboBox * sipfld_
Definition: uisurvinfoed.h:96
uiGenInput * xy1fld_
Definition: uisurvinfoed.h:89
bool dirnmChanged() const
Definition: uisurvinfoed.h:46
uiGroup * crdgrp_
Definition: uisurvinfoed.h:93
uiGenInput * ycrlfld_
Definition: uisurvinfoed.h:84
uiGenInput * ic0fld_
Definition: uisurvinfoed.h:85
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiGenInput * xy0fld_
Definition: uisurvinfoed.h:88
virtual const char * iconName() const
Definition: uisurvinfoed.h:176
Definition: uilabel.h:24
SurveyInfo & si_
Definition: uisurvinfoed.h:60
uiGenInput * coordset
Definition: uisurvinfoed.h:91
uiGroup * topgrp_
Definition: uisurvinfoed.h:92
uiGroup * trgrp_
Definition: uisurvinfoed.h:94
uiCheckBox * overrulefld_
Definition: uisurvinfoed.h:97
virtual const char * usrText() const
Definition: uisurvinfoed.h:145
uiGenInput * inlfld_
Definition: uisurvinfoed.h:73
BufferString orgstorepath_
Definition: uisurvinfoed.h:62
Definition: uibutton.h:134
virtual bool xyInFeet() const
Definition: uisurvinfoed.h:179
uiGenInput * x0fld_
Definition: uisurvinfoed.h:79
TDInfo tdinf_
Definition: uisurvinfoed.h:157
uiCheckBox * xyinftfld_
Definition: uisurvinfoed.h:99
bool isOK() const
Must be checked before &#39;go&#39;.
Definition: uisurvinfoed.h:42

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