Factory method. Input is the xml node from an error report file.
54{
56
57 QXmlStreamAttributes attributes = reader.attributes();
60
61
65
66 }
67
68
71
74 document,
75 cmdDescription,
76 reader);
79 document,
80 cmdDescription,
81 reader);
84 document,
85 cmdDescription,
86 reader);
89 document,
90 cmdDescription,
91 reader);
93 cmd =
new CmdCut (mainWindow,
94 document,
95 cmdDescription,
96 reader);
99 document,
100 cmdDescription,
101 reader);
104 document,
105 cmdDescription,
106 reader);
109 document,
110 cmdDescription,
111 reader);
114 document,
115 cmdDescription,
116 reader);
119 document,
120 cmdDescription,
121 reader);
124 document,
125 cmdDescription,
126 reader);
129 document,
130 cmdDescription,
131 reader);
134 document,
135 cmdDescription,
136 reader);
139 document,
140 cmdDescription,
141 reader);
144 document,
145 cmdDescription,
146 reader);
149 document,
150 cmdDescription,
151 reader);
154 document,
155 cmdDescription,
156 reader);
159 document,
160 cmdDescription,
161 reader);
164 document,
165 cmdDescription,
166 reader);
169 document,
170 cmdDescription,
171 reader);
174 document,
175 cmdDescription,
176 reader);
179 document,
180 cmdDescription,
181 reader);
184 document,
185 cmdDescription,
186 reader);
189 document,
190 cmdDescription,
191 reader);
194 document,
195 cmdDescription,
196 reader);
199 document,
200 cmdDescription,
201 reader);
204 document,
205 cmdDescription,
206 reader);
209 document,
210 cmdDescription,
211 reader);
214 document,
215 cmdDescription,
216 reader);
219 document,
220 cmdDescription,
221 reader);
224 document,
225 cmdDescription,
226 reader);
227 } else {
228
229
230 LOG4CPP_ERROR_S ((*
mainCat)) <<
"CmdFactory::createCmd invalid command type " << cmdType.toLatin1().data();
232
233 }
234
235 return cmd;
236}
const QString DOCUMENT_SERIALIZE_CMD_ADD_POINT_AXIS
const QString DOCUMENT_SERIALIZE_CMD_MOVE_BY
const QString DOCUMENT_SERIALIZE_CMD_REDO_FOR_TEST
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_CURVE_LIST
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_CURVE_PROPERTIES
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_GRID_REMOVAL
const QString DOCUMENT_SERIALIZE_CMD_ADD_POINTS_GRAPH
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_VIEW_STATE
const QString DOCUMENT_SERIALIZE_CMD_ADD_POINT_GRAPH
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_REMOVE_Y_R
const QString DOCUMENT_SERIALIZE_CMD_GONG
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_MOVE_Y_R
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_SEGMENTS
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_POINT_MATCH
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_MOVE_X_T
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_ADD_X_T
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_ADD_Y_R
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_COLOR_FILTER
const QString DOCUMENT_SERIALIZE_CMD_UNDO_FOR_TEST
const QString DOCUMENT_SERIALIZE_CMD_TYPE
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_GENERAL
const QString DOCUMENT_SERIALIZE_CMD_CUT
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_DIGITIZE_CURVE
const QString DOCUMENT_SERIALIZE_CMD_DELETE
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_REMOVE_X_T
const QString DOCUMENT_SERIALIZE_CMD_EDIT_POINT_AXIS
const QString DOCUMENT_SERIALIZE_CMD_EDIT_POINT_GRAPH
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_COORDS
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_AXES_CHECKER
const QString DOCUMENT_SERIALIZE_CMD_DESCRIPTION
const QString DOCUMENT_SERIALIZE_CMD_SETTINGS_EXPORT
const QString DOCUMENT_SERIALIZE_CMD_COPY
const QString DOCUMENT_SERIALIZE_CMD_SELECT_COORD_SYSTEM
#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.
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 copying all selected Points to the clipboard.
Command for cutting all selected Points.
Command for deleting all selected Points.
Command for editing the graph coordinates one axis point.
Command for editing the graph coordinates of one or more graph points.
Command for sending a satisfying signal to the unit test framework to indicate completion of queued c...
Command for adding one X/T Guideline value.
Command for adding one Y/R Guideline value.
Command for moving one X/T Guideline value.
Command for moving one Y/R Guideline value.
Command for removing one X/T Guideline value.
Command for removing one Y/R Guideline value.
Command for changing the View / Guidelines state.
Command for moving all selected Points by a specified translation.
Command for performing Redo during testing.
Command for changing the currently selected CoordSystem.
Command for DlgSettingsAxesChecker.
Command for DlgSettingsColorFilter.
Command for DlgSettingsCoords.
Command for DlgSettingsCurveList.
Command for DlgSettingsCurveProperties.
Command for DlgSettingsDigitizeCurve.
Command for DlgSettingsGeneral.
Command for DlgSettingsGridRemoval.
Command for DlgSettingsPointMatch.
Command for DlgSettingsSegments.
Command for performing Undo during testing.
#define LOG4CPP_ERROR_S(logger)