15 #include "uicmddrivermod.h" 35 class IdentifierManager;
36 class ExprInterpreter;
37 class WildcardManager;
41 if ( drv_.logStream().isOK() ) drv_.logStream() 44 mLogStrm << "[" << Time::getTimeString() << "]\t" 46 #define mParseMsgStrm(tag) \ 47 if ( !drv_.streamBlocked(true,tag) ) \ 48 mLogStrm << "\t" << (tag) << " [parse]: " 50 #define mParseStrm(warn) mParseMsgStrm( warn ? "WARN" : "ERROR" ) 51 #define mParseErrStrm mParseStrm( false ) 52 #define mParseWarnStrm mParseStrm( true ) 54 #define mWinMsgStrm(tag) \ 55 if ( !drv_.streamBlocked(false,tag) ) \ 56 mLogStrm << "\t" << (tag) << " [" << drv_.curWinTitle() << "]:\n\t\t" 58 #define mWinStrm(warn) mWinMsgStrm( warn ? "WARN " : "ERROR" ) 59 #define mWinErrStrm mWinStrm( false ) 60 #define mWinWarnStrm mWinStrm( true ) 81 : line_(line), gotoidx_(-1)
114 bool getActionsFromFile(
const char*);
115 bool insertActionsFromFile(
const char*);
119 void pause(
bool yn=
true);
125 static const char* defaultLogFilename();
143 void setSleep(
float time,
145 void setWait(
float time,
148 static bool nowExecuting();
164 void exitApplCB( CallBacker* );
168 bool doLocalAction(
uiObject* localenv,
const char* actstr);
169 bool tryAction(
const char* identname,
const char* actstr);
171 void prepareForResume();
172 void prepareForAbort();
179 void finishActivate();
180 void waitForClearance();
184 bool didInterceptSucceed(
const char* objnm);
185 const MenuInfo& interceptedMenuInfo()
const;
214 void updateLogStrm();
222 bool insertProcedure(
int defidx);
224 void moveActionIdx(
int nrlines);
229 void jump(
int extralines=0);
232 void mkThread(CallBacker*);
233 bool doAction(
const char*);
251 bool verifyWinAssert(
const char* newwinstr=0);
255 bool verifyWinState(
const char* newwinstr=0,
263 static const char* locateCmdMark(
const char* actstr);
273 bool activityStopped(
bool checkprocessing=
true,
274 bool checktimers=
true);
276 bool waitForTimers();
277 bool waitForProcessing();
281 void storeModalStatus();
288 void activateDone(CallBacker* activator);
289 void timerStartsCB(CallBacker* timer);
290 void timerStoppedCB(CallBacker* timer);
291 void timerShootsCB(CallBacker* timer);
292 void timerShotCB(CallBacker* timer);
294 void forceQtToCatchUp();
308 void dynamicMenuInterceptor(CallBacker*);
309 bool dispatchDynamicMenu(
uiMenu*);
311 void interactCB(CallBacker*);
312 void executeFinishedCB(CallBacker*);
313 void killTaskRunnerCB(CallBacker*);
326 const char* curWinTitle(
int aliasnr=0)
const;
328 bool streamBlocked(
bool parse,
const char* tag);
#define mExpClass(module)
Definition: commondefs.h:160
int wildmodalclosedstamp_
Definition: cmddriver.h:278
User interface main window.
Definition: uimainwin.h:36
ObjectSet< Action > actions_
Definition: cmddriver.h:218
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool openQDlg() const
Definition: cmddriver.h:270
od_ostream & logStream()
Definition: cmddriver.h:325
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
float pendingsleep_
Definition: cmddriver.h:242
const char * str() const
Definition: odstring.h:48
Threads::Thread * execthr_
Definition: cmddriver.h:194
bool goingToChangeUiObj() const
Definition: cmddriver.h:240
BufferString winstatewin_
Definition: cmddriver.h:253
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
FilePath & outfp_
Definition: cmddriver.h:196
float regularsleep_
Definition: cmddriver.h:243
Command Drive
Definition: canvascommands.h:22
const char * outputDir() const
Definition: cmddriver.h:122
uiMainWin::ActModalTyp activetype_
Definition: cmddriver.h:69
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
const char * errMsg() const
Definition: cmddriver.h:120
bool winassertsafe_
Definition: cmddriver.h:250
void abort()
Definition: cmddriver.h:118
int gotoidx_
Definition: cmddriver.h:85
RecoveryTag
Definition: cmddriver.h:150
int tryoutval_
Definition: cmddriver.h:208
BufferString winassertion_
Definition: cmddriver.h:248
bool isCaseSensitive() const
Definition: cmddriver.h:139
ExprInterpreter & exprInterpreter()
Definition: cmddriver.h:211
ObjectSet< const CallBacker > timeoutlist_
Definition: cmddriver.h:320
Definition: command.h:186
Definition: searchkey.h:57
WinStateType winstatetype_
Definition: cmddriver.h:254
bool curactjumped_
Definition: cmddriver.h:230
const uiObject * localSearchEnv() const
Definition: cmddriver.h:166
InterceptStatus
Definition: cmddriver.h:299
Definition: cmddriver.h:100
int lastmove_
Definition: cmddriver.h:226
bool abort_
Definition: cmddriver.h:174
od_ostream & logstream_
Definition: cmddriver.h:195
Definition: cmddriver.h:100
OnErrorTag onerror_
Definition: cmddriver.h:258
Threads::Lock cmddrvlock_
Definition: cmddriver.h:272
ActModalTyp
Definition: uimainwin.h:154
Action(const char *line)
Definition: cmddriver.h:80
Definition: cmddriver.h:133
od
Definition: strattransl.h:17
ExprInterpreter * eip_
Definition: cmddriver.h:210
bool casesensitive_
Definition: cmddriver.h:235
The base class for most UI elements.
Definition: uiobj.h:38
int lastActionIdxMove() const
Definition: cmddriver.h:225
Set of BufferString objects.
Definition: bufstringset.h:28
IdentifierManager * idm_
Definition: cmddriver.h:201
int prevnrproc_
Definition: cmddriver.h:286
const InteractSpec * interactspec_
Definition: cmddriver.h:315
Definition: interpretexpr.h:24
void setLogMode(LogModeTag tag)
Definition: cmddriver.h:131
LogModeTag
Definition: cmddriver.h:130
bool pause_
Definition: cmddriver.h:175
Definition: callback.h:254
SeparString with backquotes as separators, use in most ascii files.
Definition: separstr.h:119
void setCaseSensitive(bool yn)
Definition: cmddriver.h:136
bool uiobjchange_
Definition: cmddriver.h:239
const uiMainWin * topWin(bool ignorecmddriverwins=false) const
float regularwait_
Definition: cmddriver.h:246
BufferString logfnm_
Definition: cmddriver.h:191
WinStateType
Definition: cmddriver.h:100
OnErrorTag
Definition: cmddriver.h:133
Is the base class for all threads. Start it by creating it and give it the function or CallBack to ex...
Definition: thread.h:283
Definition: cmddriver.h:299
void setRecoveryStep(RecoveryTag rt)
Definition: cmddriver.h:261
void setOutputDir(const char *od)
Definition: cmddriver.h:123
Definition: cmddriverbasics.h:197
Definition: cmddriver.h:130
ObjectSet< const char > tryoutstack_
Definition: cmddriver.h:207
Definition: cmddriver.h:100
uiObject * localsearchenv_
Definition: cmddriver.h:236
const uiMainWin * applWin() const
Definition: cmddriver.h:162
int insertidx_
Definition: cmddriver.h:86
ObjectSet< const CallBacker > timerlist_
Definition: cmddriver.h:319
WindowStack winstack_
Definition: cmddriver.h:266
BufferString line_
Definition: cmddriver.h:84
bool resume_
Definition: cmddriver.h:176
void skipGreyOuts(bool yn=true)
Definition: cmddriver.h:137
InterceptStatus interceptstatus_
Definition: cmddriver.h:301
Holds data to use and close an iostream.
Definition: strmdata.h:28
BufferString errmsg_
Definition: cmddriver.h:193
float pendingwait_
Definition: cmddriver.h:245
uiMainWin * activewin_
Definition: cmddriver.h:70
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
BufferString outdir_
Definition: cmddriver.h:190
Definition: identifierman.h:23
IdentifierManager & identifierMan()
Definition: cmddriver.h:202
int curActionIdx() const
Definition: cmddriver.h:221
BufferStringSet signatures_
Definition: cmddriver.h:73
File pathname tools.
Definition: filepath.h:34
const uiMainWin * curWin() const
Definition: cmddriver.h:267
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
RecoveryTag recoverystep_
Definition: cmddriver.h:260
int nrmodalwins_
Definition: cmddriver.h:72
bool openqdialog_
Definition: cmddriver.h:269
Definition: uitaskrunner.h:26
Notifier< CmdDriver > executeFinished
Definition: cmddriver.h:156
BufferString cmdfnm_
Definition: cmddriver.h:192
bool greyOutsSkipped() const
Definition: cmddriver.h:141
BufferString errmsg_
Definition: horizontracker.h:119
Definition: cmdfunction.h:28
int interceptonoff_
Definition: cmddriver.h:304
LogModeTag logmode_
Definition: cmddriver.h:215
bool skipgreyouts_
Definition: cmddriver.h:238
CmdDriver & drv_
Definition: cmddriver.h:189
WildcardManager & wildcardMan()
Definition: cmddriver.h:199
uiMainWin * applWin()
Definition: cmddriver.h:161
void setOnError(OnErrorTag tag)
Definition: cmddriver.h:134
void setLogFileName(const char *fnm)
Definition: cmddriver.h:127
ObjectSet< const CallBacker > activatorlist_
Definition: cmddriver.h:318
uiMainWin * applwin_
Definition: cmddriver.h:160
OnErrorTag onError() const
Definition: cmddriver.h:140
Notifier< CmdDriver > interactRequest
Definition: cmddriver.h:155
Definition: cmddriverbasics.h:178
Definition: cmddriver.h:77
bool interceptmenu_
Definition: cmddriver.h:305
InterceptMode interceptmode_
Definition: cmddriver.h:303
ModalStatus prevmodalstat_
Definition: cmddriver.h:285
uiTaskRunner * uitaskrunner_
Definition: cmddriver.h:71
Definition: cmddriver.h:63
MenuInfo interceptmenuinfo_
Definition: cmddriver.h:306
int actionidx_
Definition: cmddriver.h:219
FileMultiString interceptmenupath_
Definition: cmddriver.h:302
const char * logFileName() const
Definition: cmddriver.h:126
WildcardManager * wcm_
Definition: cmddriver.h:198
BufferStringSet wildmodalsignatures_
Definition: cmddriver.h:282
Definition: cmddriver.h:100
bool winassertcs_
Definition: cmddriver.h:249
void clearLog()
Definition: cmddriver.h:128
InterceptMode
Definition: cmddriver.h:153
Definition: cmddriver.h:103
ModalStatus curmodalstat_
Definition: cmddriver.h:284
Definition: cmddriver.h:100