Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document Interface.
More...
#include <MainWindow.h>
|
| | MainWindow (const QString &errorReportFile, const QString &fileCmdScriptFile, bool isDropRegression, bool isRegressionTest, bool isGnuplot, bool isReset, bool isExportOnly, bool isExtractImageOnly, const QString &extractImageOnlyExtension, const QStringList &loadStartupFiles, const QStringList &commandLineWithoutLoadStartupFiles, QWidget *parent=nullptr) |
| | Single constructor. More...
|
| |
| | ~MainWindow () |
| |
| void | cmdFileClose () |
| | Close file. This is called from a file script command. More...
|
| |
| void | cmdFileExport (const QString &fileName) |
| | Export file. This is called from a file script command. More...
|
| |
| void | cmdFileImport (const QString &fileName) |
| | Import file. This is called from a file script command. More...
|
| |
| void | cmdFileOpen (const QString &fileName) |
| | Open file. This is called from a file script command. More...
|
| |
| CmdMediator * | cmdMediator () |
| | Accessor for commands to process the Document. More...
|
| |
| virtual bool | eventFilter (QObject *, QEvent *) |
| | Catch secret keypresses. More...
|
| |
| QImage | imageFiltered () const |
| | Background image that has been filtered for the current curve. This asserts if a curve-specific image is not being shown. More...
|
| |
| bool | isGnuplot () const |
| | Get method for gnuplot flag. More...
|
| |
| MainWindowModel | modelMainWindow () const |
| | Get method for main window model. More...
|
| |
| bool | modeMap () const |
| | True if document scale is set using a scale bar, otherwise using axis points. More...
|
| |
| void | resizeEvent (QResizeEvent *event) |
| | Intercept resize event so graphics scene can be appropriately resized when in Fill mode. More...
|
| |
| void | saveErrorReportFileAndExit (const char *comment, const char *file, int line, const char *context) |
| | Save error report and exit. More...
|
| |
| GraphicsScene & | scene () |
| | Scene container for the QImage and QGraphicsItems. More...
|
| |
| BackgroundImage | selectOriginal (BackgroundImage backgroundImage) |
| | Make original background visible, for DigitizeStateColorPicker. More...
|
| |
| QString | selectedGraphCurve () const |
| | Curve name that is currently selected in m_cmbCurve. More...
|
| |
| virtual void | showEvent (QShowEvent *) |
| | Processing performed after gui becomes available. More...
|
| |
| void | showTemporaryMessage (const QString &temporaryMessage) |
| | Show temporary message in status bar. More...
|
| |
| Transformation | transformation () const |
| | Return read-only copy of transformation. More...
|
| |
| bool | transformIsDefined () const |
| | Return true if all three axis points have been defined. More...
|
| |
| void | updateAfterCommand () |
| | See GraphicsScene::updateAfterCommand. More...
|
| |
| void | updateAfterMouseRelease () |
| | Call MainWindow::updateControls (which is private) after the very specific case - a mouse press/release. More...
|
| |
| void | updateCoordSystem (CoordSystemIndex coordSystemIndex) |
| | Select a different CoordSystem. More...
|
| |
| void | updateDigitizeStateIfSoftwareTriggered (DigitizeState digitizeState) |
| | After software-triggered state transition, this method manually triggers the action as if user had clicked on digitize button. More...
|
| |
| void | updateGraphicsLinesToMatchGraphicsPoints () |
| | Update the graphics lines so they follow the graphics points, after a drag, addition, removal, and such. More...
|
| |
| void | updateSettingsAxesChecker (const DocumentModelAxesChecker &modelAxesChecker) |
| | Update with new axes indicator properties. More...
|
| |
| void | updateSettingsColorFilter (const DocumentModelColorFilter &modelColorFilter) |
| | Update with new color filter properties. More...
|
| |
| void | updateSettingsCoords (const DocumentModelCoords &modelCoords) |
| | Update with new coordinate properties. More...
|
| |
| void | updateSettingsCurveList (const CurvesGraphs &curvesGraphs) |
| | Update with new curves. More...
|
| |
| void | updateSettingsCurveStyles (const CurveStyles &modelCurveStyles) |
| | Update with new curve styles. More...
|
| |
| void | updateSettingsDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve) |
| | Update with new curve digitization styles. More...
|
| |
| void | updateSettingsExportFormat (const DocumentModelExportFormat &modelExport) |
| | Update with new export properties. More...
|
| |
| void | updateSettingsGeneral (const DocumentModelGeneral &modelGeneral) |
| | Update with new general properties. More...
|
| |
| void | updateSettingsGridDisplay (const DocumentModelGridDisplay &modelGridDisplay) |
| | Update with new grid display properties. More...
|
| |
| void | updateSettingsGridRemoval (const DocumentModelGridRemoval &modelGridRemoval) |
| | Update with new grid removal properties. More...
|
| |
| void | updateSettingsMainWindow (const MainWindowModel &modelMainWindow) |
| | Update with new main window properties. More...
|
| |
| void | updateSettingsPointMatch (const DocumentModelPointMatch &modelPointMatch) |
| | Update with new point match properties. More...
|
| |
| void | updateSettingsSegments (const DocumentModelSegments &modelSegments) |
| | Update with new segments properties. More...
|
| |
| void | updateViewsOfSettings (const QString &activeCurve) |
| | Update curve-specific view of settings. Private version gets active curve name from DigitizeStateContext. More...
|
| |
| GraphicsView & | view () |
| | View for the QImage and QGraphicsItems, without const. More...
|
| |
| const GraphicsView & | view () const |
| | View for the QImage and QGraphicsItems, without const. More...
|
| |
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document Interface.
Definition at line 90 of file MainWindow.h.
◆ MainWindow()
| MainWindow::MainWindow |
( |
const QString & |
errorReportFile, |
|
|
const QString & |
fileCmdScriptFile, |
|
|
bool |
isDropRegression, |
|
|
bool |
isRegressionTest, |
|
|
bool |
isGnuplot, |
|
|
bool |
isReset, |
|
|
bool |
isExportOnly, |
|
|
bool |
isExtractImageOnly, |
|
|
const QString & |
extractImageOnlyExtension, |
|
|
const QStringList & |
loadStartupFiles, |
|
|
const QStringList & |
commandLineWithoutLoadStartupFiles, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Single constructor.
- Parameters
-
| errorReportFile | Optional error report file to be read at startup. Empty if unused. Incompatible with fileCmdScript |
| fileCmdScriptFile | Optional file command script file to be read at startup. Empty if unused. Incompatible with errorReportFile |
| isDropRegression | True if files loaded at startup are for drag and drop testing |
| isRegressionTest | True if errorReportFile or fileCmdScript is for regression testing, in which case it is executed and the program exits |
| isGnuplot | True if diagnostic gnuplot files are generated for math-intense sections of the code. Used for development and debugging |
| isReset | True to reset all settings that would otherwise be restored from the previous execution of Engauge |
| isExportOnly | True to export the loaded startup file and then exit |
| isExtractImageOnly | True to extract the image from the loaded startup file and then exit |
| extractImageOnlyExtension | File extension for extracted image for isExtractImageOnly |
| loadStartupFiles | Zero or more Engauge document files to load at startup. A separate instance of Engauge is created for each file |
| commandLineWithoutLoadStartupFiles | Command line arguments without load startup files. Used for spawning additional processes |
| parent | Optional parent widget for this widget |
Definition at line 131 of file MainWindow.cpp.
145 m_originalFileWasImported (
false),
146 m_isDocumentExported (
false),
152 m_loadImageFromUrl (
nullptr),
153 m_cmdMediator (
nullptr),
154 m_digitizeStateContext (
nullptr),
155 m_transformationStateContext (
nullptr),
156 m_backgroundStateContext (
nullptr),
157 m_networkClient (
nullptr),
159 m_commandLineWithoutLoadStartupFiles (commandLineWithoutLoadStartupFiles),
161 m_timerRegressionErrorReport(
nullptr),
162 m_fileCmdScript (
nullptr),
163 m_isErrorReportRegressionTest (isRegressionTest),
164 m_timerRegressionFileCmdScript(
nullptr),
165 m_fittingCurve (
nullptr),
166 m_isExportOnly (isExportOnly),
167 m_isExtractImageOnly (isExtractImageOnly),
168 m_extractImageOnlyExtension (extractImageOnlyExtension)
171 <<
" curDir=" << QDir::currentPath().toLatin1().data();
173 #if defined(OSX_DEBUG) || defined(OSX_RELEASE)
174 qApp->setApplicationName (
"Engauge Digitizer");
175 qApp->setOrganizationDomain (
"Mark Mitchell");
180 m_startupDirectory = QDir::currentPath();
185 createFacade.
create (*
this);
189 settingsRead (isReset);
191 setUnifiedTitleAndToolBarOnMac(
true);
193 installEventFilter(
this);
197 QString originalPath = QDir::currentPath();
198 QDir::setCurrent (m_startupDirectory);
200 m_loadStartupFiles = loadStartupFiles;
201 m_regressionFile = exportRegressionFilenameFromInputFilename (loadStartupFiles.first ());
202 slotLoadStartupFiles ();
205 }
else if (isExtractImageOnly) {
206 m_loadStartupFiles = loadStartupFiles;
207 m_regressionFile = exportRegressionFilenameFromInputFilename (loadStartupFiles.first ());
208 slotLoadStartupFiles ();
209 handlerFileExtractImage ();
211 }
else if (!errorReportFile.isEmpty()) {
212 loadErrorReportFile(errorReportFile);
213 if (m_isErrorReportRegressionTest) {
214 startRegressionTestErrorReport(errorReportFile);
216 }
else if (!fileCmdScriptFile.isEmpty()) {
218 startRegressionTestFileCmdScript();
219 }
else if (isDropRegression) {
221 startRegressionDropTest (loadStartupFiles);
226 m_loadStartupFiles = loadStartupFiles;
228 QDir::setCurrent (originalPath);
◆ ~MainWindow()
| MainWindow::~MainWindow |
( |
| ) |
|
Definition at line 230 of file MainWindow.cpp.
233 #if !defined(OSX_DEBUG) && !defined(OSX_RELEASE)
236 delete m_tutorialDlg;
237 delete m_cmdMediator;
238 delete m_cmdStackShadow;
239 delete m_digitizeStateContext;
240 delete m_transformationStateContext;
241 delete m_backgroundStateContext;
242 delete m_dlgSettingsAxesChecker;
243 delete m_dlgSettingsColorFilter;
244 delete m_dlgSettingsCoords;
245 delete m_dlgSettingsCurveList;
246 delete m_dlgSettingsCurveProperties;
247 delete m_dlgSettingsDigitizeCurve;
248 delete m_dlgSettingsExportFormat;
249 delete m_dlgSettingsGeneral;
250 delete m_dlgSettingsGridDisplay;
251 delete m_dlgSettingsGridRemoval;
252 delete m_dlgSettingsMainWindow;
253 delete m_dlgSettingsPointMatch;
254 delete m_dlgSettingsSegments;
255 delete m_fileCmdScript;
256 m_gridLines.
clear ();
◆ cmdFileClose()
| void MainWindow::cmdFileClose |
( |
| ) |
|
Close file. This is called from a file script command.
Definition at line 315 of file MainWindow.cpp.
320 setWindowModified (
false);
◆ cmdFileExport()
| void MainWindow::cmdFileExport |
( |
const QString & |
fileName | ) |
|
Export file. This is called from a file script command.
Definition at line 323 of file MainWindow.cpp.
◆ cmdFileImport()
| void MainWindow::cmdFileImport |
( |
const QString & |
fileName | ) |
|
Import file. This is called from a file script command.
Definition at line 332 of file MainWindow.cpp.
337 m_regressionFile = exportRegressionFilenameFromInputFilename (fileName);
338 fileImport (fileName,
◆ cmdFileOpen()
| void MainWindow::cmdFileOpen |
( |
const QString & |
fileName | ) |
|
Open file. This is called from a file script command.
Definition at line 341 of file MainWindow.cpp.
346 m_regressionFile = exportRegressionFilenameFromInputFilename (fileName);
347 loadDocumentFile(fileName);
◆ cmdMediator()
◆ eventFilter()
| bool MainWindow::eventFilter |
( |
QObject * |
target, |
|
|
QEvent * |
event |
|
) |
| |
|
virtual |
Catch secret keypresses.
Definition at line 370 of file MainWindow.cpp.
373 if (event->type () == QEvent::KeyPress) {
375 QKeyEvent *eventKeyPress = static_cast<QKeyEvent *> (event);
378 if ((eventKeyPress->key() == Qt::Key_E) &&
379 ((eventKeyPress->modifiers() & Qt::ShiftModifier) != 0) &&
380 ((eventKeyPress->modifiers() & Qt::ControlModifier) != 0)) {
390 return QObject::eventFilter (target, event);
◆ imageFiltered()
| QImage MainWindow::imageFiltered |
( |
| ) |
const |
Background image that has been filtered for the current curve. This asserts if a curve-specific image is not being shown.
Definition at line 843 of file MainWindow.cpp.
◆ isGnuplot()
| bool MainWindow::isGnuplot |
( |
| ) |
const |
◆ modelMainWindow()
Get method for main window model.
Definition at line 1231 of file MainWindow.cpp.
1234 return m_modelMainWindow;
◆ modeMap()
| bool MainWindow::modeMap |
( |
| ) |
const |
True if document scale is set using a scale bar, otherwise using axis points.
Definition at line 1171 of file MainWindow.cpp.
1174 bool success =
false;
1176 if (m_cmdMediator !=
nullptr) {
◆ resizeEvent()
| void MainWindow::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
Intercept resize event so graphics scene can be appropriately resized when in Fill mode.
Definition at line 1254 of file MainWindow.cpp.
1259 if (m_actionZoomFill->isChecked ()) {
1263 QMainWindow::resizeEvent(event);
◆ saveErrorReportFileAndExit()
| void MainWindow::saveErrorReportFileAndExit |
( |
const char * |
comment, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
context |
|
) |
| |
Save error report and exit.
Definition at line 1303 of file MainWindow.cpp.
1311 if ((m_cmdMediator !=
nullptr) && !m_isErrorReportRegressionTest) {
1313 QString report = saveErrorReportFileAndExitXml (context,
1319 if (dlg.exec() == QDialog::Accepted) {
1322 QString fileName = dlg.getSaveFileName (
this,
1324 "error_report.xml");
1325 if (!fileName.isEmpty ()) {
1327 QFile fileError (fileName);
1328 QTextStream str (&fileError);
1329 fileError.open (QIODevice::WriteOnly | QIODevice::Text);
◆ scene()
Scene container for the QImage and QGraphicsItems.
Definition at line 1458 of file MainWindow.cpp.
◆ selectedGraphCurve()
| QString MainWindow::selectedGraphCurve |
( |
| ) |
const |
Curve name that is currently selected in m_cmbCurve.
Definition at line 1478 of file MainWindow.cpp.
1481 return m_cmbCurve->currentText ();
◆ selectOriginal()
Make original background visible, for DigitizeStateColorPicker.
This returns the previous background state for restoring when state finishes
Definition at line 1464 of file MainWindow.cpp.
1469 BackgroundImage previousBackground = static_cast<BackgroundImage> (m_cmbBackground->currentData().toInt());
1471 int index = m_cmbBackground->findData (backgroundImage);
1474 m_cmbBackground->setCurrentIndex(index);
1476 return previousBackground;
◆ showEvent()
| void MainWindow::showEvent |
( |
QShowEvent * |
event | ) |
|
|
virtual |
Processing performed after gui becomes available.
Definition at line 1893 of file MainWindow.cpp.
1897 <<
" files=" << m_loadStartupFiles.join (
",").toLatin1().data();
1899 QMainWindow::showEvent (event);
1901 if (m_loadStartupFiles.count() > 0) {
1903 m_timerLoadStartupFiles =
new QTimer;
1904 m_timerLoadStartupFiles->setSingleShot (
true);
1905 connect (m_timerLoadStartupFiles, SIGNAL (timeout ()),
this, SLOT (slotLoadStartupFiles ()));
1906 m_timerLoadStartupFiles->start (0);
◆ showTemporaryMessage()
| void MainWindow::showTemporaryMessage |
( |
const QString & |
temporaryMessage | ) |
|
◆ signalDropRegression
| void MainWindow::signalDropRegression |
( |
QString |
| ) |
|
|
signal |
Send drag and drop regression test url.
◆ signalZoom
| void MainWindow::signalZoom |
( |
int |
| ) |
|
|
signal |
Send zoom selection, picked from menu or keystroke, to StatusBar.
◆ transformation()
Return read-only copy of transformation.
Definition at line 3230 of file MainWindow.cpp.
3233 return m_transformation;
◆ transformIsDefined()
| bool MainWindow::transformIsDefined |
( |
| ) |
const |
Return true if all three axis points have been defined.
Definition at line 3235 of file MainWindow.cpp.
◆ updateAfterCommand()
| void MainWindow::updateAfterCommand |
( |
| ) |
|
See GraphicsScene::updateAfterCommand.
Definition at line 3240 of file MainWindow.cpp.
3249 updateAfterCommandStatusBarCoords ();
3251 updateHighlightOpacity ();
3257 updateChecklistGuide ();
3258 updateFittingWindow ();
3259 updateGeometryWindow();
3264 writeCheckpointToLogFile ();
3266 docScrub.
check (*
this,
3271 m_view->setFocus ();
◆ updateAfterMouseRelease()
| void MainWindow::updateAfterMouseRelease |
( |
| ) |
|
Call MainWindow::updateControls (which is private) after the very specific case - a mouse press/release.
Definition at line 3320 of file MainWindow.cpp.
◆ updateCoordSystem()
Select a different CoordSystem.
Definition at line 3416 of file MainWindow.cpp.
3424 loadCurveListFromCmdMediator ();
3426 updateTransformationAndItsDependencies();
◆ updateDigitizeStateIfSoftwareTriggered()
| void MainWindow::updateDigitizeStateIfSoftwareTriggered |
( |
DigitizeState |
digitizeState | ) |
|
After software-triggered state transition, this method manually triggers the action as if user had clicked on digitize button.
Definition at line 3435 of file MainWindow.cpp.
3440 switch (digitizeState) {
3442 m_actionDigitizeAxis->setChecked(
true);
3447 m_actionDigitizeColorPicker->setChecked(
true);
3448 slotDigitizeColorPicker();
3452 m_actionDigitizeCurve->setChecked(
true);
3453 slotDigitizeCurve();
3460 m_actionDigitizePointMatch->setChecked(
true);
3461 slotDigitizePointMatch();
3465 m_actionDigitizeScale->setChecked(
true);
3466 slotDigitizeScale();
3470 m_actionDigitizeSegment->setChecked(
true);
3471 slotDigitizeSegment();
3475 m_actionDigitizeSelect->setChecked(
true);
3476 slotDigitizeSelect();
◆ updateGraphicsLinesToMatchGraphicsPoints()
| void MainWindow::updateGraphicsLinesToMatchGraphicsPoints |
( |
| ) |
|
Update the graphics lines so they follow the graphics points, after a drag, addition, removal, and such.
The points in the Document may (and probably are) out of date with respect to the graphics points
Definition at line 3514 of file MainWindow.cpp.
◆ updateSettingsAxesChecker()
Update with new axes indicator properties.
Definition at line 3584 of file MainWindow.cpp.
3595 m_cmbCurve->currentText());
3601 m_cmbCurve->currentText());
◆ updateSettingsColorFilter()
Update with new color filter properties.
Definition at line 3604 of file MainWindow.cpp.
3614 m_cmbCurve->currentText());
◆ updateSettingsCoords()
◆ updateSettingsCurveList()
| void MainWindow::updateSettingsCurveList |
( |
const CurvesGraphs & |
curvesGraphs | ) |
|
Update with new curves.
Definition at line 3625 of file MainWindow.cpp.
3631 loadCurveListFromCmdMediator();
◆ updateSettingsCurveStyles()
| void MainWindow::updateSettingsCurveStyles |
( |
const CurveStyles & |
modelCurveStyles | ) |
|
◆ updateSettingsDigitizeCurve()
Update with new curve digitization styles.
Definition at line 3643 of file MainWindow.cpp.
3650 modelDigitizeCurve);
◆ updateSettingsExportFormat()
◆ updateSettingsGeneral()
◆ updateSettingsGridDisplay()
◆ updateSettingsGridRemoval()
◆ updateSettingsMainWindow()
| void MainWindow::updateSettingsMainWindow |
( |
const MainWindowModel & |
modelMainWindow | ) |
|
◆ updateSettingsPointMatch()
◆ updateSettingsSegments()
◆ updateViewsOfSettings()
| void MainWindow::updateViewsOfSettings |
( |
const QString & |
activeCurve | ) |
|
Update curve-specific view of settings. Private version gets active curve name from DigitizeStateContext.
Definition at line 3797 of file MainWindow.cpp.
3800 if (activeCurve.isEmpty ()) {
3813 m_cmdMediator->
pixmap ());
◆ view() [1/2]
View for the QImage and QGraphicsItems, without const.
Definition at line 3856 of file MainWindow.cpp.
◆ view() [2/2]
View for the QImage and QGraphicsItems, without const.
Definition at line 3862 of file MainWindow.cpp.
◆ CreateActions
For simplifying this class by moving initialization to other classes.
Definition at line 95 of file MainWindow.h.
◆ CreateCentralWidget
◆ CreateCommandStackShadow
◆ CreateDockableWidgets
◆ CreateFacade
◆ CreateHelpWindow
◆ CreateIcons
◆ CreateLoadImage
◆ CreateMenus
◆ CreateNetwork
◆ CreateScene
◆ CreateSettingsDialogs
◆ CreateStateContexts
◆ CreateStatusBar
◆ CreateToolBars
◆ CreateTutorial
◆ CreateZoomMaps
◆ TestExport
The documentation for this class was generated from the following files:
void updateModelDigitizeCurve(CmdMediator *cmdMediator, const DocumentModelDigitizeCurve &modelDigitizeCurve)
Update the digitize curve settings.
void updateSettingsAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Update with new axes indicator properties.
void updateAfterPointAddition()
Update the graphics attributes.
void unsetPointStyle()
Apply no PointStyle.
DocumentAxesPointsRequired documentAxesPointsRequired() const
Get method for DocumentAxesPointsRequired.
void setModelDigitizeCurve(const DocumentModelDigitizeCurve &modelDigitizeCurve)
Set method for DocumentModelDigitizeCurve.
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
void setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
Set method for DocumentModelGridDisplay.
CurveStyle curveStyle(const QString &curveName) const
CurveStyle in specified curve.
const QString EMPTY_FILENAME("")
void setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Set method for DocumentModelAxesChecker.
void setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
Set method for DocumentModelGridRemoval.
DocumentModelColorFilter modelColorFilter() const
Get method for DocumentModelColorFilter.
void setModelSegments(const DocumentModelSegments &modelSegments)
Set method for DocumentModelSegments.
void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.
void setCoordSystemIndex(CoordSystemIndex coordSystemIndex)
Set the index of current active CoordSystem.
void setModelGeneral(const DocumentModelGeneral &modelGeneral)
Set method for DocumentModelGeneral.
DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.
QImage imageForCurveState() const
Image for the Curve state, even if the current state is different.
Dialog for saving error report for later transmission to the developers.
void updateSettingsMainWindow(const MainWindowModel &modelMainWindow)
Update with new main window properties.
void check(MainWindow &mainWindow, const Document &document) const
Check document state.
#define LOG4CPP_ERROR_S(logger)
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
MainWindowModel modelMainWindow() const
Get method for main window model.
void create(MainWindow &mw)
Create QAction facade.
void setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
Set method for DocumentModelPointMatch.
static void bindToMainWindow(MainWindow *mainWindow)
Bind to MainWindow so this class can access the command stack.
Facade class that wraps around all of the create classes for MainWindow.
void updateModelSegments(const DocumentModelSegments &modelSegments)
Update the segments given the new settings.
void setModelExport(const DocumentModelExportFormat &modelExport)
Set method for DocumentModelExportFormat.
void updateAfterCommand()
See GraphicsScene::updateAfterCommand.
void handleCurveChange(CmdMediator *cmdMediator)
See DigitizeStateAbstractBase::handleCurveChange.
#define ENGAUGE_CHECK_PTR(ptr)
#endif
void setModelCoords(const DocumentModelCoords &modelCoords)
Set method for DocumentModelCoords.
void updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
void unsetColorFilterSettings()
Apply no color filter.
void showTemporaryMessage(const QString &message)
Show temporary message in status bar. After a short interval the message will disappear.
Strategy class for exporting to a file. This strategy is external to the Document class so that class...
#define LOG4CPP_INFO_S(logger)
void setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
Set method for DocumentModelColorFilter.
void setPointStyle(const PointStyle &pointStyle)
Apply the PointStyle of the currently selected curve.
void setModelCurveStyles(const CurveStyles &modelCurveStyles)
Set method for CurveStyles.
PointStyle pointStyle() const
Get method for PointStyle.
log4cpp::Category * mainCat
File that manages a command stack for regression testing of file import/open/export/close.
Details for a specific Point.
BackgroundImage
Background selection.
void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs.
DocumentModelAxesChecker modelAxesChecker() const
Get method for DocumentModelAxesChecker.
#define LOG4CPP_DEBUG_S(logger)
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
void updateGraphicsLinesToMatchGraphicsPoints(const CurveStyles &modelCurveStyles, const Transformation &transformation)
A mouse move has just occurred so move the selected points, since they were dragged.
void setColorFilterSettings(const ColorFilterSettings &colorFilterSettings, const QPixmap &pixmap)
Apply the color filter of the currently selected curve. The pixmap is included so the background colo...
void triggerStateTransition(bool isGnuplot, TransformationState transformationState, CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve)
Trigger a state transition to be performed immediately.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
void saveErrorReportFileAndExit(const char *comment, const char *file, int line, const char *context)
Save error report and exit.
void clear()
Deallocate and remove all grid lines.
void updateCurveStyles(const CurveStyles &modelCurveStyles)
Update curve styles after settings changed.
bool isGnuplot() const
Get method for gnuplot flag.
void updateViewsOfSettings(const QString &activeCurve)
Update curve-specific view of settings. Private version gets active curve name from DigitizeStateCont...