-
Notifications
You must be signed in to change notification settings - Fork 0
/
qactions.cpp
75 lines (52 loc) · 2.36 KB
/
qactions.cpp
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
#include "qactions.h"
QActions::QActions(QWidget *parent)
{
QPixmap newPix(":/img/page_white.png");
aNew = new QAction(newPix, "&New", parent);
QPixmap openPix(":/img/folder_picture.png");
aOpen = new QAction(openPix, "&Open", parent);
QPixmap savePix(":/img/disk.png");
aSave = new QAction(savePix, "&Save", parent);
QPixmap saveAsPix(":/img/disk_multiple.png");
aSaveAs = new QAction(saveAsPix, "&Save As", parent);
QPixmap quitPix(":/img/door_in.png");
aQuit = new QAction(quitPix, "&Quit", parent);
QPixmap cutPix(":/img/cut_red.png");
aCut = new QAction(cutPix, "&Cut", parent);
QPixmap copyPix(":/img/page_white_copy.png");
aCopy = new QAction(copyPix, "&Copy", parent);
QPixmap pastePix(":/img/paste_plain.png");
aPaste = new QAction(pastePix, "&Paste", parent);
QPixmap sprPix(":/img/sprite.png");
aSprite = new QAction(sprPix, "Sprite", parent);
QPixmap animationPix(":/img/animation.png");
aAnimation = new QAction(animationPix, "Animation", parent);
QPixmap gridPix(":/img/grid_rectangular.png");
aViewGrid = new QAction(gridPix, "&Grid", parent);
aViewGrid->setCheckable(true);
aViewGrid->setChecked(true);
aViewSprite = new QAction("Sprite", parent);
aViewSprite->setCheckable(true);
aViewSprite->setChecked(true);
aViewSymmetry = new QAction("Symmetry Hints", parent);
aViewSymmetry->setCheckable(true);
aViewSymmetry->setChecked(true);
QPixmap zoomInPix(":/img/zoom_in.png");
aZoomIn = new QAction(zoomInPix, "&Zoom In", parent);
QPixmap zoomOutPix(":/img/zoom_out.png");
aZoomOut = new QAction(zoomOutPix, "&Zoom Out", parent);
QPixmap zoom100Pix(":/img/zoom.png");
aZoom100 = new QAction(zoom100Pix, "&Actual Size", parent);
QPixmap aboutPix(":/img/star.png");
aAbout = new QAction(aboutPix, "&About", parent);
QPixmap playPix(":/img/control_play.png");
aPlay = new QAction(playPix, "&Play", parent);
QPixmap pausePix(":/img/control_pause.png");
aPause = new QAction(pausePix, "&Pause", parent);
QPixmap stopPix(":/img/control_stop.png");
aStop = new QAction(stopPix, "&Stop", parent);
QPixmap blankPix(":/img/picture_empty.png");
aAddBlank = new QAction(blankPix, "&Insert Blank", parent);
QPixmap delPix(":/img/cross.png");
aDeleteImg = new QAction(delPix, "&Delete Images", parent);
}