1 #ifndef IntelliPhotoGui_H
2 #define IntelliPhotoGui_H
7 #include <QImageWriter>
11 #include <QMainWindow>
12 #include <QGridLayout>
13 #include <QPushButton>
59 void slotCreateNewRasterLayer();
60 void slotCreateNewShapedLayer();
61 void slotDeleteLayer();
62 void slotSetActiveLayer();
63 void slotSetActiveAlpha();
64 void slotSetPolygon();
65 void slotPositionMoveUp();
66 void slotPositionMoveDown();
67 void slotPositionMoveLeft();
68 void slotPositionMoveRight();
69 void slotMoveLayerUp();
70 void slotMoveLayerDown();
72 void slotUpdateRenderSettingsOn();
73 void slotUpdateRenderSettingsOff();
75 void slotSetFirstColor();
76 void slotSetSecondColor();
79 void slotCreatePenTool();
80 void slotCreatePlainTool();
81 void slotCreateLineTool();
82 void slotCreateRectangleTool();
83 void slotCreateCircleTool();
84 void slotCreatePolygonTool();
85 void slotCreateFloodFillTool();
87 void slotAboutDialog();
91 void slotEnterPressed();
94 void slotSetInnerAlpha();
96 void slotResetTools();
103 void setIntelliStyle();
108 bool saveFile(
const QByteArray &fileFormat);
110 void setDefaultToolValue();
115 const QSize Buttonsize = QSize(35,35);
117 QPushButton* CircleButton;
118 QPushButton* FloodFillButton;
119 QPushButton* LineButton;
120 QPushButton* PenButton;
121 QPushButton* PlainButton;
122 QPushButton* PolygonButton;
123 QPushButton* RectangleButton;
125 QLabel* innerAlphaLine;
126 QLineEdit* EditLineWidth;
127 QLineEdit* EditLineInnerAlpha;
128 QIntValidator* ValidatorLineWidth;
129 QIntValidator* ValidatorInnerAlpha;
131 QPushButton* FirstColorButton;
132 QPushButton* SecondColorButton;
133 QPushButton* SwitchColorButton;
135 QLabel* ActiveLayerLine;
136 QLabel* ActiveLayerImageLabel;
138 QPushButton* dimActive;
139 QPushButton* dimCanvas;
146 QMenu*layerCreationMenu;
149 QMenu*toolCreationMenu;
150 QMenu*toolSettingsMenu;
160 QAction*actionUpdateRenderSettingsOn;
161 QAction*actionUpdateRenderSettingsOff;
164 QAction* actionColorPickerFirstColor;
165 QAction* actionColorPickerSecondColor;
166 QAction* actionColorSwap;
169 QAction* actionCreatePenTool;
170 QAction* actionCreatePlainTool;
171 QAction* actionCreateLineTool;
172 QAction* actionCreateRectangleTool;
173 QAction* actionCreateCircleTool;
174 QAction* actionCreatePolygonTool;
175 QAction* actionCreateFloodFillTool;
178 QAction*actionChangeDim;
181 QAction* actionAboutDialog;
182 QAction* actionAboutQtDialog;
185 QAction* actionCreateNewRasterLayer;
186 QAction* actionCreateNewShapedLayer;
187 QAction* actionDeleteLayer;
188 QAction* actionSetActiveLayer;
189 QAction* actionSetActiveAlpha;
190 QAction* actionSetPolygon;
191 QAction* actionMovePositionUp;
192 QAction* actionMovePositionDown;
193 QAction* actionMovePositionLeft;
194 QAction* actionMovePositionRight;
195 QAction* actionMoveLayerUp;
196 QAction* actionMoveLayerDown;
199 QList<QAction*> actionSaveAs;
201 QAction* actionSetWidth;
202 QAction* actionSetInnerAlpha;
205 QWidget* centralGuiWidget;
206 QGridLayout* mainLayout;