-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
executable file
·140 lines (115 loc) · 3.51 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLineEdit>
#include <QStyleFactory>
#include <QMessageBox>
#include <QFileDialog>
#include <QSignalMapper>
#include <QDir>
enum PATH
{
ORIGINAL_PATH,
DESTINATION_PATH,
CSV_PATH
};
namespace Ui {
class MainWindow;
}
/**
* @file mainwindow.h
* @author Renato Moraes <[email protected]>
* @version 1.0
*
* @section LICENSE
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details at
* http://www.gnu.org/copyleft/gpl.html
*
* @section DESCRIPTION
*
*/
/**
* @class MainWindow
* @brief The MainWindow class - The class MainWindow represents the main window of the system.
*/
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
/**
* @brief MainWindow - Class Constructor.
* @param parent
*/
explicit MainWindow(QWidget *parent = 0);
/**
* @brief ~MainWindow - Destructor.
*/
~MainWindow();
/**
* @brief generateImages - Generate Image Transformations.
*/
void generateImages();
/**
* @brief verifyCheckBoxes - Verify the Checkboxes.
*/
void verifyCheckBoxes();
bool bFlipChecked; /*!< Flag to verify if Flip checkbox is checked declaration. */
bool bRotateChecked; /*!< Flag to verify if Rotate checkbox is checked declaration. */
bool bResizeChecked; /*!< Flag to verify if Resize checkbox is checked declaration. */
bool bGrayChecked; /*!< Flag to verify if Grayscale checkbox is checked declaration. */
bool bTSPChecked; /*!< Flag to verify if Thin Plane Spline checkbox is checked declaration. */
bool bCropChecked; /*!< Flag to verify if Crop checkbox is checked declaration. */
bool bCSVChecked; /*!< Flag to verify if CSV checkbox is checked declaration. */
int iWidth; /*!< Rect width */
int iHeight; /*!< Rect height */
int iWindowSize; /*!< Window size */
int iOffset; /*!< Windown offset */
private:
Ui::MainWindow *ui; /*!< Ui declaration. */
QPushButton* pButton; /*!< Generic button. */
QLineEdit* pOriginalPath; /*!< Original path form input */
QLineEdit* pDestinationPath; /*!< Destination path form input */
QLineEdit* pCSVPath; /*!< CSV path form input */
protected:
/**
* @brief createActions - Create main menu actions.
*/
virtual void createActions();
/**
* @brief createMenus - Create main menu.
*/
virtual void createMenus();
QMenu *fileMenu; /*!< Main menu declaration */
QMenu *helpMenu; /*!< Help menu declaration */
QAction *newAct; /*!< New action declaration. */
QAction *exitAct; /*!< Exit action declaration. */
QAction *aboutAct; /*!< About action declaration. */
private slots:
/**
* @brief about - About the software.
*/
void about();
/**
* @brief browse - Browse the directories.
* @param symbol - Directory symbol.
*/
void browse(int symbol);
/**
* @brief verifyForm - Verify the form submit.
*/
void verifyForm(bool);
/**
* @brief newForm - Clear the form.
*/
void newForm();
};
#endif // MAINWINDOW_H