KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_sch_data_sources.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef PANEL_SCH_DATA_SOURCES_H
21#define PANEL_SCH_DATA_SOURCES_H
22
23#include <memory>
24
25#include <pcm.h>
27
28class wxButton;
29class wxListBox;
30class wxStaticText;
31class EDA_BASE_FRAME;
32
33
35{
36public:
37 PANEL_SCH_DATA_SOURCES( wxWindow* aParent, EDA_BASE_FRAME* aFrame );
38
39 bool TransferDataToWindow() override;
40 bool TransferDataFromWindow() override;
41
42 void ResetPanel() override;
43
44private:
46 void OnManageDataSources( wxCommandEvent& aEvent );
47
48private:
50 std::shared_ptr<PLUGIN_CONTENT_MANAGER> m_pcm;
51 wxStaticText* m_description;
52 wxStaticText* m_status;
53 wxListBox* m_sourcesList;
54 wxButton* m_manageButton;
55};
56
57
58#endif
The base frame for deriving all KiCad main window classes.
void OnManageDataSources(wxCommandEvent &aEvent)
std::shared_ptr< PLUGIN_CONTENT_MANAGER > m_pcm
void ResetPanel() override
Reset the contents of this panel.
PANEL_SCH_DATA_SOURCES(wxWindow *aParent, EDA_BASE_FRAME *aFrame)
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
@ PANEL_SCH_DATA_SOURCES
Definition frame_type.h:85