Documentation for VToolSinglePoint class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-27 11:28:54 +02:00
parent bb09bf2ff1
commit f8208e3416

View File

@ -33,19 +33,20 @@
#include "../../dialogs/dialogsinglepoint.h" #include "../../dialogs/dialogsinglepoint.h"
/** /**
* @brief The VToolSinglePoint class * @brief The VToolSinglePoint class class tool for creation pattern base point. Obly base point can move. All object
* pattern peace depend on base point.
*/ */
class VToolSinglePoint : public VToolPoint class VToolSinglePoint : public VToolPoint
{ {
Q_OBJECT Q_OBJECT
public: public:
/** /**
* @brief VToolSinglePoint * @brief VToolSinglePoint 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 typeCreation way we create this tool. * @param typeCreation way we create this tool.
* @param parent parent object * @param parent parent object.
*/ */
VToolSinglePoint (VDomDocument *doc, VContainer *data, qint64 id, const Tool::Sources &typeCreation, VToolSinglePoint (VDomDocument *doc, VContainer *data, qint64 id, const Tool::Sources &typeCreation,
QGraphicsItem * parent = 0 ); QGraphicsItem * parent = 0 );
@ -53,9 +54,6 @@ public:
* @brief setDialog set dialog when user want change tool option. * @brief setDialog set dialog when user want change tool option.
*/ */
virtual void setDialog(); virtual void setDialog();
/**
* @brief ToolType
*/
static const QString ToolType; static const QString ToolType;
public slots: public slots:
/** /**
@ -64,7 +62,7 @@ public slots:
virtual void FullUpdateFromFile(); virtual void FullUpdateFromFile();
/** /**
* @brief FullUpdateFromGui refresh tool data from change options. * @brief FullUpdateFromGui refresh tool data from change options.
* @param result * @param result result working dialog.
*/ */
virtual void FullUpdateFromGui(int result); virtual void FullUpdateFromGui(int result);
/** /**
@ -77,16 +75,20 @@ 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);
signals: signals:
/** /**
* @brief FullUpdateTree * @brief FullUpdateTree handle if need update pattern file.
*/ */
void FullUpdateTree(); void FullUpdateTree();
protected: protected:
/** /**
* @brief contextMenuEvent handle context menu events. * @brief contextMenuEvent handle context menu events.
* @param event * @param event context menu event.
*/ */
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ); virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
/** /**
@ -99,13 +101,13 @@ protected:
virtual void RefreshDataInFile(); virtual void RefreshDataInFile();
/** /**
* @brief itemChange handle tool change. * @brief itemChange handle tool change.
* @param change * @param change change.
* @param value * @param value value.
* @return * @return value.
*/ */
QVariant itemChange ( GraphicsItemChange change, const QVariant &value ); QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
/** /**
* @brief decrementReferens * @brief decrementReferens decrement referens parents objects.
*/ */
virtual void decrementReferens(); virtual void decrementReferens();
/** /**
@ -115,9 +117,13 @@ protected:
virtual void DeleteTool(QGraphicsItem *tool){Q_UNUSED(tool)} virtual void DeleteTool(QGraphicsItem *tool){Q_UNUSED(tool)}
private: private:
/** /**
* @brief dialogSinglePoint * @brief dialogSinglePoint dialog.
*/ */
QSharedPointer<DialogSinglePoint> dialogSinglePoint; QSharedPointer<DialogSinglePoint> dialogSinglePoint;
/**
* @brief setColorLabel change color for label and label line.
* @param color new color.
*/
void setColorLabel(const Qt::GlobalColor & color); void setColorLabel(const Qt::GlobalColor & color);
}; };