Go to the documentation of this file.
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);
47 void CmdMediator::connectSignals (
MainWindow &mainWindow)
49 connect (
this, SIGNAL (cleanChanged (
bool)), &mainWindow, SLOT (slotCleanChanged (
bool)));
106 return m_document.
pixmap ();
118 for (
int i = 0; i < index(); i++) {
120 const CmdAbstract *cmd = dynamic_cast<const CmdAbstract *>(command(i));
124 writer.writeEndElement();
QPixmap pixmap() const
Return the image that is being digitized.
const Curve & curveAxes() const
Get method for axis curve.
const CoordSystem & coordSystem() const
Currently active CoordSystem.
void setSelectedCurveName(const QString &selectedCurveName)
Save curve name that is selected for the current coordinate system, for the next time the coordinate ...
void iterateThroughCurvePointsAxes(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for the axes curve.
int curvesGraphsNumPoints(const QString &curveName) const
See CurvesGraphs::curvesGraphsNumPoints.
DocumentAxesPointsRequired
Storage of one imported image and the data attached to that image.
Container for one set of digitized Points.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
#define LOG4CPP_INFO_S(logger)
virtual void saveXml(QXmlStreamWriter &writer) const =0
Save commands as xml for later uploading.
void setDocumentAxesPointsRequired(DocumentAxesPointsRequired documentAxesPointsRequired)
Set the number of axes points required.
log4cpp::Category * mainCat
void iterateThroughCurvesPointsGraphs(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for all the graphs curves.
QString selectedCurveName() const
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
QStringList curvesGraphsNames() const
See CurvesGraphs::curvesGraphsNames.
const QString DOCUMENT_SERIALIZE_CMD_MEDIATOR
QString reasonForUnsuccessfulRead() const
Return an informative text message explaining why startup loading failed. Applies if successfulRead r...
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Storage of data belonging to one coordinate system.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
bool successfulRead() const
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will ex...