37 const std::shared_ptr<COMMIT>& aCommit ) :
40 m_toolMgr( aParent->GetToolManager() ),
112 error.Printf(
_(
"Invalid library link: '%s'" ),
m_libraryLink->GetValue() );
113 wxMessageBox( error,
_(
"Error" ), wxOK | wxICON_ERROR,
m_frame );
133 m_commit->Push(
_(
"Edit Group Properties" ) );
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.
Class DIALOG_GROUP_PROPERTIES_BASE.
STD_BITMAP_BUTTON * m_bpAddMember
wxListBox * m_membersList
STD_BITMAP_BUTTON * m_bpRemoveMember
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 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.
virtual BASE_SCREEN * GetScreen() const
Return a pointer to a BASE_SCREEN or one of its derivatives.
virtual void FocusOnItem(EDA_ITEM *aItem)
Focus on a particular canvas item.
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual void ClearFocus()
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
A set of EDA_ITEMs (i.e., without duplicates).
const LIB_ID & GetDesignBlockLibId() const
std::unordered_set< EDA_ITEM * > & GetItems()
virtual void RemoveAll()=0
virtual bool AddItem(EDA_ITEM *aItem)=0
Add item to group.
void SetDesignBlockLibId(const LIB_ID &aLibId)
virtual EDA_ITEM * AsEdaItem()=0
void SetName(const wxString &aName)
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void SetLocked(bool aLocked)
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