mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 12:20:32 +02:00
SetColorTool, PenTool und FloodFillTool
LoL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user