38 m_brdEditor( aParent ),
39 m_toolMgr( aParent->GetToolManager() ),
82 commit.
Modify( descendant );
95 commit.
Modify( existingGroup );
112 commit.
Push(
_(
"Modified group" ) );
144 if( aItem == static_cast<BOARD_ITEM*>(
m_membersList->GetClientData( ii ) ) )
static TOOL_ACTION selectionClear
Clear the current selection.
PCB_GROUP * GetParentGroup() const
bool AddItem(BOARD_ITEM *aItem)
Add item to group.
bool TransferDataToWindow() override
COMMIT & Modify(EDA_ITEM *aItem)
Create an undo entry for an item that has been already modified.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
A set of BOARD_ITEMs (i.e., without duplicates).
void OnAddMember(wxCommandEvent &event) override
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
bool TransferDataFromWindow() override
std::unordered_set< BOARD_ITEM * > & GetItems()
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
wxBitmapButton * m_bpRemoveMember
void OnRemoveMember(wxCommandEvent &event) override
static TOOL_ACTION pickNewGroupMember
void DoAddMember(EDA_ITEM *aItem)
void RunOnDescendants(const std::function< void(BOARD_ITEM *)> &aFunction) const
Invoke a function on all descendants of the group.
void OnMemberSelected(wxCommandEvent &event) override
const BITMAP_OPAQUE small_trash_xpm[1]
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
DIALOG_GROUP_PROPERTIES(PCB_BASE_EDIT_FRAME *aParent, PCB_GROUP *aTarget)
Common, abstract interface for edit frames.
virtual wxString GetSelectMenuText(EDA_UNITS aUnits) const
Return the text to display to be used in the selection clarification context menu when multiple items...
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void Push(const wxString &aMessage=wxT("A commit"), bool aCreateUndoEntry=true, bool aSetDirtyBit=true) override
Revert the commit by restoring the modified items state.
PCB_BASE_EDIT_FRAME * m_brdEditor
Class DIALOG_GROUP_PROPERTIES_BASE.
wxListBox * m_membersList
~DIALOG_GROUP_PROPERTIES()
void FocusOnItem(BOARD_ITEM *aItem)
const BITMAP_OPAQUE small_plus_xpm[1]
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
void SetName(wxString aName)
wxBitmapButton * m_bpAddMember