Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineDragCommandFactory.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GUIDELINE_DRAG_COMMAND_FACTORY_H
8#define GUIDELINE_DRAG_COMMAND_FACTORY_H
9
10#include "GuidelineValues.h"
11#include <QString>
12
13class CmdAbstract;
14class Document;
16class Guidelines;
17class MainWindow;
18
22{
23public:
26
30 Document &document,
31 double newValue,
32 const DocumentModelGuideline &modelGuidelineDocument,
33 const QString &identifier,
34 bool draggedOffscreen);
35
36private:
37 bool isXTForIdentifier (const DocumentModelGuideline &modelGuideline,
38 const QString &identifier) const;
39 double valueForIdentifier (const DocumentModelGuideline &modelGuideline,
40 const QString &identifier) const;
41
42};
43
44#endif // GUIDELINE_DRAG_COMMAND_FACTORY_H
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition CmdAbstract.h:24
Model for managing the coordinate values corresponding Guidelines.
Storage of one imported image and the data attached to that image.
Definition Document.h:44
CmdAbstract * createAfterDrag(MainWindow &mainWindow, Document &document, double newValue, const DocumentModelGuideline &modelGuidelineDocument, const QString &identifier, bool draggedOffscreen)
Create delete or move Cmd.
This class contains all Guideline objects.
Definition Guidelines.h:28
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95