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();
89 void slotEnterPressed();
92 void slotSetInnerAlpha();
94 void slotResetTools();
101 void setIntelliStyle();
106 bool saveFile(
const QByteArray &fileFormat);
108 void setDefaultToolValue();
113 const QSize Buttonsize = QSize(35,35);
115 QPushButton* CircleButton;
116 QPushButton* FloodFillButton;
117 QPushButton* LineButton;
118 QPushButton* PenButton;
119 QPushButton* PlainButton;
120 QPushButton* PolygonButton;
121 QPushButton* RectangleButton;
123 QLabel* innerAlphaLine;
124 QLineEdit* EditLineWidth;
125 QLineEdit* EditLineInnerAlpha;
126 QIntValidator* ValidatorLineWidth;
127 QIntValidator* ValidatorInnerAlpha;
129 QPushButton* FirstColorButton;
130 QPushButton* SecondColorButton;
131 QPushButton* SwitchColorButton;
133 QLabel* ActiveLayerLine;
134 QLabel* ActiveLayerImageLabel;
141 QMenu*layerCreationMenu;
144 QMenu*toolCreationMenu;
145 QMenu*toolSettingsMenu;
155 QAction*actionUpdateRenderSettingsOn;
156 QAction*actionUpdateRenderSettingsOff;
159 QAction* actionColorPickerFirstColor;
160 QAction* actionColorPickerSecondColor;
161 QAction* actionColorSwap;
164 QAction* actionCreatePenTool;
165 QAction* actionCreatePlainTool;
166 QAction* actionCreateLineTool;
167 QAction* actionCreateRectangleTool;
168 QAction* actionCreateCircleTool;
169 QAction* actionCreatePolygonTool;
170 QAction* actionCreateFloodFillTool;
173 QAction* actionAboutDialog;
174 QAction* actionAboutQtDialog;
177 QAction* actionCreateNewRasterLayer;
178 QAction* actionCreateNewShapedLayer;
179 QAction* actionDeleteLayer;
180 QAction* actionSetActiveLayer;
181 QAction* actionSetActiveAlpha;
182 QAction* actionSetPolygon;
183 QAction* actionMovePositionUp;
184 QAction* actionMovePositionDown;
185 QAction* actionMovePositionLeft;
186 QAction* actionMovePositionRight;
187 QAction* actionMoveLayerUp;
188 QAction* actionMoveLayerDown;
191 QList<QAction*> actionSaveAs;
193 QAction* actionSetWidth;
194 QAction* actionSetInnerAlpha;
197 QWidget* centralGuiWidget;
198 QGridLayout* mainLayout;