KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_sym_lib_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 Wayne Stambaugh <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef PANEL_SYM_LIB_TABLE_H
22#define PANEL_SYM_LIB_TABLE_H
23
24#include <grid_tricks.h>
27#include <lib_table_grid.h>
28
30
35{
36
37public:
39 virtual ~PANEL_SYM_LIB_TABLE();
40
41private:
47 bool verifyTables();
48
49 void OnUpdateUI( wxUpdateUIEvent& event ) override;
50 void browseLibrariesHandler( wxCommandEvent& event ) override;
51 void appendRowHandler( wxCommandEvent& event ) override;
52 void deleteRowHandler( wxCommandEvent& event ) override;
53 void moveUpHandler( wxCommandEvent& event ) override;
54 void moveDownHandler( wxCommandEvent& event ) override;
55 void onSizeGrid( wxSizeEvent& event ) override;
56 void adjustPathSubsGridColumns( int aWidth );
57 void onConvertLegacyLibraries( wxCommandEvent& event ) override;
58
59 void onPageChange( wxBookCtrlEvent& event ) override;
60 void onReset( wxCommandEvent& event ) override;
61
62 void setupGrid( WX_GRID* aGrid );
63
64 bool TransferDataFromWindow() override;
65
69
71
73
75
82 bool allowAutomaticPluginTypeSelection( wxString& aLibraryPath );
83
85
87 wxArrayString m_pluginChoices;
88
90 static size_t m_pageNdx;
91
94};
95
96
97void InvokeSchEditSymbolLibTable( KIWAY* aKiway, wxWindow *aParent );
98
99
100#endif // PANEL_SYM_LIB_TABLE_H
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition kiway.h:292
PANEL_SYM_LIB_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void OnUpdateUI(wxUpdateUIEvent &event) override
void moveUpHandler(wxCommandEvent &event) override
void onPageChange(wxBookCtrlEvent &event) override
bool allowAutomaticPluginTypeSelection(wxString &aLibraryPath)
static size_t m_pageNdx
Remember the last notebook page selected.
void setupGrid(WX_GRID *aGrid)
void onReset(wxCommandEvent &event) override
void deleteRowHandler(wxCommandEvent &event) override
wxString m_lastProjectLibDir
Transient (unsaved) last browsed folder when adding a project level library.
void browseLibrariesHandler(wxCommandEvent &event) override
SYMBOL_LIB_TABLE_GRID * cur_model() const
bool verifyTables()
Trim important fields, removes blank row entries, and checks for duplicates.
void adjustPathSubsGridColumns(int aWidth)
SYMBOL_LIB_TABLE_GRID * global_model() const
void onSizeGrid(wxSizeEvent &event) override
void onConvertLegacyLibraries(wxCommandEvent &event) override
SYMBOL_LIB_TABLE_GRID * project_model() const
wxArrayString m_pluginChoices
void moveDownHandler(wxCommandEvent &event) override
PANEL_SYM_LIB_TABLE(DIALOG_EDIT_LIBRARY_TABLES *aParent, PROJECT *m_project)
void populateEnvironReadOnlyTable()
Populate the readonly environment variable table with names and values by examining all the full_uri ...
WX_GRID * m_cur_grid
changed based on tab choice
DIALOG_EDIT_LIBRARY_TABLES * m_parent
bool TransferDataFromWindow() override
void appendRowHandler(wxCommandEvent &event) override
Container for project specific data.
Definition project.h:66
void InvokeSchEditSymbolLibTable(KIWAY *aKiway, wxWindow *aParent)