Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
Signals | Public Member Functions | List of all members
MainWindow Class Reference

Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document Interface. More...

#include <MainWindow.h>

Inheritance diagram for MainWindow:

Signals

void signalZoom (int)
 Send zoom selection, picked from menu or keystroke, to StatusBar.
 

Public Member Functions

 MainWindow (const QString &errorReportFile, bool isGnuplot, QStringList loadStartupFiles, QWidget *parent=0)
 Single constructor.
 
CmdMediatorcmdMediator ()
 Accessor for commands to process the Document.
 
virtual bool eventFilter (QObject *, QEvent *)
 Catch secret keypresses.
 
QImage imageFiltered () const
 Background image that has been filtered for the current curve. This asserts if a curve-specific image is not being shown.
 
bool isGnuplot () const
 Get method for gnuplot flag.
 
MainWindowModel modelMainWindow () const
 Get method for main window model.
 
void resizeEvent (QResizeEvent *event)
 Intercept resize event so graphics scene can be appropriately resized when in Fill mode.
 
void saveErrorReportFileAndExit (const char *comment, const char *file, int line, const char *context) const
 Save error report and exit.
 
GraphicsScenescene ()
 Scene container for the QImage and QGraphicsItems.
 
BackgroundImage selectOriginal (BackgroundImage backgroundImage)
 Make original background visible, for DigitizeStateColorPicker. More...
 
QString selectedGraphCurve () const
 Curve name that is currently selected in m_cmbCurve.
 
virtual void showEvent (QShowEvent *)
 Processing performed after gui becomes available.
 
void showTemporaryMessage (const QString &temporaryMessage)
 Show temporary message in status bar.
 
Transformation transformation () const
 Return read-only copy of transformation.
 
bool transformIsDefined () const
 Return true if all three axis points have been defined.
 
void updateAfterCommand ()
 See GraphicsScene::updateAfterCommand.
 
void updateAfterMouseRelease ()
 Call MainWindow::updateControls (which is private) after the very specific case - a mouse press/release.
 
void updateDigitizeStateIfSoftwareTriggered (DigitizeState digitizeState)
 After software-triggered state transition, this method manually triggers the action as if user had clicked on digitize button.
 
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.
 
void updateSettingsColorFilter (const DocumentModelColorFilter &modelColorFilter)
 Update with new color filter properties.
 
void updateSettingsCoords (const DocumentModelCoords &modelCoords)
 Update with new coordinate properties.
 
void updateSettingsCurveAddRemove (const CurvesGraphs &curvesGraphs)
 Update with new curves.
 
void updateSettingsCurveStyles (const CurveStyles &modelCurveStyles)
 Update with new curve styles.
 
void updateSettingsDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)
 Update with new curve digitization styles.
 
void updateSettingsExportFormat (const DocumentModelExportFormat &modelExport)
 Update with new export properties.
 
void updateSettingsGeneral (const DocumentModelGeneral &modelGeneral)
 Update with new general properties.
 
void updateSettingsGridRemoval (const DocumentModelGridRemoval &modelGridRemoval)
 Update with new grid removal properties.
 
void updateSettingsMainWindow (const MainWindowModel &modelMainWindow)
 Update with new main window properties.
 
void updateSettingsPointMatch (const DocumentModelPointMatch &modelPointMatch)
 Update with new point match properties.
 
void updateSettingsSegments (const DocumentModelSegments &modelSegments)
 Update with new segments properties.
 
void updateViewsOfSettings (const QString &activeCurve)
 Update curve-specific view of settings. Private version gets active curve name from DigitizeStateContext.
 
GraphicsViewview ()
 View for the QImage and QGraphicsItems, without const.
 
const GraphicsViewview () const
 View for the QImage and QGraphicsItems, without const.
 
virtual void wheelEvent (QWheelEvent *event)
 Convert wheel events into zoom in/out.
 

Detailed Description

Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document Interface.

Definition at line 66 of file MainWindow.h.

Member Function Documentation

BackgroundImage MainWindow::selectOriginal ( BackgroundImage  backgroundImage)

Make original background visible, for DigitizeStateColorPicker.

This returns the previous background state for restoring when state finishes

Definition at line 1692 of file MainWindow.cpp.

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 3263 of file MainWindow.cpp.


The documentation for this class was generated from the following files: