OpendTect-6_4  6.4
uicmddrivermgr.h
Go to the documentation of this file.
1 #ifndef cmddrivermgr_h
2 #define cmddrivermgr_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Nageswara
8  Date: October 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uicmddrivermod.h"
15 #include "callback.h"
16 #include "bufstringset.h"
17 
18 class uiMainWin;
19 class Timer;
20 
21 
22 namespace CmdDrive
23 {
24 
25 class CmdDriver;
26 class CmdRecorder;
27 class uiCmdDriverDlg;
28 
29 
30 mExpClass(uiCmdDriver) uiCmdDriverMgr : public CallBacker
31 {
32 public:
33  uiCmdDriverMgr(bool fullodmode=false);
34  ~uiCmdDriverMgr();
35 
36  void enableCmdLineParsing(bool yn=true);
37 
38  void addCmdLineScript(const char* fnm);
39  void setLogFileName(const char* fnm);
40 
41  void setDefaultScriptsDir(const char* dirnm);
42  void setDefaultLogDir(const char* dirnm);
43 
44  void showDlgCB(CallBacker*);
45 
46 protected:
47  void commandLineParsing();
48  void initCmdLog(const char* cmdlognm);
49  void handleSettingsAutoExec();
50  void delayedStartCB(CallBacker*);
51  void executeFinishedCB(CallBacker*);
52  void autoStart();
53  void timerCB(CallBacker*);
54  void beforeSurveyChg(CallBacker*);
55  void afterSurveyChg(CallBacker*);
56  void stopRecordingCB(CallBacker*);
57  void runScriptCB(CallBacker*);
58 
59  void closeDlg(CallBacker*);
60  void keyPressedCB(CallBacker*);
61  uiCmdDriverDlg* getCmdDlg();
62 
69 
73 
79 };
80 
81 
82 }; // namespace CmdDrive
83 
84 
85 #endif
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
CmdRecorder * rec_
Definition: uicmddrivermgr.h:65
Command Drive
Definition: canvascommands.h:22
uiMainWin & applwin_
Definition: uicmddrivermgr.h:63
bool settingsautoexec_
Definition: uicmddrivermgr.h:75
uiCmdDriverDlg * cmddlg_
Definition: uicmddrivermgr.h:68
BufferString defaultscriptsdir_
Definition: uicmddrivermgr.h:71
CmdRecorder * historec_
Definition: uicmddrivermgr.h:66
Set of BufferString objects.
Definition: bufstringset.h:28
bool cmdlineparsing_
Definition: uicmddrivermgr.h:70
bool surveyautoexec_
Definition: uicmddrivermgr.h:76
BufferString cmdlogname_
Definition: uicmddrivermgr.h:78
Definition: cmdrecorder.h:71
CmdDriver * drv_
Definition: uicmddrivermgr.h:64
Definition: uicmddriverdlg.h:48
BufferString defaultlogdir_
Definition: uicmddrivermgr.h:72
Timer * tim_
Definition: uicmddrivermgr.h:67
BufferStringSet cmdlinescripts_
Definition: uicmddrivermgr.h:74
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uicmddrivermgr.h:30
int scriptidx_
Definition: uicmddrivermgr.h:77
Timer class.
Definition: timer.h:25
Definition: cmddriver.h:103

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