mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
FloodfillTool and more docs
This commit is contained in:
@@ -25,6 +25,7 @@ SOURCES += \
|
||||
Layer/PaintingArea.cpp \
|
||||
Tool/IntelliTool.cpp \
|
||||
Tool/IntelliToolCircle.cpp \
|
||||
Tool/IntelliToolFloodFill.cpp \
|
||||
Tool/IntelliToolLine.cpp \
|
||||
Tool/IntelliToolPen.cpp \
|
||||
Tool/IntelliToolPlain.cpp \
|
||||
@@ -41,6 +42,7 @@ HEADERS += \
|
||||
Layer/PaintingArea.h \
|
||||
Tool/IntelliTool.h \
|
||||
Tool/IntelliToolCircle.h \
|
||||
Tool/IntelliToolFloodFill.h \
|
||||
Tool/IntelliToolLine.h \
|
||||
Tool/IntelliToolPen.h \
|
||||
Tool/IntelliToolPlain.h \
|
||||
|
||||
@@ -32,7 +32,7 @@ class PaintingArea : public QWidget
|
||||
friend IntelliTool;
|
||||
public:
|
||||
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent = nullptr);
|
||||
~PaintingArea();
|
||||
~PaintingArea() override;
|
||||
|
||||
// Handles all events
|
||||
bool open(const QString &fileName);
|
||||
|
||||
23
src/Tool/IntelliToolFloodFill.h
Normal file
23
src/Tool/IntelliToolFloodFill.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef INTELLITOOLFLOODFILL_H
|
||||
#define INTELLITOOLFLOODFILL_H
|
||||
#include "IntelliTool.h"
|
||||
|
||||
#include "QColor"
|
||||
|
||||
class IntelliToolFloodFill : public IntelliTool{
|
||||
public:
|
||||
IntelliToolFloodFill(PaintingArea* Area, IntelliColorPicker* colorPicker);
|
||||
virtual ~IntelliToolFloodFill() override;
|
||||
|
||||
|
||||
virtual void onMouseRightPressed(int x, int y) override;
|
||||
virtual void onMouseRightReleased(int x, int y) override;
|
||||
virtual void onMouseLeftPressed(int x, int y) override;
|
||||
virtual void onMouseLeftReleased(int x, int y) override;
|
||||
|
||||
virtual void onWheelScrolled(int value) override;
|
||||
|
||||
virtual void onMouseMoved(int x, int y) override;
|
||||
};
|
||||
|
||||
#endif // INTELLITOOLFLOODFILL_H
|
||||
Reference in New Issue
Block a user