55                return current && current->
m_Type == LIB_TREE_NODE::TYPE::LIBRARY
 
   63                return current && current->
m_Type == LIB_TREE_NODE::TYPE::LIBRARY
 
 
  121    if( !
getDesignBlockPane()->CreateNewDesignBlockLibrary( 
_( 
"New Design Block Library" ) ).IsEmpty() )
 
 
  176           && ( current->
m_Type == LIB_TREE_NODE::TYPE::LIBRARY
 
  177                || current->
m_Type == LIB_TREE_NODE::TYPE::ITEM );
 
 
  184    return current && current->
m_Type == LIB_TREE_NODE::TYPE::ITEM;
 
 
  214    std::string payload = 
"";
 
 
static TOOL_ACTION pinLibrary
 
static TOOL_ACTION hideLibraryTree
 
static TOOL_ACTION unpinLibrary
 
static TOOL_ACTION newLibrary
 
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
 
int UnpinLibrary(const TOOL_EVENT &aEvent)
 
DESIGN_BLOCK_CONTROL(const std::string &aName)
 
void AddContextMenuItems(CONDITIONAL_MENU *aMenu)
 
virtual DESIGN_BLOCK_PANE * getDesignBlockPane()=0
 
LIB_ID getSelectedLibId()
Set up handlers for various events.
 
bool selIsInLibrary(const SELECTION &aSel)
 
LIB_TREE_NODE * getCurrentTreeNode()
 
bool selIsDesignBlock(const SELECTION &aSel)
 
int NewLibrary(const TOOL_EVENT &aEvent)
 
int HideLibraryTree(const TOOL_EVENT &aEvent)
 
int PinLibrary(const TOOL_EVENT &aEvent)
 
int EditDesignBlockProperties(const TOOL_EVENT &aEvent)
 
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
 
std::vector< FRAME_T > m_framesToNotify
Notify other frames that the design block lib table has changed.
 
int DeleteDesignBlock(const TOOL_EVENT &aEvent)
 
virtual ~DESIGN_BLOCK_CONTROL()
 
PANEL_DESIGN_BLOCK_CHOOSER * GetDesignBlockPanel() const
 
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.
 
Widget displaying a tree of symbols with optional search text control and description panel.
 
LIB_TREE_NODE * GetCurrentTreeNode() const
Retrieve the tree node for the first selected item.
 
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
 
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.