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, see <https://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef FOOTPRINT_TREE_PANE_H
23
#define FOOTPRINT_TREE_PANE_H
24
25
#include <wx/panel.h>
26
#include <wx/dataview.h>
27
#include <vector>
28
29
class
LIB_TREE
;
30
class
FOOTPRINT_EDIT_FRAME
;
31
class
wxBoxSizer;
32
36
class
FOOTPRINT_TREE_PANE
:
public
wxPanel
37
{
38
public
:
39
FOOTPRINT_TREE_PANE
(
FOOTPRINT_EDIT_FRAME
* aParent );
40
~FOOTPRINT_TREE_PANE
();
41
42
LIB_TREE
*
GetLibTree
()
const
43
{
44
return
m_tree
;
45
}
46
50
void
FocusSearchFieldIfExists
();
51
52
protected
:
53
57
void
onMenuOpen
( wxMenuEvent& aEvent );
58
void
onMenuClose
( wxMenuEvent& aEvent );
59
60
void
onComponentSelected
( wxCommandEvent& aEvent );
61
void
onUpdateUI
( wxUpdateUIEvent& aEvent );
62
63
FOOTPRINT_EDIT_FRAME
*
m_frame
;
64
LIB_TREE
*
m_tree
;
65
};
66
67
#endif
/* FOOTPRINT_TREE_PANE_H */
FOOTPRINT_EDIT_FRAME
Definition
footprint_edit_frame.h:47
FOOTPRINT_TREE_PANE::m_tree
LIB_TREE * m_tree
component search tree widget
Definition
footprint_tree_pane.h:64
FOOTPRINT_TREE_PANE::onMenuClose
void onMenuClose(wxMenuEvent &aEvent)
Definition
footprint_tree_pane.cpp:77
FOOTPRINT_TREE_PANE::onUpdateUI
void onUpdateUI(wxUpdateUIEvent &aEvent)
Definition
footprint_tree_pane.cpp:92
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:70
FOOTPRINT_TREE_PANE::m_frame
FOOTPRINT_EDIT_FRAME * m_frame
Definition
footprint_tree_pane.h:63
FOOTPRINT_TREE_PANE::FocusSearchFieldIfExists
void FocusSearchFieldIfExists()
Focus the search widget if it exists.
Definition
footprint_tree_pane.cpp:51
FOOTPRINT_TREE_PANE::onComponentSelected
void onComponentSelected(wxCommandEvent &aEvent)
Definition
footprint_tree_pane.cpp:84
FOOTPRINT_TREE_PANE::~FOOTPRINT_TREE_PANE
~FOOTPRINT_TREE_PANE()
Definition
footprint_tree_pane.cpp:60
FOOTPRINT_TREE_PANE::FOOTPRINT_TREE_PANE
FOOTPRINT_TREE_PANE(FOOTPRINT_EDIT_FRAME *aParent)
Definition
footprint_tree_pane.cpp:26
FOOTPRINT_TREE_PANE::GetLibTree
LIB_TREE * GetLibTree() const
Definition
footprint_tree_pane.h:42
LIB_TREE
Widget displaying a tree of symbols with optional search text control and description panel.
Definition
lib_tree.h:46
src
pcbnew
footprint_tree_pane.h
Generated on Fri Jun 26 2026 00:05:39 for KiCad PCB EDA Suite by
1.13.2