Engauge Digitizer 2
Loading...
Searching...
No Matches
FileCmdClose.cpp
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#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
16const QString CMD_DESCRIPTION ("Close File");
17
20{
21 LOG4CPP_INFO_S ((*mainCat)) << "FileCmdClose::FileCmdClose";
22}
23
27
29{
30 LOG4CPP_INFO_S ((*mainCat)) << "FileCmdClose::redo";
31
32 mainWindow.cmdFileClose ();
33}
const int INNER_RADIUS_MIN
const QString CMD_DESCRIPTION("Close File")
log4cpp::Category * mainCat
Definition Logger.cpp:14
Base class for 'file commands' that are used specifically for regression testing of file import/open/...
FileCmdClose(QXmlStreamReader &reader)
Constructor for parsing file script xml.
virtual ~FileCmdClose()
virtual void redo(MainWindow &mainWindow)
Apply this command, through MainWindow.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:92
void cmdFileClose()
Close file. This is called from a file script command.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18