kicad-source/pcbnew/tools/pcb_group_tool.h
Mike Williams 71f71641c2 groups: dialog needs shared_ptr for lifetime issues
Tool resets were deleting the commit out from under us.
2025-05-06 11:29:42 -04:00

18 lines
452 B
C++

#include <tool/group_tool.h>
#include <board_commit.h>
class PCB_GROUP_TOOL : public GROUP_TOOL
{
public:
/**
* Invoke the picker tool to select a new member of the group.
*/
int PickNewMember( const TOOL_EVENT& aEvent ) override;
///< Group selected items.
int Group( const TOOL_EVENT& aEvent ) override;
protected:
std::shared_ptr<COMMIT> createCommit() override { return std::make_shared<BOARD_COMMIT>( this ); }
};