55 statusPopup.SetText(
_(
"Click on new member..." ) );
57 picker->SetClickHandler(
58 [&](
const VECTOR2D& aPoint ) ->
bool
71 EDA_ITEM* elem = sel.Front();
75 while( elem->GetParent() && elem->GetParent()->Type() != SCH_SCREEN_T )
76 elem = elem->GetParent();
86 picker->SetMotionHandler(
92 picker->SetCancelHandler(
95 if( m_propertiesDialog )
96 m_propertiesDialog->Show(
true );
101 picker->SetFinalizeHandler(
102 [&](
const int& aFinalState )
109 m_frame->GetCanvas()->SetStatusPopup( statusPopup.GetPanel() );
122 m_frame->GetCanvas()->SetStatusPopup(
nullptr );
135 for(
int ii = selection.GetSize() - 1; ii >= 0; --ii )
137 if( !selection[ii]->IsSCH_ITEM() )
139 selection.
Remove( selection[ii] );
146 selection.Remove( schItem );
149 if( selection.Empty() )
158 group->SetParent( screen );
160 for(
EDA_ITEM* eda_item : selection )
162 if(
EDA_GROUP* existingGroup = eda_item->GetParentGroup() )
163 m_commit->Modify( existingGroup->AsEdaItem(), screen, RECURSE_MODE::NO_RECURSE );
165 m_commit->Modify( eda_item, screen, RECURSE_MODE::NO_RECURSE );
166 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.
void DoAddMember(EDA_ITEM *aItem)
bool Show(bool show) override
FRAME_T GetFrameType() const
virtual void OnModify()
Must be called after a model change in order to set the "modify" flag and do other frame-specific pro...
A set of EDA_ITEMs (i.e., without duplicates).
A base class for most all the KiCad significant classes used in schematics and boards.
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,...
bool IsGroupableType() const
virtual void Remove(EDA_ITEM *aItem)
bool Empty() const
Checks if there is anything selected.
The symbol library editor main window.
LIB_SYMBOL * GetCurSymbol() const
Return the current symbol being edited or NULL if none selected.
@ FRAME_SCH_SYMBOL_EDITOR
Class to handle a set of SCH_ITEMs.