Engauge Digitizer  2
FileCmdClose.cpp
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 #include "EngaugeAssert.h"
8 #include "FileCmdClose.h"
9 #include "FileCmdSerialize.h"
10 #include "Logger.h"
11 #include "MainWindow.h"
12 #include <QTextStream>
13 #include "QtToString.h"
14 #include <QXmlStreamReader>
15 
16 const QString CMD_DESCRIPTION ("Close File");
17 
18 FileCmdClose::FileCmdClose (QXmlStreamReader & /* reader */) :
19  FileCmdAbstract (CMD_DESCRIPTION)
20 {
21  LOG4CPP_INFO_S ((*mainCat)) << "FileCmdClose::FileCmdClose";
22 }
23 
24 FileCmdClose::~FileCmdClose ()
25 {
26 }
27 
28 void FileCmdClose::redo (MainWindow &mainWindow)
29 {
30  LOG4CPP_INFO_S ((*mainCat)) << "FileCmdClose::redo";
31 
32  mainWindow.cmdFileClose ();
33 }
FileCmdClose(QXmlStreamReader &reader)
Constructor for parsing file script xml.
void cmdFileClose()
Close file. This is called from a file script command.
Definition: MainWindow.cpp:303
virtual void redo(MainWindow &mainWindow)
Apply this command, through MainWindow.
Base class for &#39;file commands&#39; that are used specifically for regression testing of file import/open/...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:89