-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
43 lines (38 loc) · 1.05 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtWidgets>
#include <QResizeEvent>
#include <QCloseEvent>
#include <QGraphicsPixmapItem>
#include "paintscene.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
Ui::MainWindow *ui;
paintScene *scene;
public:
explicit MainWindow(QWidget *parent = 0);
void resizeEvent(QResizeEvent *event);
void closeEvent(QCloseEvent *event);
void check_save();
~MainWindow();
private slots:
void on_actionOpen_image_triggered();
void on_actionSave_triggered();
void on_actionExit_triggered();
void on_actionColor_triggered();
void on_actionWidth_triggered();
void on_actionClear_triggered();
void on_actionSolid_line_triggered();
void on_actionDash_Line_triggered();
void on_actionDot_Line_triggered();
void on_actionDash_Dot_Line_triggered();
void on_actionDash_Dot_Dot_Line_triggered();
void on_actionCustom_Dash_Line_triggered();
void on_actionNew_triggered();
};
#endif // MAINWINDOW_H