52 #ifndef VMAINGRAPHICSSCENE_H
53 #define VMAINGRAPHICSSCENE_H
55 #include <qcompilerdetection.h>
56 #include <QGraphicsScene>
57 #include <QMetaObject>
66 #include "../vmisc/def.h"
93 void SelectedItem(
bool selected, quint32
object, quint32 tool);
122 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE;
123 virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE;
The VMainGraphicsScene class main scene.
void EnableSplinePathItemHover(bool enable)
void chosenItem(quint32 id, const SceneObject &type)
chosenItem emit ChosenObject signal.
void SetDisableTools(bool disable, const QString &draftBlockName)
QTransform transform() const
transform return view transformation.
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
void EnableItemMove(bool move)
void EnableArcItemHover(bool enable)
void EnablePointItemSelection(bool enable)
void EnableElArcItemHover(bool enable)
QRectF visibleItemsBoundingRect() const
void EnableLineItemHover(bool enabled)
void setOriginsVisible(bool visible)
void ToggleArcHover(bool enabled)
void enableTextItemSelection(bool enable)
QPointF getScenePos() const
void EnableNodeLabelItemHover(bool enabled)
void curvePiecesMode(bool mode)
void ItemClicked(QGraphicsItem *pItem)
void EnableSplineItemSelection(bool enable)
void mouseMove(const QPointF &scenePos)
mouseMove send new mouse position.
void EnableDetailItemHover(bool enabled)
void ItemSelection(const SelectionType &type)
void ToggleSplinePathSelection(bool enabled)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
mousePressEvent mouse press events.
void EnablePointItemHover(bool enable)
void TogglePointHover(bool enabled)
void EnableDetailItemSelection(bool enabled)
QVector< QGraphicsItem * > origins
void EnableArcItemSelection(bool enable)
void enableTextItemHover(bool enable)
void EnableToolMove(bool move)
void ToggleElArcHover(bool enabled)
void ToggleElArcSelection(bool enabled)
void togglePieceSelection(bool enabled)
void ToggleNodePointSelection(bool enabled)
void EnableNodeLabelItemSelection(bool enabled)
void ToggleNodeLabelHover(bool enabled)
void EnableElArcItemSelection(bool enable)
void DisableItem(bool disable, const QString &draftBlockName)
void ToggleNodePointHover(bool enabled)
void SelectedObject(bool selected, quint32 object, quint32 tool)
qint32 getHorScrollBar() const
getHorScrollBar return scene horizontal scrollbar.
void pieceLockedChanged(quint32 id, bool lock)
void ToggleSplinePathHover(bool enabled)
void ToggleNodeLabelSelection(bool enabled)
void setVerScrollBar(const qint32 &value)
setVerScrollBar set scene vertical scrollbar.
void ChosenObject(quint32 id, SceneObject type)
ChosenObject send option choosed object.
void highlightPiece(quint32 id)
void ToggleSplineHover(bool enabled)
void setHorScrollBar(const qint32 &value)
setHorScrollBar set scene horizontal scrollbar.
void ToggleLabelSelection(bool enabled)
void ToggleSplineSelection(bool enabled)
qint32 horScrollBar
horScrollBar value horizontal scroll bar.
void EnableNodePointItemSelection(bool enabled)
void SelectedItem(bool selected, quint32 object, quint32 tool)
void EnableLineItemSelection(bool enable)
void togglePieceHover(bool enabled)
QTransform m_currentTransform
void ToggleArcSelection(bool enabled)
void ToggleLabelHover(bool enabled)
void HighlightItem(quint32 id)
QTransform m_previousTransform
_transform view transform value.
void setCurrentTransform(const QTransform &transform)
setCurrentTransform set view transformation.
qint32 verScrollBar
verScrollBar value vertical scroll bar.
void swapTransforms()
swapTransforms.
void EnableSplineItemHover(bool enable)
void EnableSplinePathItemSelection(bool enable)
void enablePiecesMode(bool mode)
void ItemsSelection(const SelectionType &type)
void ToggleLineSelection(bool enabled)
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
mouseMoveEvent handle mouse move events.
VMainGraphicsScene(QObject *parent=nullptr)
VMainGraphicsScene default constructor.
void TogglePointSelection(bool enabled)
qint32 getVerScrollBar() const
getVerScrollBar return scene vertical scrollbar.
void ToggleLineHover(bool enabled)
void EnableNodePointItemHover(bool enabled)