Ground-Truthing GUI  1.0
imageviewer.h
1 
24 #ifndef IMAGEVIEWER
25 #define IMAGEVIEWER
26 
27 #include <QMainWindow>
28 #include <QMenu>
29 #include <QAction>
30 #include <QtWidgets>
31 
32 #include "image.h"
33 #include "createfileabstraction.h"
34 #include "actionbutton.h"
35 
36 class ImageViewer:public QMainWindow{
37 
38  Q_OBJECT
39 
40 private:
41 
42  // The image we want to load and display
43  Image *image;
44 
45  // The file creator class aimed to create a file related to the image
47 
48  // Create the file Menu in the Menu bar
49  QMenu *fileMenu;
50 
51  // Open an image action
52  QAction *openAct;
53 
54  // The SaveAs action
55  QAction *saveAs;
56 
57  // Open the image file
58  ActionButton *userAction;
59 
60  // Add the draw toolBar
61  QToolBar *menuToolBar;
62 
63 public:
64 
68  ImageViewer(QWidget *parent=0);
69 
72  virtual ~ImageViewer(){};
73 
77  virtual void createMenus();
78 
82  virtual void createActions();
83 };
84 
85 #endif // IMAGEVIEWER
ImageViewer(QWidget *parent=0)
The constructor of the ImageViewer class.
Definition: imageviewer.cpp:6
virtual void createActions()
Creates all the actions related to the icons.
Definition: imageviewer.cpp:27
Creates a text file related to an image.
Definition: createfileabstraction.h:34
virtual ~ImageViewer()
Class destructor.
Definition: imageviewer.h:72
Inherits the QPixmap class.
Definition: image.h:32
virtual void createMenus()
Creates the menu bar.
Definition: imageviewer.cpp:17
Main window of the application.
Definition: imageviewer.h:36
Manages all the Qt signals coming from the main window.
Definition: actionbutton.h:37