diff --git a/src/tools/drawTools/vtoollineintersect.h b/src/tools/drawTools/vtoollineintersect.h index d9bd952b6..520bfc478 100644 --- a/src/tools/drawTools/vtoollineintersect.h +++ b/src/tools/drawTools/vtoollineintersect.h @@ -33,23 +33,23 @@ #include "../../dialogs/dialoglineintersect.h" /** - * @brief The VToolLineIntersect class + * @brief The VToolLineIntersect class help find point intersection lines. */ class VToolLineIntersect:public VToolPoint { Q_OBJECT public: /** - * @brief VToolLineIntersect - * @param doc dom document container - * @param data container with variables - * @param id object id in container - * @param p1Line1 - * @param p2Line1 - * @param p1Line2 - * @param p2Line2 + * @brief VToolLineIntersect constructor. + * @param doc dom document container. + * @param data container with variables. + * @param id object id in container. + * @param p1Line1 id first point first line. + * @param p2Line1 id second point first line. + * @param p1Line2 id first point second line. + * @param p2Line2 id second point second line. * @param typeCreation way we create this tool. - * @param parent parent object + * @param parent parent object. */ VToolLineIntersect(VDomDocument *doc, VContainer *data, const qint64 &id, const qint64 &p1Line1, const qint64 &p2Line1, const qint64 &p1Line2, const qint64 &p2Line2, @@ -59,27 +59,27 @@ public: */ virtual void setDialog(); /** - * @brief Create help create tool - * @param dialog + * @brief Create help create tool from GUI. + * @param dialog dialog. * @param scene pointer to scene. - * @param doc dom document container - * @param data container with variables + * @param doc dom document container. + * @param data container with variables. */ static void Create(QSharedPointer &dialog, VMainGraphicsScene *scene, VDomDocument *doc, VContainer *data); /** - * @brief Create help create tool + * @brief Create help create tool. * @param _id tool id, 0 if tool doesn't exist yet. - * @param p1Line1Id - * @param p2Line1Id - * @param p1Line2Id - * @param p2Line2Id + * @param p1Line1Id id first point first line. + * @param p2Line1Id id second point first line. + * @param p1Line2Id id first point second line. + * @param p2Line2Id id second point second line. * @param pointName point name. * @param mx label bias x axis. * @param my label bias y axis. * @param scene pointer to scene. - * @param doc dom document container - * @param data container with variables + * @param doc dom document container. + * @param data container with variables. * @param parse parser file mode. * @param typeCreation way we create this tool. */ @@ -87,9 +87,6 @@ public: const qint64 &p2Line2Id, const QString &pointName, const qreal &mx, const qreal &my, VMainGraphicsScene *scene, VDomDocument *doc, VContainer *data, const Document::Documents &parse, const Tool::Sources &typeCreation); - /** - * @brief ToolType - */ static const QString ToolType; public slots: /** @@ -98,7 +95,7 @@ public slots: virtual void FullUpdateFromFile(); /** * @brief FullUpdateFromGui refresh tool data from change options. - * @param result + * @param result result working dialog. */ virtual void FullUpdateFromGui(int result); /** @@ -106,11 +103,15 @@ public slots: * @param factor scene scale factor. */ virtual void SetFactor(qreal factor); + /** + * @brief ShowContextMenu show context menu. + * @param event context menu event. + */ virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); protected: /** * @brief contextMenuEvent handle context menu events. - * @param event + * @param event context menu event. */ virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); /** @@ -127,23 +128,23 @@ protected: virtual void RemoveReferens(); private: /** - * @brief p1Line1 + * @brief p1Line1 id first point first line. */ qint64 p1Line1; /** - * @brief p2Line1 + * @brief p2Line1 id second point first line. */ qint64 p2Line1; /** - * @brief p1Line2 + * @brief p1Line2 id first point second line. */ qint64 p1Line2; /** - * @brief p2Line2 + * @brief p2Line2 id second point second line. */ qint64 p2Line2; /** - * @brief dialogLineIntersect + * @brief dialogLineIntersect dialog. */ QSharedPointer dialogLineIntersect; };