KiCad PCB EDA Suite
Loading...
Searching...
No Matches
footprint_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
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
* @author Maciej Suminski <
[email protected]
>
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version 3
11
* of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, you may find one here:
20
* https://www.gnu.org/licenses/gpl-3.0.html
21
* or you may search the http://www.gnu.org website for the version 3 license,
22
* or you may write to the Free Software Foundation, Inc.,
23
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24
*/
25
26
#ifndef FOOTPRINT_TREE_PANE_H
27
#define FOOTPRINT_TREE_PANE_H
28
29
#include <wx/panel.h>
30
#include <wx/dataview.h>
31
#include <vector>
32
33
class
LIB_TREE
;
34
class
FOOTPRINT_EDIT_FRAME
;
35
class
wxBoxSizer;
36
40
class
FOOTPRINT_TREE_PANE
:
public
wxPanel
41
{
42
public
:
43
FOOTPRINT_TREE_PANE
(
FOOTPRINT_EDIT_FRAME
* aParent );
44
~FOOTPRINT_TREE_PANE
();
45
46
LIB_TREE
*
GetLibTree
()
const
47
{
48
return
m_tree
;
49
}
50
54
void
FocusSearchFieldIfExists
();
55
56
protected
:
57
61
void
onMenuOpen
( wxMenuEvent& aEvent );
62
void
onMenuClose
( wxMenuEvent& aEvent );
63
64
void
onComponentSelected
( wxCommandEvent& aEvent );
65
void
onUpdateUI
( wxUpdateUIEvent& aEvent );
66
67
FOOTPRINT_EDIT_FRAME
*
m_frame
;
68
LIB_TREE
*
m_tree
;
69
};
70
71
#endif
/* FOOTPRINT_TREE_PANE_H */
FOOTPRINT_EDIT_FRAME
Definition:
footprint_edit_frame.h:41
FOOTPRINT_TREE_PANE
Footprint Editor pane with footprint library tree.
Definition:
footprint_tree_pane.h:41
FOOTPRINT_TREE_PANE::m_tree
LIB_TREE * m_tree
component search tree widget
Definition:
footprint_tree_pane.h:68
FOOTPRINT_TREE_PANE::onMenuClose
void onMenuClose(wxMenuEvent &aEvent)
Definition:
footprint_tree_pane.cpp:81
FOOTPRINT_TREE_PANE::onUpdateUI
void onUpdateUI(wxUpdateUIEvent &aEvent)
Definition:
footprint_tree_pane.cpp:96
FOOTPRINT_TREE_PANE::onMenuOpen
void onMenuOpen(wxMenuEvent &aEvent)
Handle parent menu events to block preview updates while the menu is open.
Definition:
footprint_tree_pane.cpp:74
FOOTPRINT_TREE_PANE::m_frame
FOOTPRINT_EDIT_FRAME * m_frame
Definition:
footprint_tree_pane.h:67
FOOTPRINT_TREE_PANE::FocusSearchFieldIfExists
void FocusSearchFieldIfExists()
Focus the search widget if it exists.
Definition:
footprint_tree_pane.cpp:55
FOOTPRINT_TREE_PANE::onComponentSelected
void onComponentSelected(wxCommandEvent &aEvent)
Definition:
footprint_tree_pane.cpp:88
FOOTPRINT_TREE_PANE::~FOOTPRINT_TREE_PANE
~FOOTPRINT_TREE_PANE()
Definition:
footprint_tree_pane.cpp:64
FOOTPRINT_TREE_PANE::GetLibTree
LIB_TREE * GetLibTree() const
Definition:
footprint_tree_pane.h:46
LIB_TREE
Widget displaying a tree of symbols with optional search text control and description panel.
Definition:
lib_tree.h:49
src
pcbnew
footprint_tree_pane.h
Generated on Fri Jan 31 2025 00:05:15 for KiCad PCB EDA Suite by
1.9.6