KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_footprint_users.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 The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include <wx/timer.h>
23
24
#include <
lib_id.h
>
25
#include <
symbol_library_query.h
>
26
27
#include <
dialog_footprint_users_base.h
>
28
29
class
KIWAY
;
30
31
35
class
DIALOG_FOOTPRINT_USERS
:
public
DIALOG_FOOTPRINT_USERS_BASE
36
{
37
public
:
44
DIALOG_FOOTPRINT_USERS
( wxWindow* aParent,
KIWAY
& aKiway,
const
LIB_ID
& aFootprint,
int
aFootprintPinCount );
45
46
private
:
47
void
onMatchTypeChanged
( wxCommandEvent& aEvent );
48
void
onLoadTimer
( wxTimerEvent& aEvent );
49
void
onUserActivated
( wxDataViewEvent& aEvent );
50
void
onUserRightClick
( wxDataViewEvent& aEvent );
51
void
onUserKeyDown
( wxKeyEvent& aEvent );
52
55
void
updateUsers
();
56
58
int
matchCategories
()
const
;
59
61
bool
symbolLibrariesReady
();
62
63
void
showUsers
(
const
FOOTPRINT_USERS_RESULT
& aResult );
64
void
showLoadIndication
(
bool
aShow,
float
aProgress = 0.0f );
65
67
wxString
userSymbolName
(
int
aRow )
const
;
68
69
void
openSymbolInEditor
(
const
wxString& aSymbolName );
70
void
copySymbolName
(
const
wxString& aSymbolName );
71
72
KIWAY
&
m_kiway
;
73
LIB_ID
m_footprint
;
74
int
m_footprintPinCount
;
75
wxTimer
m_loadTimer
;
76
bool
m_librariesReady
;
77
};
DIALOG_FOOTPRINT_USERS_BASE::DIALOG_FOOTPRINT_USERS_BASE
DIALOG_FOOTPRINT_USERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint users"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(750, 450), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Definition
dialog_footprint_users_base.cpp:12
DIALOG_FOOTPRINT_USERS::m_librariesReady
bool m_librariesReady
Definition
dialog_footprint_users.h:76
DIALOG_FOOTPRINT_USERS::onMatchTypeChanged
void onMatchTypeChanged(wxCommandEvent &aEvent)
Definition
dialog_footprint_users.cpp:320
DIALOG_FOOTPRINT_USERS::m_footprint
LIB_ID m_footprint
Definition
dialog_footprint_users.h:73
DIALOG_FOOTPRINT_USERS::showLoadIndication
void showLoadIndication(bool aShow, float aProgress=0.0f)
Definition
dialog_footprint_users.cpp:303
DIALOG_FOOTPRINT_USERS::onUserActivated
void onUserActivated(wxDataViewEvent &aEvent)
Definition
dialog_footprint_users.cpp:380
DIALOG_FOOTPRINT_USERS::showUsers
void showUsers(const FOOTPRINT_USERS_RESULT &aResult)
Definition
dialog_footprint_users.cpp:226
DIALOG_FOOTPRINT_USERS::onUserRightClick
void onUserRightClick(wxDataViewEvent &aEvent)
Definition
dialog_footprint_users.cpp:389
DIALOG_FOOTPRINT_USERS::userSymbolName
wxString userSymbolName(int aRow) const
Return the "library:symbol" name of a table row, or an empty string if there is none.
Definition
dialog_footprint_users.cpp:336
DIALOG_FOOTPRINT_USERS::matchCategories
int matchCategories() const
Return the enabled match categories, as the bit set of FOOTPRINT_USERS_MATCH_CATEGORY.
Definition
dialog_footprint_users.cpp:188
DIALOG_FOOTPRINT_USERS::m_kiway
KIWAY & m_kiway
Definition
dialog_footprint_users.h:72
DIALOG_FOOTPRINT_USERS::m_loadTimer
wxTimer m_loadTimer
Definition
dialog_footprint_users.h:75
DIALOG_FOOTPRINT_USERS::copySymbolName
void copySymbolName(const wxString &aSymbolName)
Definition
dialog_footprint_users.cpp:370
DIALOG_FOOTPRINT_USERS::m_footprintPinCount
int m_footprintPinCount
Definition
dialog_footprint_users.h:74
DIALOG_FOOTPRINT_USERS::symbolLibrariesReady
bool symbolLibrariesReady()
Return true once the symbol libraries are loaded, showing the progress when they are not.
Definition
dialog_footprint_users.cpp:205
DIALOG_FOOTPRINT_USERS::openSymbolInEditor
void openSymbolInEditor(const wxString &aSymbolName)
Definition
dialog_footprint_users.cpp:358
DIALOG_FOOTPRINT_USERS::onLoadTimer
void onLoadTimer(wxTimerEvent &aEvent)
Definition
dialog_footprint_users.cpp:326
DIALOG_FOOTPRINT_USERS::updateUsers
void updateUsers()
Show the users for the enabled match categories, querying them when they are not cached yet.
Definition
dialog_footprint_users.cpp:170
DIALOG_FOOTPRINT_USERS::DIALOG_FOOTPRINT_USERS
DIALOG_FOOTPRINT_USERS(wxWindow *aParent, KIWAY &aKiway, const LIB_ID &aFootprint, int aFootprintPinCount)
Definition
dialog_footprint_users.cpp:105
DIALOG_FOOTPRINT_USERS::onUserKeyDown
void onUserKeyDown(wxKeyEvent &aEvent)
Definition
dialog_footprint_users.cpp:427
KIWAY
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition
kiway.h:348
LIB_ID
A logical library item identifier and consists of various portions much like a URI.
Definition
lib_id.h:45
dialog_footprint_users_base.h
lib_id.h
FOOTPRINT_USERS_RESULT
The outcome of a footprint users query, and the JSON encoding used to move it across the Eeschema kif...
Definition
symbol_library_query.h:90
symbol_library_query.h
src
pcbnew
dialogs
dialog_footprint_users.h
Generated on Sat Oct 10 2026 00:06:47 for KiCad PCB EDA Suite by
1.13.2