19#include <QUndoCommand>
20#include <QXmlStreamReader>
21#include <QXmlStreamWriter>
26 const QImage &image) :
29 LOG4CPP_INFO_S ((*
mainCat)) <<
"CmdMediator::CmdMediator image=" << image.width() <<
"x" << image.height ();
31 connectSignals(mainWindow);
35 const QString &fileName) :
40 connectSignals(mainWindow);
47void CmdMediator::connectSignals (
MainWindow &mainWindow)
49 connect (
this, SIGNAL (cleanChanged (
bool)), &mainWindow, SLOT (slotCleanChanged (
bool)));
54 return m_document.coordSystem();
59 return m_document.curveAxes ();
64 return m_document.curvesGraphsNames();
69 return m_document.curvesGraphsNumPoints(curveName);
89 m_document.iterateThroughCurvePointsAxes (ftorWithCallback);
94 m_document.iterateThroughCurvePointsAxes (ftorWithCallback);
99 return m_document.iterateThroughCurvesPointsGraphs (ftorWithCallback);
106 return m_document.pixmap ();
111 return m_document.reasonForUnsuccessfulRead ();
118 for (
int i = 0; i < index(); i++) {
124 writer.writeEndElement();
129 return m_document.selectedCurveName ();
134 m_document.setDocumentAxesPointsRequired (documentAxesPointsRequired);
144 return m_document.successfulRead();
DocumentAxesPointsRequired
const QString DOCUMENT_SERIALIZE_CMD_MEDIATOR
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
log4cpp::Category * mainCat
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
virtual void saveXml(QXmlStreamWriter &writer) const =0
Save commands as xml for later uploading.
Storage of data belonging to one coordinate system.
Container for one set of digitized Points.
Storage of one imported image and the data attached to that image.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
#define LOG4CPP_INFO_S(logger)