37 const std::shared_ptr<COMMIT>& aCommit ) :
75 m_frame->GetCanvas()->Refresh();
115 error.Printf(
_(
"Invalid library link: '%s'" ),
m_libraryLink->GetValue() );
116 wxMessageBox( error,
_(
"Error" ), wxOK | wxICON_ERROR,
m_frame );
120 m_group->SetDesignBlockLibId( libId );
138 m_commit->Push(
_(
"Edit Group Properties" ) );
153 m_frame->GetCanvas()->Refresh();
175 if( aItem ==
m_group->AsEdaItem() )
190 m_frame->GetCanvas()->Refresh();
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
static TOOL_ACTION pickNewGroupMember
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
static TOOL_ACTION selectionClear
Clear the current selection.
STD_BITMAP_BUTTON * m_bpAddMember
wxListBox * m_membersList
STD_BITMAP_BUTTON * m_bpRemoveMember
DIALOG_GROUP_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Group Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxTextCtrl * m_libraryLink
~DIALOG_GROUP_PROPERTIES() override
bool TransferDataFromWindow() override
void OnRemoveMember(wxCommandEvent &event) override
void DoAddMember(EDA_ITEM *aItem)
void OnAddMember(wxCommandEvent &event) override
void OnMemberSelected(wxCommandEvent &event) override
bool TransferDataToWindow() override
DIALOG_GROUP_PROPERTIES(EDA_DRAW_FRAME *aParent, EDA_GROUP *aTarget, const std::shared_ptr< COMMIT > &aCommit)
std::shared_ptr< COMMIT > m_commit
void OptOut(wxWindow *aWindow)
Opt out of control state saving.
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
The base class for create windows for drawing purpose.
A set of EDA_ITEMs (i.e., without duplicates).
virtual EDA_ITEM * AsEdaItem()=0
A base class for most all the KiCad significant classes used in schematics and boards.
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
virtual EDA_GROUP * GetParentGroup() const
KICAD_T Type() const
Returns the type of object.
virtual bool IsLocked() const
A logical library item identifier and consists of various portions much like a URI.
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs