mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 04:10:31 +02:00
gui changes for tool anwendung
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
|
||||
:QWidget(parent){
|
||||
this->Tool = new IntelliToolPolygon(this, &colorPicker);
|
||||
this->Tool = nullptr;
|
||||
this->setUp(maxWidth, maxHeight);
|
||||
this->addLayer(200,200,0,0,ImageType::Shaped_Image);
|
||||
layerBundle[0].image->drawPlain(QColor(0,0,255,255));
|
||||
@@ -192,6 +192,25 @@ void PaintingArea::createLineTool(){
|
||||
Tool = new IntelliToolLine(this, &colorPicker);
|
||||
}
|
||||
|
||||
void PaintingArea::createRectangleTool(){
|
||||
delete this->Tool;
|
||||
Tool = new IntelliToolRectangle(this, &colorPicker);
|
||||
}
|
||||
|
||||
void PaintingArea::createCircleTool(){
|
||||
delete this->Tool;
|
||||
Tool = new IntelliToolCircle(this, &colorPicker);
|
||||
}
|
||||
void PaintingArea::createPolygonTool(){
|
||||
delete this->Tool;
|
||||
Tool = new IntelliToolPolygon(this, &colorPicker);
|
||||
}
|
||||
|
||||
void PaintingArea::createFloodFillTool(){
|
||||
delete this->Tool;
|
||||
Tool = new IntelliToolFloodFill(this, &colorPicker);
|
||||
}
|
||||
|
||||
int PaintingArea::getWidthOfActive(){
|
||||
return this->layerBundle[activeLayer].width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user