32 virtual bool OnKeyPress(
int key, Qt::KeyboardModifiers modifiers)
override;
86 Q_ASSERT(viewPtr !=
NULL);
95 Q_ASSERT(viewPtr !=
NULL);
104 Q_ASSERT(viewPtr !=
NULL);
Simple rectangle with integer bounds.
Index implementation for addressing elements in 2D-space.
Set of change flags (its IDs).
virtual void OnShapeFocused(IInteractiveShape *shapePtr) override
Called when shape get focus.
virtual i2d::CRect RecalcAllShapes(const istd::IChangeable::ChangeSet &changeSet) override
Recalculate all shapes after view changes.
virtual int GetEditMode() const override
Get actual edit mode.
virtual bool OnFocusedMouseMove(istd::CIndex2d position) override
Called, when this layer has focus, and mouse was moved.
virtual void DrawFocusedShape(QPainter &drawContext) override
Draw only focused shape.
virtual void DrawShapes(QPainter &drawContext) override
Draw all shapes using specified draw context.
virtual TouchState IsTouched(istd::CIndex2d position, IInteractiveShape **shapePtrPtr=NULL) const override
Check, if any shape is touched.
virtual void DisconnectAllShapes() override
Disconnect all shapes from this layer.
virtual bool DisconnectShape(IShape *shapePtr) override
Disconnect shape object from view.
virtual void DeselectAllShapes() override
Set all shapes to be deselected.
virtual void InsertSelectedShapes(SelectedShapes &result) const override
Get set of selected shapes.
virtual bool OnKeyPress(int key, Qt::KeyboardModifiers modifiers) override
Called, when key has been pressed.
virtual int GetDisplayMode() const override
Get actual display mode.
virtual int GetKeysState() const override
Get state of system keys.
virtual bool ConnectInteractiveShape(IInteractiveShape *shapePtr) override
Connect active shape object.
virtual void SetDragPosition(const istd::CIndex2d &position) override
Set new drag position.
virtual bool IsShapeConnected(IShape *shapePtr) override
Check, if the shape is connected to the layer.
virtual TouchState IsTouched(istd::CIndex2d position) const override
Check, if any shape is touched.
virtual int GetShapesCount() const override
Get count of all shapes on this layer.
virtual QString GetToolTipAt(istd::CIndex2d position) const override
Get tooltip at specified position.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const override
Get description to shape at specified position.
virtual ~CInteractiveViewLayer()
virtual void EndDrag() override
Called after dragging.
virtual bool OnFocusedMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
Called, when this layer has focus, and mouse button was pushed down or up on this object.
virtual void OnShapeSelected(IInteractiveShape &shape, bool state=true) override
It is called after change shape selection state.
virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
Called, when mouse button was pushed down or up.
virtual int GetSelectedShapesCount() const override
Get count of selected shapes.
virtual int GetUnselectedShapesCount() const override
Get number of unselected shapes.
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box for all shapes.
virtual bool IsDraggable() const override
Check if drag is enabled.
virtual bool ConnectShape(IShape *shapePtr) override
Connect shape object to view.
virtual void OnShapeDefocused(IInteractiveShape *shapePtr) override
Called when shape loose focus.
virtual void OnChangeShape(IShape *shapePtr) override
Invalidate a shape.
virtual void BeginDrag(const istd::CIndex2d &reference) override
Called before dragging is begin.
Standard implementation of view layer.
QVector< ShapeWithBoundingBox > ShapeList
virtual IShapeView * GetViewPtr() const override
Get parent view of this layer.
Common interface for all display console shapes which can interacts with user.
virtual int GetKeysState() const =0
Get state of system keys.
QSet< IInteractiveShape * > SelectedShapes
virtual int GetEditMode() const =0
Get actual edit mode.
virtual int GetDisplayMode() const =0
Get actual display mode.
Common interface for all display console shapes.
Common interface for a general shape view implementations.
TouchState
Enumeration for possible shape touch states.
In this library is defined 2D view concept and standard visualisation objects.