25 #include <QMainWindow> 27 #include <QGraphicsScene> 28 #include <QGraphicsView> 30 #include "filereader.h" 32 #include "createfileabstraction.h" 33 #include "imagegraphicsscene.h" 34 #include "rectangledraw.h" 35 #include "fileexistswindow.h" 44 QMainWindow *mainWindow;
87 ImageGraphicsView(QMainWindow *mainWindow_1):QGraphicsView(),mainWindow(mainWindow_1),image(NULL),
88 fileName(NULL),dragButton(false),rectangle(NULL),file(NULL),fileReader(NULL),readFile(false),
89 addIconPicture(NULL),existsWindow(NULL)
92 this->setMouseTracking(
true);
99 virtual bool display(QString &fileName);
103 virtual void setName(QString *filename);
150 #endif // DISPLAYIMAGE ImageGraphicsView(QMainWindow *mainWindow_1)
The constructor of the ImageGraphicsView class.
Definition: imagegraphicsview.h:87
virtual void setName(QString *filename)
Deprecated method. Will be removed in a future release.
Definition: imagegraphicsview.cpp:103
virtual void setDragButton(bool value)
Sets the state of the variable representing the state of the Drag icon.
Definition: imagegraphicsview.cpp:111
void drawBackground()
2° for drawing the image
Definition: imagegraphicsview.cpp:35
Creates a text file related to an image.
Definition: createfileabstraction.h:34
virtual ImageGraphicsScene * getScene()
Returns the application scene.
Definition: imagegraphicsview.cpp:107
Adds an icon at the top-left corner of a rectangle.
Definition: addiconpicture.h:34
Inherits the QPixmap class.
Definition: image.h:32
Displays the image.
Definition: imagegraphicsview.h:37
virtual bool display(QString &fileName)
1° step for displaying the image
Definition: imagegraphicsview.cpp:3
virtual void cursorActivate()
Sets the cursor to be a cross when the user presses the draw icon.
Definition: imagegraphicsview.cpp:143
virtual void dragDisable()
Disables the drag mode.
Definition: imagegraphicsview.cpp:125
Warning window.
Definition: fileexistswindow.h:32
void wheelEvent(QWheelEvent *event)
Zoom In and Zoom Out events.
Definition: imagegraphicsview.cpp:129
virtual void dragEnable()
Enables the drag mode.
Definition: imagegraphicsview.cpp:121
Displays the rectangles and work on the image.
Definition: imagegraphicsscene.h:47
virtual void cursorDesactivate()
Sets the cursor to be an arrow when the user stops drawing.
Definition: imagegraphicsview.cpp:147
Reads the text file content.
Definition: filereader.h:35