27 const QString &identifier,
28 bool draggedOffscreen)
36 double valueBefore = valueForIdentifier (modelGuidelineDocument,
40 bool isXT = isXTForIdentifier (modelGuidelineDocument,
45 if (draggedOffscreen) {
81 const QString &identifierWanted)
const
83 GuidelineValues::const_iterator itr;
86 for (itr = valuesX.begin(); itr != valuesX.end(); itr++) {
87 QString identifierGot = itr.key();
88 if (identifierWanted == identifierGot) {
97 const QString &identifierWanted)
const
99 GuidelineValues::const_iterator itr;
102 for (itr = valuesX.begin(); itr != valuesX.end(); itr++) {
103 QString identifierGot = itr.key();
104 if (identifierWanted == identifierGot) {
110 for (itr = valuesY.begin(); itr != valuesY.end(); itr++) {
111 QString identifierGot = itr.key();
112 if (identifierWanted == identifierGot) {
118 << identifierWanted.toLatin1().data() <<
" was not found";
QMap< QString, double > GuidelineValues
log4cpp::Category * mainCat
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
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.
Model for managing the coordinate values corresponding Guidelines.
GuidelineValues valuesY() const
Get method for y/r values.
GuidelineValues valuesX() const
Get method for x/t values.
Storage of one imported image and the data attached to that image.
GuidelineDragCommandFactory()
Single constructor.
CmdAbstract * createAfterDrag(MainWindow &mainWindow, Document &document, double newValue, const DocumentModelGuideline &modelGuidelineDocument, const QString &identifier, bool draggedOffscreen)
Create delete or move Cmd.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_ERROR_S(logger)