KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_lib_edit_pin_table.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) 2019-2022 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
14 * GNU 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, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
25
26#include <sch_pin.h>
27
29{
44
45 COL_COUNT // keep as last
46};
47
48
51
52
54{
55public:
58
59 bool TransferDataToWindow() override;
60 bool TransferDataFromWindow() override;
61
62 void OnColSort( wxGridEvent& aEvent );
63 void OnAddRow( wxCommandEvent& event ) override;
64 void OnDeleteRow( wxCommandEvent& event ) override;
65 void OnSize( wxSizeEvent& event ) override;
66 void OnCellEdited( wxGridEvent& event ) override;
67 void OnCellSelected( wxGridEvent& event ) override;
68 void OnRebuildRows( wxCommandEvent& event ) override;
69 void OnGroupSelected( wxCommandEvent& event ) override;
70 void OnFilterCheckBox( wxCommandEvent& event ) override;
71 void OnFilterChoice( wxCommandEvent& event ) override;
72 void OnUpdateUI( wxUpdateUIEvent& event ) override;
73 void OnCancel( wxCommandEvent& event ) override;
74 void OnClose( wxCloseEvent& event ) override;
75 void AddPin( SCH_PIN* pin );
76 void RemovePin( SCH_PIN* pin );
77 bool IsDisplayGrouped();
78
79protected:
80 void updateSummary();
81 void adjustGridColumns();
82
83protected:
85 bool m_initialized = false;
87 std::bitset<64> m_columnsShown;
89 std::vector<SCH_PIN*> m_pins; // a copy of the pins owned by me
91 wxSize m_size;
92
94};
Class DIALOG_LIB_EDIT_PIN_TABLE_BASE.
bool m_modified
true when there are unsaved changes
void OnRebuildRows(wxCommandEvent &event) override
void OnCancel(wxCommandEvent &event) override
void OnUpdateUI(wxUpdateUIEvent &event) override
void OnColSort(wxGridEvent &aEvent)
void OnGroupSelected(wxCommandEvent &event) override
void OnClose(wxCloseEvent &event) override
void OnSize(wxSizeEvent &event) override
PIN_TABLE_DATA_MODEL * m_dataModel
void OnCellSelected(wxGridEvent &event) override
void OnAddRow(wxCommandEvent &event) override
void OnDeleteRow(wxCommandEvent &event) override
void OnCellEdited(wxGridEvent &event) override
std::vector< SCH_PIN * > m_pins
void OnFilterCheckBox(wxCommandEvent &event) override
void OnFilterChoice(wxCommandEvent &event) override
Define a library symbol object.
Definition: lib_symbol.h:78
The symbol library editor main window.