39 m_brdEditor( aParent ),
40 m_toolMgr( aParent->GetToolManager() ),
96 commit.
Modify( existingGroup );
114 commit.
Push(
_(
"Edit Group Properties" ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
PCB_GROUP * GetParentGroup() const
virtual bool IsLocked() const
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
Class DIALOG_GROUP_PROPERTIES_BASE.
STD_BITMAP_BUTTON * m_bpAddMember
wxListBox * m_membersList
STD_BITMAP_BUTTON * m_bpRemoveMember
bool TransferDataFromWindow() override
~DIALOG_GROUP_PROPERTIES()
DIALOG_GROUP_PROPERTIES(PCB_BASE_EDIT_FRAME *aParent, PCB_GROUP *aTarget)
void OnRemoveMember(wxCommandEvent &event) override
void DoAddMember(EDA_ITEM *aItem)
void OnAddMember(wxCommandEvent &event) override
void OnMemberSelected(wxCommandEvent &event) override
bool TransferDataToWindow() override
PCB_BASE_EDIT_FRAME * m_brdEditor
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...
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
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.
static TOOL_ACTION selectionClear
Clear the current selection.
static TOOL_ACTION pickNewGroupMember
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Common, abstract interface for edit frames.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
The main frame for Pcbnew.
A set of BOARD_ITEMs (i.e., without duplicates).
std::unordered_set< BOARD_ITEM * > & GetItems()
void SetName(const wxString &aName)
virtual bool AddItem(BOARD_ITEM *aItem)
Add item to group.
void SetLocked(bool aLocked) override
Class to handle a set of BOARD_ITEMs.