KiCad PCB EDA Suite
|
SYMBOL_EDITOR_DRAWING_TOOLS. More...
#include <symbol_editor_drawing_tools.h>
Public Types | |
enum | RESET_REASON |
Determine the reason of reset for a tool. More... | |
Public Member Functions | |
SYMBOL_EDITOR_DRAWING_TOOLS () | |
~SYMBOL_EDITOR_DRAWING_TOOLS () override | |
bool | Init () override |
Init() is called once upon a registration of the tool. | |
int | TwoClickPlace (const TOOL_EVENT &aEvent) |
int | DrawShape (const TOOL_EVENT &aEvent) |
int | DrawSymbolTextBox (const TOOL_EVENT &aEvent) |
int | PlaceAnchor (const TOOL_EVENT &aEvent) |
int | ImportGraphics (const TOOL_EVENT &aEvent) |
int | RepeatDrawItem (const TOOL_EVENT &aEvent) |
void | SetLastTextAngle (const EDA_ANGLE &aAngle) |
EDA_ANGLE | GetLastTextAngle () const |
void | SetDrawSpecificBodyStyle (bool aSpecific) |
bool | GetDrawSpecificBodyStyle () const |
void | SetDrawSpecificUnit (bool aSpecific) |
bool | GetDrawSpecificUnit () const |
void | Reset (RESET_REASON aReason) override |
Bring the tool to a known, initial state. | |
bool | IsSymbolEditor () const |
Returns true if the tool is running in the symbol editor. | |
int | Increment (const TOOL_EVENT &aEvent) |
int | InteractiveDelete (const TOOL_EVENT &aEvent) |
void | Activate () |
Run the tool. | |
TOOL_MENU & | GetToolMenu () |
void | SetContextMenu (ACTION_MENU *aMenu, CONTEXT_MENU_TRIGGER aTrigger=CMENU_BUTTON) |
Assign a context menu and tells when it should be activated. | |
void | RunMainStack (std::function< void()> aFunc) |
Call a function using the main stack. | |
void | Go (int(SYMBOL_EDIT_FRAME::*aStateFunc)(const TOOL_EVENT &), const TOOL_EVENT_LIST &aConditions=TOOL_EVENT(TC_ANY, TA_ANY)) |
Define which state (aStateFunc) to go when a certain event arrives (aConditions). | |
TOOL_EVENT * | Wait (const TOOL_EVENT_LIST &aEventList=TOOL_EVENT(TC_ANY, TA_ANY)) |
Suspend execution of the tool until an event specified in aEventList arrives. | |
TOOL_TYPE | GetType () const |
Return the type of the tool. | |
TOOL_ID | GetId () const |
Return the unique identifier of the tool. | |
const std::string & | GetName () const |
Return the name of the tool. | |
TOOL_MANAGER * | GetManager () const |
Return the instance of TOOL_MANAGER that takes care of the tool. | |
bool | IsToolActive () const |
Protected Member Functions | |
void | updateItem (EDA_ITEM *aItem, bool aUpdateRTree) const |
Similar to getView()->Update(), but also updates the SCH_SCREEN's RTree. | |
void | saveCopyInUndoList (EDA_ITEM *aItem, UNDO_REDO aType, bool aAppend=false, bool aDirtyConnectivity=true) |
void | attachManager (TOOL_MANAGER *aManager) |
Set the TOOL_MANAGER the tool will belong to. | |
KIGFX::VIEW * | getView () const |
Returns the instance of #VIEW object used in the application. | |
KIGFX::VIEW_CONTROLS * | getViewControls () const |
Return the instance of VIEW_CONTROLS object used in the application. | |
SYMBOL_EDIT_FRAME * | getEditFrame () const |
Return the application window object, casted to requested user type. | |
SYMBOL_EDIT_FRAME * | getModel () const |
Return the model object if it matches the requested type. | |
Protected Attributes | |
SYMBOL_EDIT_FRAME * | m_frame |
KIGFX::SCH_VIEW * | m_view |
SCH_SELECTION_TOOL * | m_selectionTool |
bool | m_isSymbolEditor |
EDA_ITEM * | m_pickerItem |
std::unique_ptr< TOOL_MENU > | m_menu |
The functions below are not yet implemented - their interface may change. | |
TOOL_TYPE | m_type |
TOOL_ID | m_toolId |
Unique id, assigned by a TOOL_MANAGER instance. | |
std::string | m_toolName |
Names are expected to obey the format application.ToolName (eg. | |
TOOL_MANAGER * | m_toolMgr |
Private Member Functions | |
int | doDrawShape (const TOOL_EVENT &aEvent, std::optional< SHAPE_T > aDrawingShape) |
void | setTransitions () override |
This method is meant to be overridden in order to specify handlers for events. | |
void | resetTransitions () |
Clear the current transition map and restores the default one created by setTransitions(). | |
void | goInternal (TOOL_STATE_FUNC &aState, const TOOL_EVENT_LIST &aConditions) |
EDA_ITEM * | getModelInternal () const |
TOOLS_HOLDER * | getToolHolderInternal () const |
Private Attributes | |
bool | m_lastTextBold |
bool | m_lastTextItalic |
EDA_ANGLE | m_lastTextAngle |
GR_TEXT_H_ALIGN_T | m_lastTextJust |
FILL_T | m_lastFillStyle |
COLOR4D | m_lastFillColor |
STROKE_PARAMS | m_lastStroke |
bool | m_drawSpecificBodyStyle |
bool | m_drawSpecificUnit |
Re-entrancy guards. | |
bool | m_inDrawShape |
bool | m_inPlaceAnchor |
bool | m_inTwoClickPlace |
Static Private Attributes | |
static KIID | g_lastPin |
Tool responsible for drawing/placing items (body outlines, pins, etc.)
Definition at line 42 of file symbol_editor_drawing_tools.h.
|
inherited |
Determine the reason of reset for a tool.
Definition at line 77 of file tool_base.h.
SYMBOL_EDITOR_DRAWING_TOOLS::SYMBOL_EDITOR_DRAWING_TOOLS | ( | ) |
Definition at line 48 of file symbol_editor_drawing_tools.cpp.
References ANGLE_HORIZONTAL, DEFAULT, GR_TEXT_H_ALIGN_LEFT, m_drawSpecificBodyStyle, m_drawSpecificUnit, m_inDrawShape, m_inPlaceAnchor, m_inTwoClickPlace, m_lastFillColor, m_lastFillStyle, m_lastStroke, m_lastTextAngle, m_lastTextBold, m_lastTextItalic, m_lastTextJust, NO_FILL, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::SCH_TOOL_BASE(), and UNSPECIFIED.
|
inlineoverride |
Definition at line 46 of file symbol_editor_drawing_tools.h.
|
inherited |
Run the tool.
After activation, the tool starts receiving events until it is finished.
Definition at line 75 of file tool_interactive.cpp.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
protectedinherited |
Set the TOOL_MANAGER the tool will belong to.
Called by TOOL_MANAGER::RegisterTool()
Definition at line 163 of file tool_base.cpp.
|
private |
Definition at line 372 of file symbol_editor_drawing_tools.cpp.
References _, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Activate(), ACTIONS::activatePointEditor, LIB_SYMBOL::AddDrawItem(), ARROW, SCH_SHAPE::BeginEdit(), BUT_LEFT, BUT_RIGHT, SCH_SHAPE::CalcEdit(), KIGFX::VIEW_CONTROLS::CaptureCursor(), EDA_ITEM::ClearEditFlags(), SCH_SHAPE::Clone(), SCH_SHAPE::ContinueEdit(), DEFAULT_LINE_WIDTH_MILS, SCH_SHAPE::EndEdit(), ACTIONS::finishInteractive, KIGFX::VIEW_CONTROLS::ForceCursorPosition(), GetAppSettings(), EDA_SHAPE::GetFillColor(), EDA_SHAPE::GetFillMode(), EDA_ITEM::GetFriendlyName(), EDA_TEXT::GetHorizJustify(), KIGFX::VIEW_CONTROLS::GetMousePosition(), SCH_SHAPE::GetPosition(), SCH_SHAPE::GetStroke(), EDA_TEXT::GetTextAngle(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getView(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getViewControls(), grid, TOOL_EVENT::HasPosition(), IS_NEW, EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), LAYER_DEVICE, SYMBOL_EDITOR_SETTINGS::DEFAULTS::line_width, SYMBOL_EDITOR_SETTINGS::m_Defaults, m_drawSpecificBodyStyle, m_drawSpecificUnit, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_frame, m_inDrawShape, m_lastFillColor, m_lastFillStyle, m_lastStroke, m_lastTextAngle, m_lastTextBold, m_lastTextItalic, m_lastTextJust, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_menu, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_selectionTool, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_toolMgr, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_view, EDA_ITEM::Matches(), MD_SHIFT, COMMIT::Modify(), PENCIL, POLY, TOOL_EVENT::Position(), SCH_ACTIONS::properties, SCH_COMMIT::Push(), ACTIONS::refreshPreview, schIUScale, SEGMENT, ACTIONS::selectionClear, KIGFX::VIEW_CONTROLS::SetAutoPan(), SCH_ITEM::SetBodyStyle(), EDA_TEXT::SetBold(), EDA_SHAPE::SetFillColor(), EDA_ITEM::SetFlags(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetItalic(), EDA_ITEM::SetParent(), SCH_SHAPE::SetStroke(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextSize(), SCH_ITEM::SetUnit(), KIGFX::VIEW_CONTROLS::ShowCursor(), DIALOG_SHIM::ShowQuasiModal(), SYMBOL_EDITOR_SETTINGS::DEFAULTS::text_size, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Wait(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DrawShape(), and DrawSymbolTextBox().
int SYMBOL_EDITOR_DRAWING_TOOLS::DrawShape | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 358 of file symbol_editor_drawing_tools.cpp.
References doDrawShape(), and TOOL_EVENT::Parameter().
Referenced by setTransitions().
int SYMBOL_EDITOR_DRAWING_TOOLS::DrawSymbolTextBox | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 366 of file symbol_editor_drawing_tools.cpp.
References doDrawShape().
Referenced by setTransitions().
|
inline |
Definition at line 63 of file symbol_editor_drawing_tools.h.
References m_drawSpecificBodyStyle.
|
inline |
Definition at line 66 of file symbol_editor_drawing_tools.h.
References m_drawSpecificUnit.
|
inlineprotectedinherited |
Return the application window object, casted to requested user type.
Definition at line 186 of file tool_base.h.
|
inlineinherited |
Return the unique identifier of the tool.
The identifier is set by an instance of TOOL_MANAGER.
Definition at line 123 of file tool_base.h.
|
inline |
Definition at line 60 of file symbol_editor_drawing_tools.h.
References m_lastTextAngle.
|
inlineinherited |
Return the instance of TOOL_MANAGER that takes care of the tool.
Definition at line 146 of file tool_base.h.
|
inlineprotectedinherited |
Return the model object if it matches the requested type.
Definition at line 198 of file tool_base.h.
|
privateinherited |
Definition at line 210 of file tool_base.cpp.
|
inlineinherited |
Return the name of the tool.
Tool names are expected to obey the format: application.ToolName (eg. pcbnew.InteractiveSelection).
Definition at line 136 of file tool_base.h.
|
privateinherited |
Definition at line 211 of file tool_base.cpp.
|
inherited |
Definition at line 77 of file tool_interactive.cpp.
|
inlineinherited |
Return the type of the tool.
Definition at line 111 of file tool_base.h.
|
protectedinherited |
Returns the instance of #VIEW object used in the application.
It allows tools to draw.
Definition at line 170 of file tool_base.cpp.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
protectedinherited |
Return the instance of VIEW_CONTROLS object used in the application.
It allows tools to read & modify user input and its settings (eg. show cursor, enable snapping to grid, etc.).
Definition at line 180 of file tool_base.cpp.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
inherited |
Define which state (aStateFunc) to go when a certain event arrives (aConditions).
No conditions means any event.
Definition at line 100 of file tool_interactive.h.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::setTransitions(), SYMBOL_EDITOR_EDIT_TOOL::setTransitions(), SYMBOL_EDITOR_MOVE_TOOL::setTransitions(), and SYMBOL_EDITOR_PIN_TOOL::setTransitions().
|
privateinherited |
Definition at line 140 of file tool_interactive.cpp.
int SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 687 of file symbol_editor_drawing_tools.cpp.
References _, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Activate(), SELECTION::Add(), LIB_SYMBOL::AddDrawItem(), ARROW, BUT_LEFT, BUT_RIGHT, ACTIONS::cancelInteractive, SELECTION::Clear(), delta, TOOL_EVENT::DisableGridSnapping(), KIGFX::VIEW_CONTROLS::ForceCursorPosition(), KIGFX::VIEW_CONTROLS::GetCursorPosition(), DIALOG_IMPORT_GFX_SCH::GetImportedItems(), KIGFX::VIEW_CONTROLS::GetMousePosition(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getView(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getViewControls(), grid, GRID_GRAPHICS, DIALOG_IMPORT_GFX_SCH::IsPlacementInteractive(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_frame, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_menu, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_selectionTool, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_toolMgr, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_view, MD_SHIFT, COMMIT::Modify(), MOVING, SCH_COMMIT::Push(), ACTIONS::selectionClear, ACTIONS::selectItems, KIGFX::VIEW_CONTROLS::ShowCursor(), DIALOG_SHIM::ShowModal(), and SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Wait().
Referenced by setTransitions().
|
inlineinherited |
Definition at line 110 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::setTransitions().
|
overridevirtual |
Init() is called once upon a registration of the tool.
Reimplemented from SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >.
Definition at line 66 of file symbol_editor_drawing_tools.cpp.
References ACTIONS::finishInteractive, SCH_TOOL_BASE< T >::Init(), EDA_ITEM::IsNew(), and SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_menu.
|
inlineinherited |
Definition at line 247 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::setTransitions().
|
inlineinherited |
Returns true if the tool is running in the symbol editor.
Definition at line 105 of file sch_tool_base.h.
|
inherited |
Definition at line 153 of file tool_base.cpp.
int SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 620 of file symbol_editor_drawing_tools.cpp.
References SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Activate(), ARROW, BULLSEYE, BUT_LEFT, BUT_RIGHT, KIGFX::VIEW_CONTROLS::GetCursorPosition(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getViewControls(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_frame, m_inPlaceAnchor, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_menu, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_selectionTool, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_view, LIB_SYMBOL::Move(), KIGFX::VIEW_CONTROLS::ShowCursor(), and SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Wait().
Referenced by setTransitions().
int SYMBOL_EDITOR_DRAWING_TOOLS::RepeatDrawItem | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 854 of file symbol_editor_drawing_tools.cpp.
References g_lastPin, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_frame, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_toolMgr, pin, SYMBOL_EDITOR_PIN_TOOL::RepeatPin(), ACTIONS::selectionClear, and ACTIONS::selectItem.
Referenced by setTransitions().
|
inlineoverridevirtualinherited |
Bring the tool to a known, initial state.
If the tool claimed anything from the model or the view, it must release it when its reset.
aReason | contains information about the reason of tool reset. |
Implements TOOL_BASE.
Reimplemented in SYMBOL_EDITOR_MOVE_TOOL.
Definition at line 90 of file sch_tool_base.h.
|
privateinherited |
Clear the current transition map and restores the default one created by setTransitions().
Definition at line 138 of file tool_interactive.cpp.
|
inherited |
Call a function using the main stack.
aFunc | is the function to be calls. |
Definition at line 92 of file tool_interactive.cpp.
|
inlineprotectedinherited |
Definition at line 333 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SYMBOL_EDITOR_PIN_TOOL::PushPinProperties(), and SYMBOL_EDITOR_EDIT_TOOL::Swap().
|
inherited |
Assign a context menu and tells when it should be activated.
aMenu | is the menu to be assigned. |
aTrigger | determines conditions upon which the context menu is activated. |
Definition at line 85 of file tool_interactive.cpp.
|
inline |
Definition at line 62 of file symbol_editor_drawing_tools.h.
References m_drawSpecificBodyStyle.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties().
|
inline |
Definition at line 65 of file symbol_editor_drawing_tools.h.
References m_drawSpecificUnit.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties().
|
inline |
Definition at line 59 of file symbol_editor_drawing_tools.h.
References m_lastTextAngle.
|
overrideprivatevirtual |
This method is meant to be overridden in order to specify handlers for events.
It is called every time tool is reset or finished.
Implements TOOL_INTERACTIVE.
Definition at line 889 of file symbol_editor_drawing_tools.cpp.
References SCH_ACTIONS::drawArc, SCH_ACTIONS::drawBezier, SCH_ACTIONS::drawCircle, SCH_ACTIONS::drawRectangle, DrawShape(), SCH_ACTIONS::drawSymbolLines, SCH_ACTIONS::drawSymbolPolygon, DrawSymbolTextBox(), SCH_ACTIONS::drawSymbolTextBox, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Go(), ImportGraphics(), SCH_ACTIONS::importGraphics, PlaceAnchor(), SCH_ACTIONS::placeSymbolAnchor, SCH_ACTIONS::placeSymbolPin, SCH_ACTIONS::placeSymbolText, RepeatDrawItem(), SCH_ACTIONS::repeatDrawItem, and TwoClickPlace().
int SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace | ( | const TOOL_EVENT & | aEvent | ) |
Definition at line 83 of file symbol_editor_drawing_tools.cpp.
References _, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Activate(), LIB_SYMBOL::AddDrawItem(), ARROW, BUT_LEFT, BUT_RIGHT, KIGFX::VIEW_CONTROLS::CaptureCursor(), EDA_ITEM::ClearEditFlags(), SYMBOL_EDITOR_PIN_TOOL::CreatePin(), KIGFX::VIEW_CONTROLS::ForceCursorPosition(), g_lastPin, GetAppSettings(), PGM_BASE::GetCommonSettings(), KIGFX::VIEW_CONTROLS::GetMousePosition(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getView(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::getViewControls(), grid, TOOL_EVENT::HasPosition(), COMMON_SETTINGS::INPUT::immediate_actions, ACTIONS::increment, IS_MOVING, IS_NEW, TOOL_EVENT::IsAction(), TOOL_EVENT::IsReactivate(), LAYER_DEVICE, m_drawSpecificBodyStyle, m_drawSpecificUnit, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_frame, COMMON_SETTINGS::m_Input, m_inTwoClickPlace, m_lastTextAngle, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_menu, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_selectionTool, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_toolMgr, EDA_ITEM::m_Uuid, SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::m_view, EDA_ITEM::Matches(), MD_SHIFT, COMMIT::Modify(), NoPrintableChars(), TOOL_EVENT::Parameter(), PENCIL, Pgm(), KIGFX::VIEW_CONTROLS::PinCursorInsideNonAutoscrollArea(), PLACE, SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SCH_ACTIONS::placeSymbolText, TOOL_EVENT::Position(), SCH_COMMIT::Push(), ACTIONS::refreshPreview, SCH_PIN_T, SCH_TEXT_T, schIUScale, ACTIONS::selectionClear, KIGFX::VIEW_CONTROLS::SetAutoPan(), KIGFX::VIEW_CONTROLS::SetCursorPosition(), EDA_ITEM::SetFlags(), EDA_ITEM::SetPosition(), KIGFX::VIEW_CONTROLS::ShowCursor(), DIALOG_SHIM::ShowModal(), TEXT, text, EDA_ITEM::Type(), SCH_TOOL_BASE< SYMBOL_EDIT_FRAME >::Wait(), KIGFX::VIEW_CONTROLS::WarpMouseCursor(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by setTransitions().
|
inlineprotectedinherited |
Similar to getView()->Update(), but also updates the SCH_SCREEN's RTree.
Similar to m_frame->SaveCopyInUndoList(), but also handles connectivity.
Definition at line 327 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextBoxProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), and SYMBOL_EDITOR_EDIT_TOOL::Swap().
|
inherited |
Suspend execution of the tool until an event specified in aEventList arrives.
No parameters means waiting for any event.
Definition at line 108 of file tool_interactive.cpp.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
staticprivate |
Definition at line 90 of file symbol_editor_drawing_tools.h.
Referenced by RepeatDrawItem(), and TwoClickPlace().
|
private |
Definition at line 81 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), GetDrawSpecificBodyStyle(), SetDrawSpecificBodyStyle(), SYMBOL_EDITOR_DRAWING_TOOLS(), and TwoClickPlace().
|
private |
Re-entrancy guards.
Definition at line 82 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), GetDrawSpecificUnit(), SetDrawSpecificUnit(), SYMBOL_EDITOR_DRAWING_TOOLS(), and TwoClickPlace().
|
protectedinherited |
Definition at line 373 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SYMBOL_EDITOR_EDIT_TOOL::ConvertStackedPins(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), SYMBOL_EDITOR_PIN_TOOL::CreatePin(), SYMBOL_EDITOR_EDIT_TOOL::DoDelete(), SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties(), SYMBOL_EDITOR_PIN_TOOL::EditPinProperties(), SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties(), SYMBOL_EDITOR_EDIT_TOOL::editSymbolProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextBoxProperties(), SYMBOL_EDITOR_EDIT_TOOL::editTextProperties(), SYMBOL_EDITOR_EDIT_TOOL::ExplodeStackedPin(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_MOVE_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SYMBOL_EDITOR_EDIT_TOOL::PinTable(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SYMBOL_EDITOR_PIN_TOOL::PushPinProperties(), SYMBOL_EDITOR_EDIT_TOOL::Redo(), SYMBOL_EDITOR_DRAWING_TOOLS::RepeatDrawItem(), SYMBOL_EDITOR_PIN_TOOL::RepeatPin(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), SYMBOL_EDITOR_EDIT_TOOL::Undo(), and SYMBOL_EDITOR_EDIT_TOOL::UpdateSymbolFields().
|
private |
Definition at line 85 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 86 of file symbol_editor_drawing_tools.h.
Referenced by PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 87 of file symbol_editor_drawing_tools.h.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS(), and TwoClickPlace().
|
protectedinherited |
Definition at line 376 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Init().
|
private |
Definition at line 79 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 78 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 80 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 76 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), GetLastTextAngle(), SetLastTextAngle(), SYMBOL_EDITOR_DRAWING_TOOLS(), and TwoClickPlace().
|
private |
Definition at line 74 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 75 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
private |
Definition at line 77 of file symbol_editor_drawing_tools.h.
Referenced by doDrawShape(), and SYMBOL_EDITOR_DRAWING_TOOLS().
|
protectedinherited |
The functions below are not yet implemented - their interface may change.
Definition at line 125 of file tool_interactive.h.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::Init(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
protectedinherited |
Definition at line 377 of file sch_tool_base.h.
|
protectedinherited |
Definition at line 375 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SYMBOL_EDITOR_EDIT_TOOL::Copy(), SYMBOL_EDITOR_EDIT_TOOL::DoDelete(), SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_MOVE_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SYMBOL_EDITOR_PIN_TOOL::PushPinProperties(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().
|
protectedinherited |
Unique id, assigned by a TOOL_MANAGER instance.
Definition at line 215 of file tool_base.h.
|
protectedinherited |
Definition at line 220 of file tool_base.h.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SYMBOL_EDITOR_EDIT_TOOL::ConvertStackedPins(), SYMBOL_EDITOR_EDIT_TOOL::CopyAsText(), SYMBOL_EDITOR_PIN_TOOL::CreateImagePins(), SYMBOL_EDITOR_EDIT_TOOL::DoDelete(), SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_EDIT_TOOL::Duplicate(), SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties(), SYMBOL_EDITOR_EDIT_TOOL::editShapeProperties(), SYMBOL_EDITOR_EDIT_TOOL::editSymbolProperties(), SYMBOL_EDITOR_EDIT_TOOL::ExplodeStackedPin(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_MOVE_TOOL::Main(), SYMBOL_EDITOR_EDIT_TOOL::Mirror(), SYMBOL_EDITOR_EDIT_TOOL::Paste(), SYMBOL_EDITOR_EDIT_TOOL::PinTable(), SYMBOL_EDITOR_EDIT_TOOL::Properties(), SYMBOL_EDITOR_EDIT_TOOL::Redo(), SYMBOL_EDITOR_DRAWING_TOOLS::RepeatDrawItem(), SYMBOL_EDITOR_EDIT_TOOL::Rotate(), SYMBOL_EDITOR_EDIT_TOOL::Swap(), SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace(), and SYMBOL_EDITOR_EDIT_TOOL::Undo().
|
protectedinherited |
Names are expected to obey the format application.ToolName (eg.
pcbnew.InteractiveSelection).
Definition at line 219 of file tool_base.h.
|
protectedinherited |
Definition at line 214 of file tool_base.h.
|
protectedinherited |
Definition at line 374 of file sch_tool_base.h.
Referenced by SYMBOL_EDITOR_DRAWING_TOOLS::doDrawShape(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::PlaceAnchor(), and SYMBOL_EDITOR_DRAWING_TOOLS::TwoClickPlace().