KiCad PCB EDA Suite
cmp_tree_pane.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2017 CERN
5  * @author Maciej Suminski <maciej.suminski@cern.ch>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * https://www.gnu.org/licenses/gpl-3.0.html
20  * or you may search the http://www.gnu.org website for the version 3 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef CMP_TREE_PANE_H
26 #define CMP_TREE_PANE_H
27 
28 #include <wx/panel.h>
29 #include <wx/dataview.h>
30 #include <vector>
31 
32 class COMPONENT_TREE;
33 class LIB_EDIT_FRAME;
34 class LIB_MANAGER;
35 class wxBoxSizer;
36 
40 class CMP_TREE_PANE : public wxPanel
41 {
42 public:
43  CMP_TREE_PANE( LIB_EDIT_FRAME* aParent, LIB_MANAGER* aLibMgr );
45 
47  {
48  return m_tree;
49  }
50 
52  void Regenerate();
53 
54 protected:
55  void onComponentSelected( wxCommandEvent& aEvent );
56 
60 };
61 
62 #endif /* CMP_TREE_PANE_H */
LIB_EDIT_FRAME * m_libEditFrame
Definition: cmp_tree_pane.h:57
LIB_MANAGER * m_libMgr
Definition: cmp_tree_pane.h:59
COMPONENT_TREE * m_tree
component search tree widget
Definition: cmp_tree_pane.h:58
void onComponentSelected(wxCommandEvent &aEvent)
CMP_TREE_PANE(LIB_EDIT_FRAME *aParent, LIB_MANAGER *aLibMgr)
Widget displaying a tree of components with optional search text control and description panel...
Class to handle modifications to the symbol libraries.
Definition: lib_manager.h:49
The symbol library editor main window.
Library Editor pane with component tree and symbol library table selector.
Definition: cmp_tree_pane.h:40
void Regenerate()
Updates the component tree
COMPONENT_TREE * GetCmpTree() const
Definition: cmp_tree_pane.h:46