KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_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-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
24
25#ifndef DIALOG_SYMBOL_PROPERTIES_H
26#define DIALOG_SYMBOL_PROPERTIES_H
27
29#include <fields_grid_table.h>
30#include <sch_pin.h>
31
32
33class LIB_SYMBOL;
35class SCH_EDIT_FRAME;
36
37
38// The dialog can be closed for several reasons.
40{
46};
47
48
56{
57public:
60
62
63private:
64 bool TransferDataToWindow() override;
65 bool TransferDataFromWindow() override;
66
67 bool Validate() override;
68
69 // event handlers
70 void OnAddField( wxCommandEvent& event ) override;
71 void OnDeleteField( wxCommandEvent& event ) override;
72 void OnMoveUp( wxCommandEvent& event ) override;
73 void OnMoveDown( wxCommandEvent& event ) override;
74 void OnEditSpiceModel( wxCommandEvent& event ) override;
75 void OnPinTableColSort( wxGridEvent& aEvent );
76 void OnPinTableCellEdited( wxGridEvent& event ) override;
77 void OnSizeFieldsGrid( wxSizeEvent& event ) override;
78 void OnSizePinsGrid( wxSizeEvent& event ) override;
79 void OnGridCellChanging( wxGridEvent& event );
80 void OnUpdateUI( wxUpdateUIEvent& event ) override;
81 void OnCancelButtonClick( wxCommandEvent& event ) override;
82 void OnInitDlg( wxInitDialogEvent& event ) override;
83 void OnGridEditorShown( wxGridEvent& event ) override;
84 void OnGridEditorHidden( wxGridEvent& event ) override;
85 void OnUnitChoice( wxCommandEvent& event ) override;
86 void OnCheckBox( wxCommandEvent& event ) override;
87 void OnPageChanging( wxNotebookEvent& event ) override;
88
89 void OnEditSymbol( wxCommandEvent& ) override;
90 void OnEditLibrarySymbol( wxCommandEvent& ) override;
91 void OnUpdateSymbol( wxCommandEvent& ) override;
92 void OnExchangeSymbol( wxCommandEvent& ) override;
93
96 void HandleDelayedFocus( wxCommandEvent& event );
97 void HandleDelayedSelection( wxCommandEvent& event );
98
99 virtual void onUpdateEditSymbol( wxUpdateUIEvent& event ) override;
100 virtual void onUpdateEditLibrarySymbol( wxUpdateUIEvent& event ) override;
101
102private:
105
111 std::bitset<64> m_shownColumns;
112
115};
116
117#endif // DIALOG_SYMBOL_PROPERTIES_H
Class DIALOG_SYMBOL_PROPERTIES_BASE.
Dialog used to edit SCH_SYMBOL objects in a schematic.
void OnSizePinsGrid(wxSizeEvent &event) override
void OnPinTableCellEdited(wxGridEvent &event) override
void OnGridEditorShown(wxGridEvent &event) override
void OnUpdateUI(wxUpdateUIEvent &event) override
void OnEditSymbol(wxCommandEvent &) override
void OnCancelButtonClick(wxCommandEvent &event) override
virtual void onUpdateEditLibrarySymbol(wxUpdateUIEvent &event) override
SCH_PIN_TABLE_DATA_MODEL * m_dataModel
void OnMoveDown(wxCommandEvent &event) override
void OnSizeFieldsGrid(wxSizeEvent &event) override
void OnPinTableColSort(wxGridEvent &aEvent)
void OnMoveUp(wxCommandEvent &event) override
void OnDeleteField(wxCommandEvent &event) override
void OnInitDlg(wxInitDialogEvent &event) override
void OnAddField(wxCommandEvent &event) override
void OnGridEditorHidden(wxGridEvent &event) override
void OnUnitChoice(wxCommandEvent &event) override
void OnEditSpiceModel(wxCommandEvent &event) override
void OnPageChanging(wxNotebookEvent &event) override
void HandleDelayedFocus(wxCommandEvent &event)
void HandleDelayedSelection(wxCommandEvent &event)
void OnCheckBox(wxCommandEvent &event) override
void OnGridCellChanging(wxGridEvent &event)
void OnEditLibrarySymbol(wxCommandEvent &) override
void OnUpdateSymbol(wxCommandEvent &) override
void OnExchangeSymbol(wxCommandEvent &) override
virtual void onUpdateEditSymbol(wxUpdateUIEvent &event) override
Define a library symbol object.
Definition: lib_symbol.h:78
Schematic editor (Eeschema) main window.
Schematic symbol object.
Definition: sch_symbol.h:104
@ SYMBOL_PROPS_EDIT_SCHEMATIC_SYMBOL
@ SYMBOL_PROPS_WANT_EXCHANGE_SYMBOL
@ SYMBOL_PROPS_WANT_UPDATE_SYMBOL
@ SYMBOL_PROPS_EDIT_LIBRARY_SYMBOL
@ SYMBOL_PROPS_EDIT_OK