tychoBCGEN
0.5
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
mainwindow.h
Go to the documentation of this file.
1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
4
#include "
myscene.h
"
5
#include "
colormask.h
"
6
#include "
about.h
"
7
#include "
tutorial.h
"
8
#include "
image_stack.h
"
9
#include <QMainWindow>
10
#include <QEvent>
11
#include <QMouseEvent>
12
#include <QGraphicsScene>
13
#include <QVector>
14
15
namespace
Ui {
16
class
MainWindow
;
17
}
18
19
class
MainWindow
:
public
QMainWindow,
public
image_stack
20
{
21
Q_OBJECT
22
23
public
:
24
explicit
MainWindow
(QWidget *parent = 0);
25
~MainWindow
();
26
27
QPixmap
pixmap
;
28
QVector<QPoint>
emitter_points
;
29
myscene
*
scene
;
30
colormask
*
mycolormask
;
31
tutorial
*
mytutorial
;
32
about
*
myabout
;
33
QString
file
;
34
QString
file_save
;
35
QString
file_masked_image_save
;
36
QPointF
point1
,
point2
;
37
QColor
final_mark_color
;
38
QColor
emitter_color_x
;
39
QColor
emitter_color_mx
;
40
QColor
emitter_color_y
;
41
QColor
emitter_color_my
;
42
43
int
imagewidth
;
44
int
imageheight
;
45
int
pixmapwidth
;
46
int
pixmapheight
;
47
int
maskwidth
;
48
int
counter
;
49
int
counter_wind_emitter
;
50
int
counter_first_emitter
;
51
int
toCheck
;
52
int
alpha
;
53
int
alpha_special_marking
;
54
int
alpha_emitter
;
55
bool
mousebutton_pressed
;
56
57
void
mask_pixmap
();
58
void
undo_mask_pixmap
();
59
void
make_color_mask
();
60
void
clear_many_pixel
();
61
void
clear_many_pixel_1
();
62
void
mask_many_pixel
();
63
void
mask_many_pixel_1
();
64
void
clear_individual_pixel
();
65
void
mask_invidual_pixel
();
66
void
insert_wind_emitter
();
67
68
69
70
private
:
71
Ui::MainWindow
*
ui
;
72
73
74
protected
:
75
void
resizeEvent
(QResizeEvent *event);
76
void
keyPressEvent
(QKeyEvent *event);
77
78
private
slots:
79
void
openfile
();
80
void
scale_to_width
();
81
void
scale_original
();
82
void
zoom_in
();
83
void
zoom_out
();
84
void
memo_color_mask
();
85
void
clear_last_color_mask
();
86
void
open_color_mask
();
87
void
quit
();
88
void
value_change_int
();
89
void
reset_mask
();
90
void
savefile
();
91
void
savefile_soundemitter
();
92
void
save_wind_emitter
();
93
void
save_masked_image
();
94
void
invert_mask
();
95
void
open_about
();
96
void
open_tutorial
();
97
void
wind_emitter_on
();
98
void
wind_emitter_off
();
99
void
reset_wind_emitter
();
100
void
scale_image
();
101
void
rotate_by_90
();
102
103
104
};
105
106
#endif // MAINWINDOW_H
Generated on Wed Oct 9 2013 19:53:58 for tychoBCGEN by
1.8.1.1