mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 20:30:32 +02:00
Refractoring of "Rechteck" to "rectangle"
This commit is contained in:
29
src/Tool/IntelliToolRectangle.h
Normal file
29
src/Tool/IntelliToolRectangle.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef INTELLIRECTANGLETOOL_H
|
||||
#define INTELLIRECTANGLETOOL_H
|
||||
|
||||
#include "IntelliTool.h"
|
||||
|
||||
#include "QColor"
|
||||
#include "QPoint"
|
||||
|
||||
class IntelliToolRectangle : public IntelliTool{
|
||||
void drawRectangle(QPoint otherCornor);
|
||||
|
||||
QPoint originCornor;
|
||||
int alphaInner;
|
||||
int edgeWidth;
|
||||
public:
|
||||
IntelliToolRectangle(PaintingArea* Area, IntelliColorPicker* colorPicker);
|
||||
virtual ~IntelliToolRectangle() 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 // INTELLIRECTANGLETOOL_H
|
||||
Reference in New Issue
Block a user