Engauge Digitizer 2
Loading...
Searching...
No Matches
FileCmdScript.h
Go to the documentation of this file.
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
12class FileCmdAbstract;
13class MainWindow;
14
15typedef QStack<FileCmdAbstract*> FileCmdStack;
16
21{
22 public:
24 FileCmdScript(const QString &fileCmdScriptFile);
26
28 bool canRedo() const;
29
31 void redo(MainWindow &mainWindow);
32
33 private:
35
36 FileCmdStack m_fileCmdStack;
37};
38
39#endif // FILE_CMD_SCRIPT_H
QStack< FileCmdAbstract * > FileCmdStack
Base class for 'file commands' that are used specifically for regression testing of file import/open/...
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.
FileCmdScript(const QString &fileCmdScriptFile)
Single constructor.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95