KiCad PCB EDA Suite
dialog_lib_symbol_properties.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) 1992-2021 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
24
25#ifndef DIALOG_LIB_SYMBOL_PROPERTIES_H
26#define DIALOG_LIB_SYMBOL_PROPERTIES_H
27
28#include <fields_grid_table.h>
29#include <widgets/unit_binder.h>
31
32
34class LIB_SYMBOL;
35class WX_GRID;
36
37
39{
40public:
43
44protected:
45 bool TransferDataToWindow() override;
46 bool TransferDataFromWindow() override;
47
48 bool Validate() override;
49
50 void onPowerCheckBox( wxCommandEvent& aEvent ) override;
51 void OnText( wxCommandEvent& event ) override;
52 void OnCombobox( wxCommandEvent& event ) override;
53 void OnCheckBox( wxCommandEvent& event ) override;
54 void OnSpinCtrl( wxSpinEvent& event ) override;
55 void OnSpinCtrlText( wxCommandEvent& event ) override;
56
57private:
58 void OnAddField( wxCommandEvent& event ) override;
59 void OnDeleteField( wxCommandEvent& event ) override;
60 void OnMoveUp( wxCommandEvent& event ) override;
61 void OnMoveDown( wxCommandEvent& event ) override;
62 void OnSymbolNameKillFocus( wxFocusEvent& event ) override;
63 void OnSymbolNameText( wxCommandEvent& event ) override;
64 void OnAddFootprintFilter( wxCommandEvent& event ) override;
65 void OnDeleteFootprintFilter( wxCommandEvent& event ) override;
66 void OnEditFootprintFilter( wxCommandEvent& event ) override;
67 void OnSizeGrid( wxSizeEvent& event ) override;
68 void OnGridCellChanging( wxGridEvent& event );
69 void OnEditSpiceModel( wxCommandEvent& event ) override;
70 void OnUpdateUI( wxUpdateUIEvent& event ) override;
71 void OnFilterDClick( wxMouseEvent& event ) override;
72 void OnCancelButtonClick( wxCommandEvent& event ) override;
73
74 void adjustGridColumns();
75 void syncControlStates( bool aIsAlias );
76
77public:
80
82
84
91
93 wxSize m_size;
94
95private:
96 static int m_lastOpenedPage; // To remember the last notebook selection
97
101 PARENT
102 };
103
105};
106
107#endif // DIALOG_LIB_SYMBOL_PROPERTIES_H
Class DIALOG_LIB_SYMBOL_PROPERTIES_BASE.
void OnSymbolNameKillFocus(wxFocusEvent &event) override
void OnFilterDClick(wxMouseEvent &event) override
void OnSpinCtrlText(wxCommandEvent &event) override
void OnSizeGrid(wxSizeEvent &event) override
DIALOG_LIB_SYMBOL_PROPERTIES(SYMBOL_EDIT_FRAME *parent, LIB_SYMBOL *aLibEntry)
void OnUpdateUI(wxUpdateUIEvent &event) override
FIELDS_GRID_TABLE< LIB_FIELD > * m_fields
void OnCancelButtonClick(wxCommandEvent &event) override
void OnDeleteFootprintFilter(wxCommandEvent &event) override
void OnEditFootprintFilter(wxCommandEvent &event) override
void OnDeleteField(wxCommandEvent &event) override
void OnCombobox(wxCommandEvent &event) override
void OnMoveUp(wxCommandEvent &event) override
void OnText(wxCommandEvent &event) override
void OnMoveDown(wxCommandEvent &event) override
void OnAddFootprintFilter(wxCommandEvent &event) override
void OnCheckBox(wxCommandEvent &event) override
void OnSymbolNameText(wxCommandEvent &event) override
void onPowerCheckBox(wxCommandEvent &aEvent) override
void OnAddField(wxCommandEvent &event) override
void OnEditSpiceModel(wxCommandEvent &event) override
void OnSpinCtrl(wxSpinEvent &event) override
Define a library symbol object.
Definition: lib_symbol.h:99
The symbol library editor main window.