KiCad PCB EDA Suite
dialog_symbol_fields_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) 2017 Oliver Walters
5 * Copyright (C) 2017-2022 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#ifndef DIALOG_SYMBOL_FIELDS_TABLE_H
26#define DIALOG_SYMBOL_FIELDS_TABLE_H
27
28
30#include <sch_reference_list.h>
31
32
33class SCH_EDIT_FRAME;
35
36
38{
39public:
42
43 bool TransferDataToWindow() override;
44 bool TransferDataFromWindow() override;
45
46private:
47 void AddField( const wxString& displayName, const wxString& aCanonicalName, bool defaultShow,
48 bool defaultSortBy, bool addedByUser = false );
49
54 void LoadFieldNames();
55
56 void OnColSort( wxGridEvent& aEvent );
57
58 void OnColumnItemToggled( wxDataViewEvent& event ) override;
59 void OnGroupSymbolsToggled( wxCommandEvent& event ) override;
60 void OnRegroupSymbols( wxCommandEvent& aEvent ) override;
61 void OnTableValueChanged( wxGridEvent& event ) override;
62 void OnTableCellClick( wxGridEvent& event ) override;
63 void OnTableItemContextMenu( wxGridEvent& event ) override;
64 void OnTableColSize( wxGridSizeEvent& event ) override;
65 void OnSizeFieldList( wxSizeEvent& event ) override;
66 void OnAddField( wxCommandEvent& event ) override;
67 void OnRemoveField( wxCommandEvent& event ) override;
68 void OnExport( wxCommandEvent& aEvent ) override;
69 void OnSaveAndContinue( wxCommandEvent& aEvent ) override;
70 void OnCancel( wxCommandEvent& aEvent ) override;
71 void OnClose( wxCloseEvent& aEvent ) override;
72 void OnFilterText( wxCommandEvent& aEvent ) override;
73 void OnFilterMouseMoved( wxMouseEvent& event ) override;
74 void OnFieldsCtrlSelectionChanged( wxDataViewEvent& event ) override;
75
76private:
80
83};
84
85#endif /* DIALOG_SYMBOL_FIELDS_TABLE_H */
Class DIALOG_SYMBOL_FIELDS_TABLE_BASE.
void OnTableColSize(wxGridSizeEvent &event) override
void OnSaveAndContinue(wxCommandEvent &aEvent) override
void OnAddField(wxCommandEvent &event) override
void OnGroupSymbolsToggled(wxCommandEvent &event) override
void OnColumnItemToggled(wxDataViewEvent &event) override
FIELDS_EDITOR_GRID_DATA_MODEL * m_dataModel
void OnTableItemContextMenu(wxGridEvent &event) override
void OnFilterText(wxCommandEvent &aEvent) override
void AddField(const wxString &displayName, const wxString &aCanonicalName, bool defaultShow, bool defaultSortBy, bool addedByUser=false)
void OnRemoveField(wxCommandEvent &event) override
void OnTableCellClick(wxGridEvent &event) override
DIALOG_SYMBOL_FIELDS_TABLE(SCH_EDIT_FRAME *parent)
void OnTableValueChanged(wxGridEvent &event) override
void OnExport(wxCommandEvent &aEvent) override
void OnClose(wxCloseEvent &aEvent) override
void OnFieldsCtrlSelectionChanged(wxDataViewEvent &event) override
void OnCancel(wxCommandEvent &aEvent) override
void OnFilterMouseMoved(wxMouseEvent &event) override
void OnSizeFieldList(wxSizeEvent &event) override
void OnRegroupSymbols(wxCommandEvent &aEvent) override
void LoadFieldNames()
Construct the rows of m_fieldsCtrl and the columns of m_dataModel from a union of all field names in ...
Schematic editor (Eeschema) main window.
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...