SetColorTool, PenTool und FloodFillTool

LoL
This commit is contained in:
AshBastian
2019-12-11 16:29:11 +01:00
parent 10fba8c454
commit 72bde027ed
13 changed files with 184 additions and 13 deletions

View File

@@ -11,11 +11,14 @@
#include "Image/IntelliRasterImage.h"
#include "Image/IntelliShapedImage.h"
#include "Tool/IntelliToolPen.h"
#include "Tool/IntelliToolSetColorTool.h"
#include "Tool/IntelliToolFloodFillTool.h"
PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
:QWidget(parent){
this->Tool = new IntelliToolPen(this);
this->Tool = new IntelliToolFloodFillTool(this);
this->ColorTool = new IntelliToolSetColorTool(this);
this->setUp(maxWidth, maxHeight);
//tetsing
this->addLayer(200,200,0,0,ImageType::Shaped_Image);
@@ -34,6 +37,10 @@ PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
activeLayer=1;
}
IntelliToolSetColorTool* PaintingArea::getTool(){
return ColorTool;
}
void PaintingArea::setUp(int maxWidth, int maxHeight){
//set standart parameter
this->maxWidth = maxWidth;