55 statusPopup.SetText(
_(
"Click on new member..." ) );
57 picker->SetClickHandler(
58 [&](
const VECTOR2D& aPoint ) ->
bool
86 picker->SetMotionHandler(
92 picker->SetCancelHandler(
101 picker->SetFinalizeHandler(
102 [&](
const int& aFinalState )
109 m_frame->GetCanvas()->SetStatusPopup( statusPopup.GetPanel() );
122 picker->ClearHandlers();
123 m_frame->GetCanvas()->SetStatusPopup(
nullptr );
136 for(
int ii = selection.GetSize() - 1; ii >= 0; --ii )
138 if( !selection[ii]->IsSCH_ITEM() )
140 selection.Remove( selection[ii] );
147 selection.Remove( schItem );
150 selection.Remove( schItem );
153 if( selection.Empty() )
162 group->SetParent( screen );
164 for(
EDA_ITEM* eda_item : selection )
166 if(
EDA_GROUP* existingGroup = eda_item->GetParentGroup() )
170 group->AddItem( eda_item );
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
static TOOL_ACTION pickerTool
static TOOL_ACTION selectionClear
Clear the current selection.
A set of EDA_ITEMs (i.e., without duplicates).
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
EDA_ITEM * GetParent() const
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
A set of SCH_ITEMs (i.e., without duplicates).
Base class for any item which can be embedded within the SCHEMATIC container class,...
const SYMBOL * GetParentSymbol() const
bool IsGroupableType() const
bool Empty() const
Checks if there is anything selected.
The symbol library editor main window.
@ FRAME_SCH_SYMBOL_EDITOR
Class to handle a set of SCH_ITEMs.
VECTOR2< double > VECTOR2D