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 <lib_pin.h>
27#include <symbol_library.h>
28
30{
45
46 COL_COUNT // keep as last
47};
48
49
52
53
55{
56public:
59
60 bool TransferDataToWindow() override;
61 bool TransferDataFromWindow() override;
62
63 void OnColSort( wxGridEvent& aEvent );
64 void OnAddRow( wxCommandEvent& event ) override;
65 void OnDeleteRow( wxCommandEvent& event ) override;
66 void OnSize( wxSizeEvent& event ) override;
67 void OnCellEdited( wxGridEvent& event ) override;
68 void OnCellSelected( wxGridEvent& event ) override;
69 void OnRebuildRows( wxCommandEvent& event ) override;
70 void OnGroupSelected( wxCommandEvent& event ) override;
71 void OnFilterCheckBox( wxCommandEvent& event ) override;
72 void OnFilterChoice( wxCommandEvent& event ) override;
73 void OnUpdateUI( wxUpdateUIEvent& event ) override;
74 void OnCancel( wxCommandEvent& event ) override;
75 void OnClose( wxCloseEvent& event ) override;
76 void AddPin( LIB_PIN* pin );
77 void RemovePin( LIB_PIN* pin );
78 bool IsDisplayGrouped();
79
80protected:
81 void updateSummary();
82 void adjustGridColumns();
83
84protected:
86 bool m_initialized = false;
88 std::bitset<64> m_columnsShown;
90 std::vector<LIB_PIN*> m_pins; // a copy of the pins owned by me
92 wxSize m_size;
93
95};
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< LIB_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.
Definition for symbol library class.