-
Notifications
You must be signed in to change notification settings - Fork 0
/
aplicacao.h
76 lines (48 loc) · 1.18 KB
/
aplicacao.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
#ifndef APLICACAO_H
#define APLICACAO_H
#include <QMainWindow>
#include <QMouseEvent>
#include <QGraphicsScene>
#include <QList>
#include <QTextStream>
#include "graphics_scene.h"
namespace Ui {
class aplicacao;
}
class aplicacao : public QMainWindow
{
Q_OBJECT
public:
explicit aplicacao(QWidget *parent = 0);
~aplicacao();
private slots:
void on_actionAbrir_triggered();
void on_actionFechar_triggered();
bool loadFile(const QString &fileName);
void setImage(const QImage &newImage);
void on_RGB_clicked();
void Mouse_corrent_pos();
void on_linha_clicked();
void on_apagar_clicked();
void on_apagar_tudo_clicked();
void on_nova_clicked();
void on_guardar_clicked();
void Visualizar_imagem_final(const QPixmap &);
void resizeEvent(QResizeEvent *event);
signals:
void linha();
void apagar();
void apagar_tudo();
void nova();
void guardar(const QPixmap &);
private:
Ui::aplicacao *ui;
QImage imagem;
QGraphicsPixmapItem* item;
QGraphicsPixmapItem* item_final;
Graphics_Scene* scene;
Graphics_Scene* new_scene;
bool ok_1, ok_2;
int RGB;
};
#endif // aplicacao_H