Engauge Digitizer  2
FileCmdScript.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef FILE_CMD_SCRIPT_H
8 #define FILE_CMD_SCRIPT_H
9 
10 #include <QStack>
11 
12 class FileCmdAbstract;
13 class MainWindow;
14 
15 typedef QStack<FileCmdAbstract*> FileCmdStack;
16 
21 {
22  public:
24  FileCmdScript(const QString &fileCmdScriptFile);
25  ~FileCmdScript();
26 
28  bool canRedo() const;
29 
31  void redo(MainWindow &mainWindow);
32 
33  private:
34  FileCmdScript();
35 
36  FileCmdStack m_fileCmdStack;
37 };
38 
39 #endif // FILE_CMD_SCRIPT_H
bool canRedo() const
Returns true if there is at least one command on the stack.
void redo(MainWindow &mainWindow)
Apply the next command. Requires non-empty stack.
Base class for &#39;file commands&#39; that are used specifically for regression testing of file import/open/...
File that manages a command stack for regression testing of file import/open/export/close.
Definition: FileCmdScript.h:20
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:89