7#include "CmdAbstract.h"
8#include "CmdAddPointAxis.h"
9#include "CmdAddPointGraph.h"
10#include "CmdAddPointsGraph.h"
14#include "CmdEditPointAxis.h"
15#include "CmdFactory.h"
18#include "CmdSelectCoordSystem.h"
19#include "CmdSettingsAxesChecker.h"
20#include "CmdSettingsColorFilter.h"
21#include "CmdSettingsCoords.h"
22#include "CmdSettingsCurveAddRemove.h"
23#include "CmdSettingsCurveProperties.h"
24#include "CmdSettingsDigitizeCurve.h"
25#include "CmdSettingsExportFormat.h"
26#include "CmdSettingsGridRemoval.h"
27#include "CmdSettingsPointMatch.h"
28#include "CmdSettingsSegments.h"
30#include "DocumentSerialize.h"
31#include "EngaugeAssert.h"
32#include "MainWindow.h"
33#include <QXmlStreamReader>
41 QXmlStreamReader &reader)
45 QXmlStreamAttributes attributes = reader.attributes();
46 if (!attributes.hasAttribute(DOCUMENT_SERIALIZE_CMD_TYPE) ||
47 !attributes.hasAttribute(DOCUMENT_SERIALIZE_CMD_DESCRIPTION)) {
50 ENGAUGE_ASSERT(
false);
55 QString cmdType = attributes.value(DOCUMENT_SERIALIZE_CMD_TYPE).toString();
56 QString cmdDescription = attributes.value(DOCUMENT_SERIALIZE_CMD_DESCRIPTION).toString();
58 if (cmdType == DOCUMENT_SERIALIZE_CMD_ADD_POINT_AXIS) {
63 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_ADD_POINT_GRAPH) {
68 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_ADD_POINTS_GRAPH) {
73 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_COPY) {
78 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_CUT) {
79 cmd =
new CmdCut (mainWindow,
83 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_DELETE) {
88 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_EDIT_POINT_AXIS) {
93 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_MOVE_BY) {
98 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_PASTE) {
103 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SELECT_COORD_SYSTEM) {
108 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_AXES_CHECKER) {
113 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_COLOR_FILTER) {
118 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_COORDS) {
123 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_CURVE_ADD_REMOVE) {
128 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_CURVE_PROPERTIES) {
133 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_DIGITIZE_CURVE) {
138 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_EXPORT) {
143 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_GRID_REMOVAL) {
148 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_POINT_MATCH) {
153 }
else if (cmdType == DOCUMENT_SERIALIZE_CMD_SETTINGS_SEGMENTS) {
161 ENGAUGE_ASSERT (
false);
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Command for adding one axis point.
Command for adding one graph point.
Command for adding one or more graph points. This is for Segment Fill mode.
Command for moving all selected Points by a specified translation.
Command for cutting all selected Points.
Command for deleting all selected Points.
Command for editing the graph coordinates one axis point.
CmdAbstract * createCmd(MainWindow &mainWindow, Document &document, QXmlStreamReader &reader)
Factory method. Input is the xml node from an error report file.
CmdFactory()
Single constructor.
Command for moving all selected Points by a specified translation.
Command for moving all selected Points by a specified translation.
Command for changing the currently selected CoordSystem.
Command for DlgSettingsAxesChecker.
Command for DlgSettingsColorFilter.
Command for DlgSettingsCoords.
Command for DlgSettingsCurveAddRemove.
Command for DlgSettingsCurveProperties.
Command for DlgSettingsDigitizeCurve.
Command for DlgSettingsGridRemoval.
Command for DlgSettingsPointMatch.
Command for DlgSettingsSegments.
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...