Ground-Truthing GUI 1.0

- Main Page
- Related Pages
- Classes
- Files

- File List

actionbutton.h
1
23 #ifndef OPENIMAGEFILE
24 #define OPENIMAGEFILE
25
26 #include <QMenu>
27 #include <QAction>
28 #include <QtWidgets>
29 #include <QMainWindow>
30 #include <QObject>
31
32 #include "image.h"
33 #include "createfileabstraction.h"
34 #include "imagegraphicsview.h"
35 #include "saverectangle.h"
36
37 class ActionButton:public QObject{
38
39 Q_OBJECT
40
41 private:
42
43 // The application Main Window
44 QMainWindow *mainWindow;
45
46 // The image the uer wants to work with
47 Image *image;
48
49 // The text file associated to the image
50 CreateFileAbstraction *file;
51
52 // The image displayer
53 ImageGraphicsView *displayImage;
54
55 // The rectangles saver
56 SaveRectangle *save;
57
58 // The object which is going to write all the rectangles
59 // information in the text file
60 FileWriter *fileWriter;
61
62 public:
63
67 ActionButton(QMainWindow *mainWindow_1):mainWindow(mainWindow_1),file(NULL),fileWriter(NULL)
68
69 {
70 displayImage = new ImageGraphicsView(mainWindow_1);
71 save= new SaveRectangle(this->displayImage->getScene());
72
73 }
74
77 virtual ~ActionButton(){}
78
79 public slots:
80
84 void open();
85
89 void saveMenu();
90
94 void drawButton();
95
99 void eraseButton();
100
104 void dragButton();
105
109 void saveButton();
110
114 void zoomInButton();
115
119 void zoomOutButton();
120
124 void modifyButton();
125 };
126
127 #endif // OPENIMAGEFILE
128
ActionButton::saveButton
void saveButton()
The slot associated to the Save icon.
Definition: actionbutton.cpp:70
ActionButton::open
void open()
The slot associated to the Open menu.
Definition: actionbutton.cpp:6
CreateFileAbstraction
Creates a text file related to an image.
Definition: createfileabstraction.h:34
ImageGraphicsView::getScene
virtual ImageGraphicsScene * getScene()
Returns the application scene.
Definition: imagegraphicsview.cpp:107
ActionButton::ActionButton
ActionButton(QMainWindow *mainWindow_1)
The constructor of the ActionButton class.
Definition: actionbutton.h:67
Image
Inherits the QPixmap class.
Definition: image.h:32
ImageGraphicsView
Displays the image.
Definition: imagegraphicsview.h:37
SaveRectangle
Saves all the rectangles information in the text file.
Definition: saverectangle.h:35
ActionButton::zoomInButton
void zoomInButton()
The slot associated to the Zoom in icon.
Definition: actionbutton.cpp:79
ActionButton::saveMenu
void saveMenu()
The slot associated to the Save Menu.
Definition: actionbutton.cpp:141
ActionButton::drawButton
void drawButton()
The slot associated to the Draw icon.
Definition: actionbutton.cpp:25
ActionButton::modifyButton
void modifyButton()
The slot associated to the Modify menu.
Definition: actionbutton.cpp:126
FileWriter
Write in a text file.
Definition: filewriter.h:28
ActionButton::eraseButton
void eraseButton()
The slot associated to the Erase icon.
Definition: actionbutton.cpp:40
ActionButton::dragButton
void dragButton()
The slot associated to the Drag icon.
Definition: actionbutton.cpp:55
ActionButton::zoomOutButton
void zoomOutButton()
The slot associated to the Zoom out icon.
Definition: actionbutton.cpp:102
ActionButton
Manages all the Qt signals coming from the main window.
Definition: actionbutton.h:37
ActionButton::~ActionButton
virtual ~ActionButton()
Class destructor.
Definition: actionbutton.h:77