Bug free tool strucute - try me bitch

This commit is contained in:
Sonaion
2019-12-12 13:03:08 +01:00
parent 8f615c26b1
commit 84ea429b2a
15 changed files with 111 additions and 76 deletions

View File

@@ -11,6 +11,7 @@
#include "Image/IntelliRasterImage.h"
#include "Image/IntelliShapedImage.h"
#include "Tool/IntelliTool.h"
#include "IntelliHelper/IntelliColorPicker.h"
struct LayerObject{
@@ -24,8 +25,6 @@ struct LayerObject{
};
class IntelliColorPicker;
class PaintingArea : public QWidget
{
// Declares our class as a QObject which is the base class
@@ -52,6 +51,11 @@ public:
// Has the image been modified since last save
bool isModified() const { return modified; }
//change properties of colorPicker
void colorPickerSetFirstColor();
void colorPickerSetSecondColor();
void colorPickerSwitchColor();
//create tools
void createPenTool();
void createPlainTool();
@@ -86,6 +90,7 @@ private:
int maxHeight;
IntelliTool* Tool;
IntelliColorPicker colorPicker;
std::vector<LayerObject> layerBundle;
int activeLayer=-1;