128    if( !
m_editFrame->SaveBoardToDesignBlock( libId ) )
 
 
  147    if( !
m_editFrame->SaveSelectionToDesignBlock( libId ) )
 
 
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
 
void AddContextMenuItems(CONDITIONAL_MENU *aMenu)
 
bool selIsInLibrary(const SELECTION &aSel)
 
LIB_TREE_NODE * getCurrentTreeNode()
 
bool selIsDesignBlock(const SELECTION &aSel)
 
int EditDesignBlockProperties(const TOOL_EVENT &aEvent)
 
std::vector< FRAME_T > m_framesToNotify
Notify other frames that the design block lib table has changed.
 
int DeleteDesignBlock(const TOOL_EVENT &aEvent)
 
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
 
A logical library item identifier and consists of various portions much like a URI.
 
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
 
Model class in the component selector Model-View-Adapter (mediated MVC) architecture.
 
static TOOL_ACTION saveSelectionAsDesignBlock
 
static TOOL_ACTION editDesignBlockProperties
 
static TOOL_ACTION deleteDesignBlock
 
static TOOL_ACTION saveBoardAsDesignBlock
 
static TOOL_ACTION placeDesignBlock
 
static TOOL_ACTION saveSelectionToDesignBlock
 
static TOOL_ACTION saveBoardToDesignBlock
 
int SaveSelectionAsDesignBlock(const TOOL_EVENT &aEvent)
 
DESIGN_BLOCK_PANE * getDesignBlockPane() override
 
virtual ~PCB_DESIGN_BLOCK_CONTROL()
 
bool Init() override
Init() is called once upon a registration of the tool.
 
PCB_EDIT_FRAME * m_editFrame
 
LIB_ID getSelectedLibId()
Set up handlers for various events.
 
int SaveBoardAsDesignBlock(const TOOL_EVENT &aEvent)
 
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
 
int SaveSelectionToDesignBlock(const TOOL_EVENT &aEvent)
 
int SaveBoardToDesignBlock(const TOOL_EVENT &aEvent)