forked from KamelMoohamed/CMP2241_F21_Team01_IRO_Painting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paintwindow.h
94 lines (58 loc) · 1.65 KB
/
paintwindow.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
#ifndef PAINTWINDOW_H
#define PAINTWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include <QResizeEvent>
#include "paintscene.h"
#include "messagedialog.h"
namespace Ui {
class PaintWindow;
}
class PaintWindow : public QMainWindow
{
Q_OBJECT
public:
explicit PaintWindow(QWidget *parent = nullptr);
~PaintWindow();
PaintScene *scene;
QTimer *timer;
void open(QString path);
void on_menuSave(QString path);
private slots:
void slotTimer();
void on_triangleBtn_clicked();
void on_rectangleBtn_clicked();
void on_lineBtn_clicked();
void on_circleBtn_clicked();
void on_undoBtn_clicked();
void on_redoBtn_clicked();
void on_colorBtn_clicked();
void on_saveBtn_clicked();
void on_verticalSlider_sliderMoved(int position);
void on_tableBtn_clicked();
void on_ersr_Btn_clicked();
void on_searchBar_returnPressed();
void on_DataTable_cellChanged(int row, int column);
void on_SortASBtn_clicked();
void on_SortDSBtn_clicked();
void on_DataTable_cellClicked(int row, int column);
void on_logoBtn_clicked();
void on_menuNew_clicked();
void on_menuOpen_clicked();
void on_menuSave_clicked();
void on_infoBtn_clicked();
void on_borderCBtn_clicked();
protected:
void mouseMoveEvent(QMouseEvent* event);
void mousePressEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
private:
Ui::PaintWindow *ui;
QPoint mLastMousePosition;
bool mMoving;
void closeEvent(QCloseEvent *event);
bool isFilled=true;
QColor fillColor=Qt::black;
QVector<QString> dialogMessage;
};
#endif // PAINTWINDOW_H