mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-16 13:20:33 +02:00
added comments but gui
This commit is contained in:
@@ -176,36 +176,91 @@ void colorPickerSetSecondColor();
|
||||
*/
|
||||
void colorPickerSwapColors();
|
||||
|
||||
/*!
|
||||
* \brief createPenTool creates a Pen Tool.
|
||||
*/
|
||||
void createPenTool();
|
||||
|
||||
/*!
|
||||
* \brief createPlainTool creates a Plain Tool.
|
||||
*/
|
||||
void createPlainTool();
|
||||
|
||||
/*!
|
||||
* \brief createLineTool creates a Line Tool.
|
||||
*/
|
||||
void createLineTool();
|
||||
|
||||
/*!
|
||||
* \brief createRectangleTool creates a Rectangle Tool.
|
||||
*/
|
||||
void createRectangleTool();
|
||||
|
||||
/*!
|
||||
* \brief createCircleTool creates a Circle Tool.
|
||||
*/
|
||||
void createCircleTool();
|
||||
|
||||
/*!
|
||||
* \brief createPolygonTool creates a Polygon Tool.
|
||||
*/
|
||||
void createPolygonTool();
|
||||
|
||||
/*!
|
||||
* \brief createFloodFillTool creates a Floodfill Tool.
|
||||
*/
|
||||
void createFloodFillTool();
|
||||
|
||||
/*!
|
||||
* \brief createGradientTool creates a Gradient Tool.
|
||||
*/
|
||||
void createGradientTool();
|
||||
|
||||
/*!
|
||||
* \brief The getWidthOfActive gets the horizontal dimensions of the active layer
|
||||
* \return Returns the horizontal pixle count of the active layer
|
||||
* \brief The getWidthOfActive gets the horizontal dimensions of the active layer.
|
||||
* \return Returns the horizontal pixle count of the active layer.
|
||||
*/
|
||||
int getWidthOfActive();
|
||||
/*!
|
||||
* \brief The getHeightOfActive gets the vertical dimensions of the active layer
|
||||
* \return Returns the vertical pixle count of the active layer
|
||||
* \brief The getHeightOfActive gets the vertical dimensions of the active layer.
|
||||
* \return Returns the vertical pixle count of the active layer.
|
||||
*/
|
||||
int getHeightOfActive();
|
||||
|
||||
/*!
|
||||
* \brief getMaxWidth gets the max width of the Canvas.
|
||||
* \return return the width of the Canvas.
|
||||
*/
|
||||
int getMaxWidth();
|
||||
|
||||
/*!
|
||||
* \brief getMaxHeight gets the max height of the Canvas.
|
||||
* \return return the height of the Canvas.
|
||||
*/
|
||||
int getMaxHeight();
|
||||
|
||||
ImageType getTypeOfImageRealLayer();
|
||||
/*!
|
||||
* \brief getTypeOfImageActiveLayer get the type of the active Layer.
|
||||
* \return returns the image type of the active layer.
|
||||
*/
|
||||
ImageType getTypeOfImageActiveLayer();
|
||||
|
||||
std::vector<QPoint> getPolygonDataOfRealLayer();
|
||||
/*!
|
||||
* \brief getPolygonDataOfActiveLayer get the polygon data of the active Layer.
|
||||
* \return return the polygon data of the active Layer.
|
||||
*/
|
||||
std::vector<QPoint> getPolygonDataOfActiveLayer();
|
||||
|
||||
int getNumberOfActiveLayer();
|
||||
/*!
|
||||
* \brief getIndexOfActiveLayer returns the index of athe active Layer.
|
||||
* \return return the index of the active Layer.
|
||||
*/
|
||||
int getIndexOfActiveLayer();
|
||||
|
||||
/*!
|
||||
* \brief getImageOfActiveLayer returns the image of the active Layer.
|
||||
* \return return the image of the active Layer.
|
||||
*/
|
||||
IntelliImage* getImageOfActiveLayer();
|
||||
|
||||
/*!
|
||||
@@ -220,16 +275,44 @@ QImage getImageDataOfActiveLayer();
|
||||
*/
|
||||
std::vector<LayerObject>* getLayerBundle();
|
||||
|
||||
/*!
|
||||
* \brief Toolsettings - a class to manage Tool settings.
|
||||
*/
|
||||
IntelliToolsettings Toolsettings;
|
||||
|
||||
/*!
|
||||
* \brief colorPicker a class to manage Tool color.
|
||||
*/
|
||||
IntelliColorPicker colorPicker;
|
||||
|
||||
/*!
|
||||
* \brief historyGoBack a function to return the previous state of the project.
|
||||
*/
|
||||
void historyGoBack();
|
||||
|
||||
/*!
|
||||
* \brief historyGoForward a function to undo the return of the previous state of the project.
|
||||
*/
|
||||
void historyGoForward();
|
||||
|
||||
void setLayerDimensions(int maxWidth, int maxHeight);
|
||||
/*!
|
||||
* \brief setCanvasDimensions sets the dimension of the Canvas
|
||||
* \param maxWidth - the width of the Canvas.
|
||||
* \param maxHeight - the height of the Canvas.
|
||||
*/
|
||||
void setCanvasDimensions(int maxWidth, int maxHeight);
|
||||
|
||||
void setPixelToActive(QColor color, QPoint point);
|
||||
/*!
|
||||
* \brief drawPixelOntoActive draws a pixel onto the image data of the active Layer.
|
||||
* \param color - the color of the Pixel, which should be created.
|
||||
* \param point - the Pixelposition.
|
||||
*/
|
||||
void drawPixelOntoActive(QColor color, QPoint point);
|
||||
|
||||
/*!
|
||||
* \brief setPolygonDataToActive sets polygondata to the active Layer.
|
||||
* \param points - the points of the polygon data.
|
||||
*/
|
||||
void setPolygonDataToActive(std::vector<QPoint> points);
|
||||
public slots:
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user