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

@@ -7,8 +7,9 @@
#include <QPoint>
#include <QWidget>
#include <QList>
#include"Image/IntelliImage.h"
#include"Tool/IntelliTool.h"
#include "Image/IntelliImage.h"
#include "Tool/IntelliTool.h"
#include "Tool/IntelliToolSetColorTool.h"
struct LayerObject{
@@ -32,6 +33,8 @@ class PaintingArea : public QWidget
public:
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent = nullptr);
IntelliToolSetColorTool* getTool(); //TODO: rename function, when there are more Tools
// Handles all events
bool open(const QString &fileName);
bool save(const QString &fileName, const char *fileFormat);
@@ -78,6 +81,7 @@ private:
int maxHeight;
IntelliTool* Tool;
IntelliToolSetColorTool* ColorTool;
std::vector<LayerObject> layerBundle;
int activeLayer=-1;