26 const QString &identifier,
27 bool draggedOffscreen)
35 double valueBefore = valueForIdentifier (modelGuidelinesDocument,
39 bool isXT = isXTForIdentifier (modelGuidelinesDocument,
44 if (draggedOffscreen) {
80 const QString &identifierWanted)
const
82 GuidelineValues::const_iterator itr;
85 for (itr = valuesX.begin(); itr != valuesX.end(); itr++) {
86 QString identifierGot = itr.key();
87 if (identifierWanted == identifierGot) {
96 const QString &identifierWanted)
const
98 GuidelineValues::const_iterator itr;
101 for (itr = valuesX.begin(); itr != valuesX.end(); itr++) {
102 QString identifierGot = itr.key();
103 if (identifierWanted == identifierGot) {
109 for (itr = valuesY.begin(); itr != valuesY.end(); itr++) {
110 QString identifierGot = itr.key();
111 if (identifierWanted == identifierGot) {
117 << 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 valuesX() const
Get method for x/t values.
GuidelineValues valuesY() const
Get method for y/r 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 DocumentModelGuidelines &modelGuidelinesDocument, 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)