OpendTect-6_4  6.4
uisurveyselect.h
Go to the documentation of this file.
1 #ifndef uisurveyselect_h
2 #define uisurveyselect_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Ranojay Sen
9  Date: Dec 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uidialog.h"
17 #include "uiiosel.h"
18 
19 class uiGenInput;
20 class uiListBox;
21 class uiFileInput;
22 
25 public:
26  uiSurveySelectDlg(uiParent*,const char* survnm=0,
27  const char* dataroot=0,
28  bool forread=true,
29  bool needvalidrootdir=true);
31 
32  void setDataRoot(const char*);
33  const char* getDataRoot() const;
34  void setSurveyName(const char*);
35  const char* getSurveyName() const;
36  const BufferString getSurveyPath() const;
37 
38  bool isNewSurvey() const;
39 
40 protected:
41 
42  void rootSelCB(CallBacker*);
43  void surveySelCB(CallBacker*);
44  void fillSurveyList();
45  bool continueAfterErrMsg();
46 
50 
51  bool forread_;
53 };
54 
55 
58 public:
59  uiSurveySelect(uiParent*,bool forread,
60  bool needvalidrootdir,
61  const char* label=0);
62  ~uiSurveySelect();
63 
64  bool isNewSurvey() const { return isnewsurvey_; }
65  bool getFullSurveyPath(BufferString&) const;
66  void setSurveyPath(const char*);
67 
68 protected:
69 
70  void selectCB(CallBacker*);
74  bool forread_;
76 };
77 
78 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
A file-name input.
Definition: uifileinput.h:34
Definition: uiparent.h:26
bool forread_
Definition: uisurveyselect.h:51
uiGenInput * surveyfld_
Definition: uisurveyselect.h:49
Definition: uidialog.h:42
Definition: uisurveyselect.h:23
List Box.
Definition: uilistbox.h:75
bool needvalidrootdir_
Definition: uisurveyselect.h:75
uiListBox * surveylistfld_
Definition: uisurveyselect.h:48
Definition: uisurveyselect.h:56
General Input Element.
Definition: uigeninput.h:58
uiFileInput * datarootfld_
Definition: uisurveyselect.h:47
bool forread_
Definition: uisurveyselect.h:74
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString surveyname_
Definition: uisurveyselect.h:73
BufferString dataroot_
Definition: uisurveyselect.h:72
bool isnewsurvey_
Definition: uisurveyselect.h:71
bool isNewSurvey() const
Definition: uisurveyselect.h:64
bool needvalidrootdir_
Definition: uisurveyselect.h:52
UI element for selection of data objects.
Definition: uiiosel.h:30

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