Documentation for VToolBisector class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-24 19:10:04 +02:00
parent 9a92096853
commit a0ab7d913c
33 changed files with 164 additions and 156 deletions

View File

@ -69,17 +69,17 @@ public slots:
virtual void ShowTool(qint64 id, Qt::GlobalColor color, bool enable); virtual void ShowTool(qint64 id, Qt::GlobalColor color, bool enable);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName name new active pattern peace. * @param newName new name active pattern peace. name new active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
* @brief ChangedNameDraw save new name active pattern peace. * @brief ChangedNameDraw save new name active pattern peace.
* @param oldName old name. * @param oldName old name.
* @param newName new name. * @param newName new name active pattern peace. new name.
*/ */
void ChangedNameDraw(const QString &oldName, const QString &newName); void ChangedNameDraw(const QString &oldName, const QString &newName);
/** /**
* @brief FullUpdateFromGui refresh tool data from change options. * @brief FullUpdateFromGui refresh tool data after change in options.
* @param result keep result working dialog. * @param result keep result working dialog.
*/ */
virtual void FullUpdateFromGui(int result)=0; virtual void FullUpdateFromGui(int result)=0;

View File

@ -110,7 +110,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent handle context menu event. * @brief contextMenuEvent handle context menu events. handle context menu event.
* @param event context menu event. * @param event context menu event.
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -35,14 +35,14 @@
#include "../../widgets/vcontrolpointspline.h" #include "../../widgets/vcontrolpointspline.h"
/** /**
* @brief The VToolArc class * @brief The VToolArc class tool for creation arc.
*/ */
class VToolArc :public VDrawTool, public QGraphicsPathItem class VToolArc :public VDrawTool, public QGraphicsPathItem
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
* @brief VToolArc * @brief VToolArc constuctor.
* @param doc dom document container * @param doc dom document container
* @param data container with variables * @param data container with variables
* @param id object id in container * @param id object id in container
@ -57,7 +57,7 @@ public:
virtual void setDialog(); virtual void setDialog();
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param dialog * @param dialog dialog options.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container
* @param data container with variables * @param data container with variables
@ -65,28 +65,22 @@ public:
static void Create(QSharedPointer<DialogArc> &dialog, VMainGraphicsScene *scene, VDomDocument *doc, static void Create(QSharedPointer<DialogArc> &dialog, VMainGraphicsScene *scene, VDomDocument *doc,
VContainer *data); VContainer *data);
/** /**
* @brief Create help create tool * @brief Create help create tool form GUI.
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param center * @param center id arc center point.
* @param radius * @param radius arc radius.
* @param f1 * @param f1 start angle of arc.
* @param f2 * @param f2 end angle of arc.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
* @param parse parser file mode. * @param parse parser file mode.
* @param typeCreation way we create this tool. * @param typeCreation way we create this tool.
*/ */
static void Create(const qint64 _id, const qint64 &center, const QString &radius, const QString &f1, static void Create(const qint64 _id, const qint64 &center, const QString &radius, const QString &f1,
const QString &f2, VMainGraphicsScene *scene, VDomDocument *doc, VContainer *data, const QString &f2, VMainGraphicsScene *scene, VDomDocument *doc, VContainer *data,
const Document::Documents &parse, const Tool::Sources &typeCreation); const Document::Documents &parse, const Tool::Sources &typeCreation);
/**
* @brief TagName
*/
static const QString TagName; static const QString TagName;
/**
* @brief ToolType
*/
static const QString ToolType; static const QString ToolType;
public slots: public slots:
/** /**
@ -94,20 +88,20 @@ public slots:
*/ */
virtual void FullUpdateFromFile(); virtual void FullUpdateFromFile();
/** /**
* @brief FullUpdateFromGui refresh tool data from change options. * @brief FullUpdateFromGui refresh tool data after change in options.
* @param result * @param result result working options window.
*/ */
virtual void FullUpdateFromGui(int result); virtual void FullUpdateFromGui(int result);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
* @brief ShowTool highlight tool. * @brief ShowTool highlight tool.
* @param id object id in container * @param id object id in container
* @param color * @param color highlight color.
* @param enable * @param enable enable or disable highlight.
*/ */
virtual void ShowTool(qint64 id, Qt::GlobalColor color, bool enable); virtual void ShowTool(qint64 id, Qt::GlobalColor color, bool enable);
/** /**
@ -117,8 +111,8 @@ public slots:
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event context menu event.
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
/** /**
@ -130,33 +124,43 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event mouse release event.
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event hover move event.
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event hover leave event.
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief RemoveReferens decrement value of reference. * @brief RemoveReferens decrement value of reference.
*/ */
virtual void RemoveReferens(); virtual void RemoveReferens();
/**
* @brief itemChange handle tool change.
* @param change change.
* @param value value.
* @return value.
*/
virtual QVariant itemChange ( GraphicsItemChange change, const QVariant &value ); virtual QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
/**
* @brief keyReleaseEvent handle key release events.
* @param event key release event.
*/
virtual void keyReleaseEvent(QKeyEvent * event); virtual void keyReleaseEvent(QKeyEvent * event);
private: private:
/** /**
* @brief dialogArc * @brief dialogArc dialog.
*/ */
QSharedPointer<DialogArc> dialogArc; QSharedPointer<DialogArc> dialogArc;
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
}; };

View File

@ -33,35 +33,35 @@
#include "../../dialogs/dialogbisector.h" #include "../../dialogs/dialogbisector.h"
/** /**
* @brief The VToolBisector class * @brief The VToolBisector class tool for creation bisector point.
*/ */
class VToolBisector : public VToolLinePoint class VToolBisector : public VToolLinePoint
{ {
public: public:
/** /**
* @brief VToolBisector * @brief VToolBisector constructor.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
* @param id object id in container * @param id object id in container.
* @param typeLine line type. * @param typeLine line type.
* @param formula * @param formula string with formula length of bisector.
* @param firstPointId * @param firstPointId id first point of angle.
* @param secondPointId * @param secondPointId id second point of angle.
* @param thirdPointId * @param thirdPointId id third point of angle.
* @param typeCreation way we create this tool. * @param typeCreation way we create this tool.
* @param parent parent object * @param parent parent object.
*/ */
VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id, const QString &typeLine, VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id, const QString &typeLine,
const QString &formula, const qint64 &firstPointId, const qint64 &secondPointId, const QString &formula, const qint64 &firstPointId, const qint64 &secondPointId,
const qint64 &thirdPointId, const Tool::Sources &typeCreation, const qint64 &thirdPointId, const Tool::Sources &typeCreation,
QGraphicsItem * parent = 0); QGraphicsItem * parent = 0);
/** /**
* @brief FindPoint * @brief FindPoint find bisector point.
* @param firstPoint * @param firstPoint first point of angle.
* @param secondPoint * @param secondPoint second point of angle.
* @param thirdPoint * @param thirdPoint third point of angle.
* @param length * @param length bisector length.
* @return * @return bisector point.
*/ */
static QPointF FindPoint(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint, static QPointF FindPoint(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint,
const qreal& length); const qreal& length);
@ -70,28 +70,28 @@ public:
*/ */
virtual void setDialog(); virtual void setDialog();
/** /**
* @brief Create help create tool * @brief Create help create tool form GUI.
* @param dialog * @param dialog dialog.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
*/ */
static void Create(QSharedPointer<DialogBisector> &dialog, VMainGraphicsScene *scene, static void Create(QSharedPointer<DialogBisector> &dialog, VMainGraphicsScene *scene,
VDomDocument *doc, VContainer *data); 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 _id tool id, 0 if tool doesn't exist yet.
* @param formula * @param formula string with formula.
* @param firstPointId * @param firstPointId id first point of angle.
* @param secondPointId * @param secondPointId id second point of angle.
* @param thirdPointId * @param thirdPointId id third point of angle.
* @param typeLine line type. * @param typeLine line type.
* @param pointName * @param pointName point name.
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
* @param scene pointer to scene. * @param scene pointer to scene.
* @param doc dom document container * @param doc dom document container.
* @param data container with variables * @param data container with variables.
* @param parse parser file mode. * @param parse parser file mode.
* @param typeCreation way we create this tool. * @param typeCreation way we create this tool.
*/ */
@ -100,9 +100,6 @@ public:
const QString &pointName, const qreal &mx, const qreal &my, VMainGraphicsScene *scene, const QString &pointName, const qreal &mx, const qreal &my, VMainGraphicsScene *scene,
VDomDocument *doc, VContainer *data, const Document::Documents &parse, VDomDocument *doc, VContainer *data, const Document::Documents &parse,
const Tool::Sources &typeCreation); const Tool::Sources &typeCreation);
/**
* @brief ToolType
*/
static const QString ToolType; static const QString ToolType;
public slots: public slots:
/** /**
@ -119,11 +116,15 @@ public slots:
* @param factor scene scale factor. * @param factor scene scale factor.
*/ */
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
/**
* @brief ShowContextMenu show context menu.
* @param event context menu event.
*/
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event context menu event.
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
/** /**
@ -140,15 +141,15 @@ protected:
virtual void RemoveReferens(); virtual void RemoveReferens();
private: private:
/** /**
* @brief firstPointId * @brief firstPointId id first point of angle.
*/ */
qint64 firstPointId; qint64 firstPointId;
/** /**
* @brief thirdPointId * @brief thirdPointId id third point of angle.
*/ */
qint64 thirdPointId; qint64 thirdPointId;
/** /**
* @brief dialogBisector * @brief dialogBisector dialog.
*/ */
QSharedPointer<DialogBisector> dialogBisector; QSharedPointer<DialogBisector> dialogBisector;
}; };

View File

@ -33,6 +33,9 @@
#include "../../dialogs/dialogcutarc.h" #include "../../dialogs/dialogcutarc.h"
#include "../../widgets/vsimplearc.h" #include "../../widgets/vsimplearc.h"
/**
* @brief The VToolCutArc class tool for
*/
class VToolCutArc : public VToolPoint class VToolCutArc : public VToolPoint
{ {
Q_OBJECT Q_OBJECT
@ -71,13 +74,13 @@ public slots:
void ArcChoosed(qint64 id); void ArcChoosed(qint64 id);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -90,7 +93,7 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
private: private:

View File

@ -69,7 +69,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param formula * @param formula
* @param splineId * @param splineId
* @param mx label bias x axis. * @param mx label bias x axis.
@ -106,13 +106,13 @@ public slots:
void SplineChoosed(qint64 id); void SplineChoosed(qint64 id);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -125,7 +125,7 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
virtual void RemoveReferens(); virtual void RemoveReferens();

View File

@ -59,7 +59,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param formula * @param formula
* @param splineId * @param splineId
* @param mx label bias x axis. * @param mx label bias x axis.
@ -96,13 +96,13 @@ public slots:
void SplineChoosed(qint64 id); void SplineChoosed(qint64 id);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -115,7 +115,7 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
virtual void RemoveReferens(); virtual void RemoveReferens();

View File

@ -70,7 +70,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param typeLine line type. * @param typeLine line type.
* @param formula * @param formula
* @param angle * @param angle
@ -104,7 +104,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -70,7 +70,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param typeLine line type. * @param typeLine line type.
* @param basePointId * @param basePointId
* @param p1LineId * @param p1LineId
@ -111,7 +111,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -90,7 +90,7 @@ public slots:
virtual void FullUpdateFromFile(); virtual void FullUpdateFromFile();
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
@ -112,7 +112,7 @@ public slots:
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -125,12 +125,12 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
@ -154,7 +154,7 @@ private:
*/ */
QSharedPointer<DialogLine> dialogLine; QSharedPointer<DialogLine> dialogLine;
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
}; };

View File

@ -74,7 +74,7 @@ public:
* @param p2Line1Id * @param p2Line1Id
* @param p1Line2Id * @param p1Line2Id
* @param p2Line2Id * @param p2Line2Id
* @param pointName * @param pointName point name.
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
* @param scene pointer to scene. * @param scene pointer to scene.
@ -109,7 +109,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -55,7 +55,7 @@ public:
public slots: public slots:
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
@ -85,7 +85,7 @@ protected:
*/ */
QGraphicsLineItem *mainLine; QGraphicsLineItem *mainLine;
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
virtual void RefreshGeometry(); virtual void RefreshGeometry();
/** /**

View File

@ -76,7 +76,7 @@ public:
* @param firstPointId * @param firstPointId
* @param secondPointId * @param secondPointId
* @param typeLine line type. * @param typeLine line type.
* @param pointName * @param pointName point name.
* @param angle * @param angle
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
@ -123,7 +123,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -60,7 +60,7 @@ public slots:
void NameChangePosition(const QPointF &pos); void NameChangePosition(const QPointF &pos);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
@ -101,17 +101,17 @@ protected:
*/ */
virtual void UpdateNamePosition(qreal mx, qreal my); virtual void UpdateNamePosition(qreal mx, qreal my);
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -84,7 +84,7 @@ public:
* @param center * @param center
* @param firstPointId * @param firstPointId
* @param secondPointId * @param secondPointId
* @param pointName * @param pointName point name.
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
* @param scene pointer to scene. * @param scene pointer to scene.
@ -119,7 +119,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -68,7 +68,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param firstPointId * @param firstPointId
* @param secondPointId * @param secondPointId
* @param mx label bias x axis. * @param mx label bias x axis.
@ -104,7 +104,7 @@ protected:
*/ */
virtual void RemoveReferens(); virtual void RemoveReferens();
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -86,7 +86,7 @@ public:
* @param p2Line * @param p2Line
* @param pShoulder * @param pShoulder
* @param typeLine line type. * @param typeLine line type.
* @param pointName * @param pointName point name.
* @param mx label bias x axis. * @param mx label bias x axis.
* @param my label bias y axis. * @param my label bias y axis.
* @param scene pointer to scene. * @param scene pointer to scene.
@ -121,7 +121,7 @@ public slots:
virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event); virtual void ShowContextMenu(QGraphicsSceneContextMenuEvent *event);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -69,7 +69,7 @@ public slots:
virtual void FullUpdateFromGui(int result); virtual void FullUpdateFromGui(int result);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
@ -85,7 +85,7 @@ signals:
void FullUpdateTree(); void FullUpdateTree();
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -98,7 +98,7 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief itemChange * @brief itemChange handle tool change.
* @param change * @param change
* @param value * @param value
* @return * @return

View File

@ -128,7 +128,7 @@ public slots:
const QPointF &pos); const QPointF &pos);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw ( const QString &newName ); virtual void ChangedActivDraw ( const QString &newName );
/** /**
@ -145,7 +145,7 @@ public slots:
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -158,17 +158,17 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
@ -188,7 +188,7 @@ private:
*/ */
QVector<VControlPointSpline *> controlPoints; QVector<VControlPointSpline *> controlPoints;
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry (); void RefreshGeometry ();
}; };

View File

@ -120,7 +120,7 @@ public slots:
const QPointF &pos); const QPointF &pos);
/** /**
* @brief ChangedActivDraw disable or enable context menu after change active pattern peace. * @brief ChangedActivDraw disable or enable context menu after change active pattern peace.
* @param newName * @param newName new name active pattern peace.
*/ */
virtual void ChangedActivDraw(const QString &newName); virtual void ChangedActivDraw(const QString &newName);
/** /**
@ -137,7 +137,7 @@ public slots:
virtual void SetFactor(qreal factor); virtual void SetFactor(qreal factor);
protected: protected:
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
@ -150,17 +150,17 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
@ -180,7 +180,7 @@ private:
*/ */
QVector<VControlPointSpline *> controlPoints; QVector<VControlPointSpline *> controlPoints;
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
/** /**

View File

@ -70,7 +70,7 @@ public:
/** /**
* @brief Create help create tool * @brief Create help create tool
* @param _id tool id, 0 if tool doesn't exist yet. * @param _id tool id, 0 if tool doesn't exist yet.
* @param pointName * @param pointName point name.
* @param axisP1Id * @param axisP1Id
* @param axisP2Id * @param axisP2Id
* @param firstPointId * @param firstPointId
@ -118,7 +118,7 @@ protected:
*/ */
virtual void RemoveReferens(); virtual void RemoveReferens();
/** /**
* @brief contextMenuEvent * @brief contextMenuEvent handle context menu events.
* @param event * @param event
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );

View File

@ -86,23 +86,23 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
private: private:
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
}; };

View File

@ -104,17 +104,17 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -88,23 +88,23 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
private: private:
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry (); void RefreshGeometry ();
}; };

View File

@ -87,23 +87,23 @@ protected:
*/ */
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
private: private:
/** /**
* @brief RefreshGeometry * @brief RefreshGeometry refresh item on scene.
*/ */
void RefreshGeometry(); void RefreshGeometry();
}; };

View File

@ -113,7 +113,7 @@ public slots:
*/ */
virtual void FullUpdateFromFile (); virtual void FullUpdateFromFile ();
/** /**
* @brief FullUpdateFromGui refresh tool data from change options. * @brief FullUpdateFromGui refresh tool data after change in options.
* @param result keep result working dialog. * @param result keep result working dialog.
*/ */
virtual void FullUpdateFromGui(int result); virtual void FullUpdateFromGui(int result);

View File

@ -85,12 +85,12 @@ protected:
*/ */
QGraphicsLineItem *controlLine; QGraphicsLineItem *controlLine;
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -70,12 +70,12 @@ protected:
*/ */
QVariant itemChange ( GraphicsItemChange change, const QVariant &value ); QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -72,7 +72,7 @@ protected:
*/ */
void mousePressEvent(QMouseEvent *mousePress); void mousePressEvent(QMouseEvent *mousePress);
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
void mouseReleaseEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event);

View File

@ -54,17 +54,17 @@ signals:
void Choosed(qint64 id); void Choosed(qint64 id);
protected: protected:
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -64,17 +64,17 @@ signals:
void Choosed(qint64 id); void Choosed(qint64 id);
protected: protected:
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -39,17 +39,17 @@ public:
VSimpleSplinePath(VDomDocument *doc, VContainer *data, qint64 id, qreal *factor); VSimpleSplinePath(VDomDocument *doc, VContainer *data, qint64 id, qreal *factor);
protected: protected:
/** /**
* @brief mouseReleaseEvent * @brief mouseReleaseEvent handle mouse release events.
* @param event * @param event
*/ */
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
/** /**
* @brief hoverMoveEvent * @brief hoverMoveEvent handle hover move events.
* @param event * @param event
*/ */
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
/** /**
* @brief hoverLeaveEvent * @brief hoverLeaveEvent handle hover leave events.
* @param event * @param event
*/ */
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event ); virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );

View File

@ -82,7 +82,7 @@ protected:
*/ */
void mousePressEvent(QMouseEvent *mousePress); void mousePressEvent(QMouseEvent *mousePress);
/** /**
* @brief mouseReleaseEvent обробник відпускання кнопки миші. * @brief mouseReleaseEvent handle mouse release events. обробник відпускання кнопки миші.
* @param event передається подія * @param event передається подія
*/ */
void mouseReleaseEvent ( QMouseEvent * event ); void mouseReleaseEvent ( QMouseEvent * event );