KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_remote_symbol_config.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,
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#ifndef DIALOG_REMOTE_SYMBOL_CONFIG_H
25#define DIALOG_REMOTE_SYMBOL_CONFIG_H
26
27#include <dialog_shim.h>
28#include <eeschema_settings.h>
29
30class wxTextCtrl;
31class wxStaticText;
32class wxRadioButton;
33class wxButton;
34
36
38{
39public:
40 explicit DIALOG_REMOTE_SYMBOL_CONFIG( wxWindow* aParent );
41
42 bool TransferDataToWindow() override;
43 bool TransferDataFromWindow() override;
44
45private:
46 void onBrowseDestination( wxCommandEvent& aEvent );
47 void onResetDefaults( wxCommandEvent& aEvent );
48 void onPrefixChanged( wxCommandEvent& aEvent );
49
51 void updatePrefixHint();
52
53private:
54 wxTextCtrl* m_destinationCtrl;
55 wxTextCtrl* m_prefixCtrl;
56 wxStaticText* m_prefixHint;
57 wxRadioButton* m_projectRadio;
58 wxRadioButton* m_globalRadio;
59 wxButton* m_resetButton;
60 wxButton* m_browseButton;
61
63};
64
65
66#endif // DIALOG_REMOTE_SYMBOL_CONFIG_H
void onResetDefaults(wxCommandEvent &aEvent)
void applyRemoteSettings(const EESCHEMA_SETTINGS::REMOTE_SYMBOL_CONFIG &aConfig)
void onBrowseDestination(wxCommandEvent &aEvent)
void onPrefixChanged(wxCommandEvent &aEvent)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)