From 07391b93b1699a61ff1642a9a98c7b38f42d1217 Mon Sep 17 00:00:00 2001 From: Sonaion Date: Thu, 19 Dec 2019 12:32:07 +0100 Subject: [PATCH] Small changes in grammer --- src/Tool/IntelliTool.h | 22 +++--- src/Tool/IntelliToolCircle.h | 2 +- src/Tool/IntelliToolCircle.h.autosave | 86 ------------------------ src/Tool/IntelliToolFloodFill.h | 2 +- src/Tool/IntelliToolFloodFill.h.autosave | 67 ------------------ 5 files changed, 13 insertions(+), 166 deletions(-) delete mode 100644 src/Tool/IntelliToolCircle.h.autosave delete mode 100644 src/Tool/IntelliToolFloodFill.h.autosave diff --git a/src/Tool/IntelliTool.h b/src/Tool/IntelliTool.h index 6ef8631..a00fbb9 100644 --- a/src/Tool/IntelliTool.h +++ b/src/Tool/IntelliTool.h @@ -67,42 +67,42 @@ public: /*! * \brief A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on. Call this in child classes! - * \param x - The x coordinate relative to the Active/Canvas Layer. - * \param y - The y coordinate relative to the Active/Canvas Layer. + * \param x - The x coordinate relative to the active/canvas layer. + * \param y - The y coordinate relative to the active/canvas layer. */ virtual void onMouseRightPressed(int x, int y); /*! * \brief A function managing the right click Released of a Mouse. Merging the Canvas to Active. Call this in child classes! - * \param x - The x coordinate relative to the Active/Canvas Layer. - * \param y - The y coordinate relative to the Active/Canvas Layer. + * \param x - The x coordinate relative to the active/canvas layer. + * \param y - The y coordinate relative to the active/canvas layer. */ virtual void onMouseRightReleased(int x, int y); /*! * \brief A function managing the left click Pressed of a Mouse. Resetting the current draw. Call this in child classes! - * \param x - The x coordinate relative to the Active/Canvas Layer. - * \param y - The y coordinate relative to the Active/Canvas Layer. + * \param x - The x coordinate relative to the active/canvas layer. + * \param y - The y coordinate relative to the active/canvas layer. */ virtual void onMouseLeftPressed(int x, int y); /*! * \brief A function managing the left click Released of a Mouse. Call this in child classes! - * \param x - The x coordinate relative to the Active/Canvas Layer. - * \param y - The y coordinate relative to the Active/Canvas Layer. + * \param x - The x coordinate relative to the active/canvas layer. + * \param y - The y coordinate relative to the active/canvas layer. */ virtual void onMouseLeftReleased(int x, int y); /*! - * \brief A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child classes! + * \brief A function managing the scroll event. A positive value means scrolling outwards. Call this in child classes! * \param value - The absolute the scroll has changed. */ virtual void onWheelScrolled(int value); /*! * \brief A function managing the mouse moved event. Call this in child classes! - * \param x - The x coordinate of the new Mouse Position. - * \param y - The y coordinate of the new Mouse Position. + * \param x - The x coordinate of the new mouse position. + * \param y - The y coordinate of the new mouse position. */ virtual void onMouseMoved(int x, int y); diff --git a/src/Tool/IntelliToolCircle.h b/src/Tool/IntelliToolCircle.h index 28e2fac..3ed747c 100644 --- a/src/Tool/IntelliToolCircle.h +++ b/src/Tool/IntelliToolCircle.h @@ -37,7 +37,7 @@ public: IntelliToolCircle(PaintingArea* Area, IntelliColorPicker* colorPicker); /*! - * \brief An Destructor. + * \brief A Destructor. */ virtual ~IntelliToolCircle() override; diff --git a/src/Tool/IntelliToolCircle.h.autosave b/src/Tool/IntelliToolCircle.h.autosave deleted file mode 100644 index 3ed747c..0000000 --- a/src/Tool/IntelliToolCircle.h.autosave +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef INTELLITOOLCIRCLE_H -#define INTELLITOOLCIRCLE_H -#include "IntelliTool.h" - -#include "QColor" -#include "QPoint" -/*! - * \brief The IntelliToolCircle class represents a tool to draw a circle. - */ -class IntelliToolCircle : public IntelliTool{ - /*! - * \brief A function that implements a circle drawing algorithm. - * \param radius - The radius of the circle. - */ - void drawCyrcle(int radius); - - /*! - * \brief The center of the circle. - */ - QPoint Middle; - - /*! - * \brief The alpha value of the inner circle. - */ - int alphaInner; - - /*! - * \brief The width of the outer circle edge. - */ - int edgeWidth; -public: - /*! - * \brief A constructor setting the general paintingArea and colorPicker. And reading in the inner alpha and edgeWidth. - * \param Area - The general paintingArea used by the project. - * \param colorPicker - The general colorPicker used by the project. - */ - IntelliToolCircle(PaintingArea* Area, IntelliColorPicker* colorPicker); - - /*! - * \brief A Destructor. - */ - virtual ~IntelliToolCircle() override; - - /*! - * \brief A function managing the right click pressed of a mouse. Clearing the canvas layer. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseRightPressed(int x, int y) override; - - /*! - * \brief A function managing the right click released of a mouse. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseRightReleased(int x, int y) override; - - /*! - * \brief A function managing the left click pressed of a mouse. Sets the middle point of the cricle. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseLeftPressed(int x, int y) override; - - /*! - * \brief A function managing the left click released of a mouse. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseLeftReleased(int x, int y) override; - - /*! - * \brief A function managing the scroll event. Changing the edge Width relative to value. - * \param value - The absolute the scroll has changed. - */ - virtual void onWheelScrolled(int value) override; - - /*! - * \brief A function managing the mouse moved event. Draws a circle with radius of eulerian norm of mouse position and the middle point. - * \param x - The x coordinate of the new mouse position. - * \param y - The y coordinate of the new mouse position. - */ - virtual void onMouseMoved(int x, int y) override; -}; - -#endif // INTELLITOOLCIRCLE_H diff --git a/src/Tool/IntelliToolFloodFill.h b/src/Tool/IntelliToolFloodFill.h index ff40817..4e3eb04 100644 --- a/src/Tool/IntelliToolFloodFill.h +++ b/src/Tool/IntelliToolFloodFill.h @@ -17,7 +17,7 @@ public: IntelliToolFloodFill(PaintingArea* Area, IntelliColorPicker* colorPicker); /*! - * \brief An Destructor. + * \brief A Destructor. */ virtual ~IntelliToolFloodFill() override; diff --git a/src/Tool/IntelliToolFloodFill.h.autosave b/src/Tool/IntelliToolFloodFill.h.autosave deleted file mode 100644 index 4e3eb04..0000000 --- a/src/Tool/IntelliToolFloodFill.h.autosave +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef INTELLITOOLFLOODFILL_H -#define INTELLITOOLFLOODFILL_H -#include "IntelliTool.h" - -#include "QColor" - -/*! - * \brief The IntelliToolFloodFill class represents a tool to flood FIll a certian area. - */ -class IntelliToolFloodFill : public IntelliTool{ -public: - /*! - * \brief A constructor setting the general paintingArea and colorPicker. - * \param Area - The general paintingArea used by the project. - * \param colorPicker - The general colorPicker used by the project. - */ - IntelliToolFloodFill(PaintingArea* Area, IntelliColorPicker* colorPicker); - - /*! - * \brief A Destructor. - */ - virtual ~IntelliToolFloodFill() override; - - - /*! - * \brief A function managing the right click pressed of a mouse. Clearing the canvas. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseRightPressed(int x, int y) override; - - /*! - * \brief A function managing the right click released of a mouse. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseRightReleased(int x, int y) override; - - /*! - * \brief A function managing the left click pressed of a mouse. Sets the point to flood fill around and does this. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseLeftPressed(int x, int y) override; - - /*! - * \brief A function managing the left click released of a mouse. - * \param x - The x coordinate relative to the active/canvas layer. - * \param y - The y coordinate relative to the active/canvas layer. - */ - virtual void onMouseLeftReleased(int x, int y) override; - - /*! - * \brief A function managing the scroll event. - * \param value - The absolute the scroll has changed. - */ - virtual void onWheelScrolled(int value) override; - - /*! - * \brief A function managing the mouse moved event. - * \param x - The x coordinate of the new mouse position. - * \param y - The y coordinate of the new mouse position. - */ - virtual void onMouseMoved(int x, int y) override; -}; - -#endif // INTELLITOOLFLOODFILL_H