OpendTect-6_4  6.4
uiodfaulttoolman.h
Go to the documentation of this file.
1 #ifndef uiodfaulttoolman_h
2 #define uiodfaulttoolman_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Jaap Glas
9  Date: December 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 
17 #include "uiodmainmod.h"
18 #include "bufstringset.h"
19 #include "multiid.h"
20 #include "timer.h"
21 #include "uidialog.h"
22 
23 
24 class uiCheckBox;
25 class uiComboBox;
26 class uiGenInput;
27 class uiIOObjSel;
28 class uiLineEdit;
29 class uiODMain;
30 class uiPushButton;
31 class uiSurfaceWrite;
32 class uiToolBar;
33 class uiToolButton;
34 class uiColorInput;
35 
36 
37 namespace EM { class FaultStickSet; }
38 namespace visSurvey { class FaultDisplay;
39  class FaultStickSetDisplay; }
40 
41 
44 public:
45 
46  enum ColorMode { Inherit=0, Random, SerialUserDef,
47  Current, ExistsUserDef,
48  SingleUserDef };
50  { mODTextTranslationClass(Setup);
51  public: Setup()
52  : displayifnot_( true )
53  , saveifdisplayed_( true )
54  , colormode_( Inherit )
55  {}
56 
57  mDefSetupMemb(bool,displayifnot)
58  mDefSetupMemb(bool,saveifdisplayed)
59  mDefSetupMemb(ColorMode,colormode)
60  };
61 
63 
64  bool displayAfterwards() const;
65  bool saveAfterwards() const;
66  int colorMode() const;
67 
68  void setOutputDisplayed(bool);
69  void setColorMode(int);
70 
72 
73 protected:
74 
75  void displayCB(CallBacker*);
76  void saveCB(CallBacker*);
77  void colorModeChg(CallBacker*);
78 
84 
87 };
88 
89 
92 public:
95 
96  uiToolBar* getToolBar();
97 
98 protected:
99  void finaliseDoneCB( CallBacker* );
100 
101  void displayModeChg(CallBacker*);
102  void treeItemSelCB(CallBacker*);
103  void treeItemDeselCB(CallBacker*);
104  void addRemoveEMObjCB(CallBacker*);
105  void addRemoveVisObjCB(CallBacker*);
106  void deselTimerCB(CallBacker*);
107  void surveyChg(CallBacker*);
108 
109  void enableToolbar(bool yn);
110  void clearCurDisplayObj();
111 
112  void updateToolbarCB(CallBacker*);
113  void editSelectToggleCB(CallBacker*);
114  void outputTypeChg(CallBacker*);
115  void outputActionChg(CallBacker*);
116  void stickRemovalCB(CallBacker*);
117  void undoCB(CallBacker*);
118  void redoCB(CallBacker*);
119  void keyPressedCB(CallBacker*);
120  void keyReleasedCB(CallBacker*);
121 
122  void outputEditTextChg(CallBacker*);
123  void outputComboSelChg(CallBacker*);
124  void editReadyTimerCB(CallBacker*);
125 
126  void processOutputName();
127  bool isOutputNameUsed(uiSurfaceWrite* =0) const;
128  void setOutputName(const char*);
129  void setAuxSurfaceWrite(const char*);
130 
131  void selectOutputCB(CallBacker*);
132  void outputSelectedCB(CallBacker*);
133 
134  void colorPressedCB(CallBacker*);
135  void outputColorChg(CallBacker*);
136  void colorModeChg(CallBacker*);
137  void updateColorMode();
138 
139  void settingsToggleCB(CallBacker*);
140  void settingsClosedCB(CallBacker*);
141  void showSettings(bool yn);
142 
143  void transferSticksCB(CallBacker*);
144  void displayUpdate();
145  void afterTransferUpdate();
146 
147  bool isOutputDisplayed(uiSurfaceWrite* =0) const;
148  bool isInSerialMode() const;
149  bool isInCreateMode() const;
150 
151  bool displayAfterwards() const;
152  bool saveAfterwards() const;
153  bool inheritColor() const;
154  bool randomColor() const;
155  bool currentColor() const;
156 
157  BufferStringSet& getOutputItems();
158  void updateOutputItems(bool clearcuritem);
159  void publishOutputItems();
160 
161  void flashOutputName(bool error,
162  const char* newname=0);
163  void flashOutputTimerCB(CallBacker*);
164  void flashReset();
165 
166  bool areSticksAccessible() const;
167  void enableStickAccess(bool yn);
168 
169  uiIOObjSel* getObjSel();
170  const uiIOObjSel* getObjSel() const;
171 
175 
177 
180 
188 
192 
196 
199 
202  int curemid_;
203 
207 
210 
215 
222 
223  static uiString sKeyCopySelection();
224  static uiString sKeyMoveSelection();
225  static uiString sKeyToFault();
226  static uiString sKeyToFaultStickSet();
227  static uiString sKeyCreateSingleNew();
228  static uiString sKeyCreateNewInSeries();
229  static uiString sKeyMergeWithExisting();
230  static uiString sKeyReplaceExisting();
231 };
232 
233 
234 #endif
Definition: uitoolbar.h:31
uiComboBox * outputactcombo_
Definition: uiodfaulttoolman.h:191
#define mExpClass(module)
Definition: commondefs.h:160
uiComboBox * outputtypecombo_
Definition: uiodfaulttoolman.h:190
int settingsbutidx_
Definition: uiodfaulttoolman.h:183
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Notifier< uiFaultStickTransferDlg > colormodechg
Definition: uiodfaulttoolman.h:71
BufferString usercolorlink_
Definition: uiodfaulttoolman.h:214
int curemid_
Definition: uiodfaulttoolman.h:202
BufferStringSet allfaultitems_
Definition: uiodfaulttoolman.h:218
Setup()
Definition: uiodfaulttoolman.h:51
Definition: uiodfaulttoolman.h:49
bool displayifnot_
Definition: uiodfaulttoolman.h:85
uiToolBar * toolbar_
Definition: uiodfaulttoolman.h:173
int undobutidx_
Definition: uiodfaulttoolman.h:186
ColorMode
Definition: uiodfaulttoolman.h:46
uiToolButton * colorbut_
Definition: uiodfaulttoolman.h:195
BufferStringSet serialfaultitems_
Definition: uiodfaulttoolman.h:217
is the base class for all buttons.
Definition: uibutton.h:83
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
FixedString Random()
Definition: keystrs.h:106
uiGenInput * existscolormodefld_
Definition: uiodfaulttoolman.h:82
Definition: uiodfaulttoolman.h:47
uiComboBox * transfercombo_
Definition: uiodfaulttoolman.h:189
Definition: uiiosurface.h:95
uiFaultStickTransferDlg::Setup settingssetup_
Definition: uiodfaulttoolman.h:176
int redobutidx_
Definition: uiodfaulttoolman.h:187
Combo box.
Definition: uicombobox.h:32
Definition: uistring.h:89
uiGenInput * serialcolormodefld_
Definition: uiodfaulttoolman.h:81
Set of BufferString objects.
Definition: bufstringset.h:28
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
Definition: uidialog.h:42
int removalbutidx_
Definition: uiodfaulttoolman.h:185
Definition: visfaultdisplay.h:55
visSurvey::FaultStickSetDisplay * curfssd_
Definition: uiodfaulttoolman.h:201
bool saveifdisplayed_
Definition: uiodfaulttoolman.h:86
uiODMain & appl_
Definition: uiodfaulttoolman.h:172
Definition: uiodfaulttoolman.h:42
Definition: uiodfaulttoolman.h:46
Timer flashtimer_
Definition: uiodfaulttoolman.h:206
int selbutidx_
Definition: uiodfaulttoolman.h:182
General Input Element.
Definition: uigeninput.h:58
Color flashcolor_
Definition: uiodfaulttoolman.h:209
BufferStringSet singlefaultitems_
Definition: uiodfaulttoolman.h:216
Definition: uiodfaulttoolman.h:90
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
int gobutidx_
Definition: uiodfaulttoolman.h:184
BufferStringSet serialfssitems_
Definition: uiodfaulttoolman.h:220
User Interface (UI) element for selection of IOObjs.
Definition: uiioobjsel.h:38
uiPushButton * outputselbut_
Definition: uiodfaulttoolman.h:194
Color usercolor_
Definition: uiodfaulttoolman.h:213
uiCheckBox * savefld_
Definition: uiodfaulttoolman.h:80
BufferStringSet singlefssitems_
Definition: uiodfaulttoolman.h:219
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiFaultStickTransferDlg * settingsdlg_
Definition: uiodfaulttoolman.h:174
small element for color selection. Has no text label.
Definition: uicolor.h:44
bool tracktbwashidden_
Definition: uiodfaulttoolman.h:178
visSurvey::FaultDisplay * curfltd_
Definition: uiodfaulttoolman.h:200
Timer editreadytimer_
Definition: uiodfaulttoolman.h:205
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
bool selectmode_
Definition: uiodfaulttoolman.h:179
Definition: uitoolbutton.h:22
uiSurfaceWrite * auxfsswrite_
Definition: uiodfaulttoolman.h:198
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Timer deseltimer_
Definition: uiodfaulttoolman.h:204
BufferStringSet allfssitems_
Definition: uiodfaulttoolman.h:221
Definition: uilineedit.h:51
int editbutidx_
Definition: uiodfaulttoolman.h:181
uiCheckBox * displayfld_
Definition: uiodfaulttoolman.h:79
Display class for FaultStickSets.
Definition: visfaultsticksetdisplay.h:45
Timer class.
Definition: timer.h:25
Definition: uibutton.h:134
Color randomcolor_
Definition: uiodfaulttoolman.h:212
uiComboBox * outputnamecombo_
Definition: uiodfaulttoolman.h:193
uiGenInput * singlecolormodefld_
Definition: uiodfaulttoolman.h:83
Color colorbutcolor_
Definition: uiodfaulttoolman.h:211
BufferString flashname_
Definition: uiodfaulttoolman.h:208
uiSurfaceWrite * auxfaultwrite_
Definition: uiodfaulttoolman.h:197

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