21#ifndef PL_POINT_EDITOR_H
22#define PL_POINT_EDITOR_H
80 for(
unsigned i = 0; i <
m_editPoints->PointsSize(); ++i )
Represent a single point that can be used for modifying items.
The main window used in the drawing sheet editor.
void setTransitions() override
Set up handlers for various events.
PL_EDITOR_FRAME * m_frame
PL_SELECTION_TOOL * m_selectionTool
int modifiedSelection(const TOOL_EVENT &aEvent)
int getEditedPointIndex() const
void updateItem() const
Update item's points with edit points.
bool HasPoint()
Indicate the cursor is over an edit point.
bool isModified(const EDIT_POINT &aPoint) const
Return true if aPoint is the currently modified point.
void updateEditedPoint(const TOOL_EVENT &aEvent)
Update which point is being edited.
EDIT_POINT * m_editedPoint
Currently edited point, NULL if there is none.
bool Init() override
Init() is called once upon a registration of the tool.
int Main(const TOOL_EVENT &aEvent)
void updatePoints()
Update edit points with item's points.
std::unique_ptr< KIGFX::PREVIEW::ANGLE_ITEM > m_angleItem
void setEditedPoint(EDIT_POINT *aPoint)
Set the current point being edited. NULL means none.
std::shared_ptr< EDIT_POINTS > m_editPoints
Currently available edit points.
The Cairo implementation of the graphics abstraction layer.