-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrolpanel.h
56 lines (49 loc) · 1.25 KB
/
controlpanel.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
#ifndef CONTROLPANEL_H
#define CONTROLPANEL_H
#include <QDialog>
#include <QCloseEvent>
#include "drawpad.h"
namespace Ui {
class Controlpanel;
}
class Controlpanel : public QDialog
{
Q_OBJECT
public:
explicit Controlpanel(QWidget *parent = nullptr);
~Controlpanel();
private:
bool save_Canvas();
void reset_Canvas();
void clean_Canvas();
void draw_Line();
void draw_Circle();
void draw_Rectangle();
void draw_Oval();
void draw_Polygon();
void draw_Curve();
void allow_dragging();
void set_inkColor();
void set_penWidth();
void input_fromDialog();
void display_Information(QPoint pos, QPoint point, int shapeIdx, int type);
void quit_AllFunctions();
private:
Ui::Controlpanel *ui;
QMainWindow *mainWindow;
QToolBar *toolBar;
Drawpad *drawpad;
QAction *drawLine, *drawCurve, *drawCircle, *drawOval, *drawRectangle, *drawPolygon,
*drag, *setColor, *setPen, *resize, *reset, *input, *save;
bool isCuttingLine;
bool isDrawingLine;
bool isDrawingCircle;
bool isDrawingRectangle;
bool isDrawingOval;
bool isDrawingPolygon;
bool isDrawingCurve;
bool isReleased;
bool allowDragging;
bool isDraggingShape;
};
#endif // CONTROLPANEL_H