1 #ifndef IntelliPhotoGui_H
2 #define IntelliPhotoGui_H
7 #include <QImageWriter>
11 #include <QMainWindow>
12 #include <QGridLayout>
13 #include <QPushButton>
17 #include <QScrollArea>
61 void slotCreateNewRasterLayer();
62 void slotCreateNewShapedLayer();
63 void slotDeleteLayer();
64 void slotSetActiveLayer();
65 void slotSetActiveAlpha();
66 void slotSetPolygon();
67 void slotPositionMoveUp();
68 void slotPositionMoveDown();
69 void slotPositionMoveLeft();
70 void slotPositionMoveRight();
71 void slotMoveLayerUp();
72 void slotMoveLayerDown();
74 void slotUpdateRenderSettingsOn();
75 void slotUpdateRenderSettingsOff();
77 void slotSetFirstColor();
78 void slotSetSecondColor();
81 void slotCreatePenTool();
82 void slotCreatePlainTool();
83 void slotCreateLineTool();
84 void slotCreateRectangleTool();
85 void slotCreateCircleTool();
86 void slotCreatePolygonTool();
87 void slotCreateFloodFillTool();
89 void slotAboutDialog();
93 void slotEnterPressed();
96 void slotSetInnerAlpha();
98 void slotResetTools();
101 void slotGoForward();
106 void createActions();
109 void setIntelliStyle();
114 bool saveFile(
const QByteArray &fileFormat);
117 void setDefaultValues();
126 const QSize Buttonsize = QSize(35,35);
129 QPushButton* CircleButton;
130 QPushButton* FloodFillButton;
131 QPushButton* LineButton;
132 QPushButton* PenButton;
133 QPushButton* PlainButton;
134 QPushButton* PolygonButton;
135 QPushButton* RectangleButton;
136 QPushButton* FirstColorButton;
137 QPushButton* SecondColorButton;
138 QPushButton* SwitchColorButton;
139 QPushButton* dimActive;
140 QPushButton* dimCanvas;
144 QLabel* innerAlphaLine;
145 QLabel* ActiveLayerLine;
146 QLabel* ActiveLayerImageLabel;
149 QScrollArea* ScrollArea;
152 QLineEdit* EditLineWidth;
153 QLineEdit* EditLineInnerAlpha;
156 QIntValidator* ValidatorLineWidth;
157 QIntValidator* ValidatorInnerAlpha;
165 QMenu* layerCreationMenu;
168 QMenu* toolCreationMenu;
169 QMenu* toolSettingsMenu;
179 QAction*actionUpdateRenderSettingsOn;
180 QAction*actionUpdateRenderSettingsOff;
183 QAction* actionColorPickerFirstColor;
184 QAction* actionColorPickerSecondColor;
185 QAction* actionColorSwap;
188 QAction* actionCreatePenTool;
189 QAction* actionCreatePlainTool;
190 QAction* actionCreateLineTool;
191 QAction* actionCreateRectangleTool;
192 QAction* actionCreateCircleTool;
193 QAction* actionCreatePolygonTool;
194 QAction* actionCreateFloodFillTool;
197 QAction* actionChangeDim;
198 QAction* actionSetWidth;
199 QAction* actionSetInnerAlpha;
202 QAction* actionAboutDialog;
203 QAction* actionAboutQtDialog;
206 QAction* actionCreateNewRasterLayer;
207 QAction* actionCreateNewShapedLayer;
208 QAction* actionDeleteLayer;
209 QAction* actionSetActiveLayer;
210 QAction* actionSetActiveAlpha;
211 QAction* actionSetPolygon;
212 QAction* actionMovePositionUp;
213 QAction* actionMovePositionDown;
214 QAction* actionMovePositionLeft;
215 QAction* actionMovePositionRight;
216 QAction* actionMoveLayerUp;
217 QAction* actionMoveLayerDown;
220 QList<QAction*> actionSaveAs;
224 QAction* actionGoBack;
225 QAction* actionGoForward;
228 QWidget* centralGuiWidget;
229 QGridLayout* mainLayout;