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, 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 DIALOG_REMOTE_SYMBOL_CONFIG_H
21#define DIALOG_REMOTE_SYMBOL_CONFIG_H
22
23#include <dialog_shim.h>
24#include <eeschema_settings.h>
25
26class wxButton;
27class wxListBox;
28class wxRadioButton;
29class wxStaticText;
30class wxTextCtrl;
31
33
35{
36public:
37 explicit DIALOG_REMOTE_SYMBOL_CONFIG( wxWindow* aParent );
38
39 bool TransferDataToWindow() override;
40 bool TransferDataFromWindow() override;
41
42private:
43 void onBrowseDestination( wxCommandEvent& aEvent );
44 void onResetDefaults( wxCommandEvent& aEvent );
45 void onPrefixChanged( wxCommandEvent& aEvent );
46 void onProviderSelected( wxCommandEvent& aEvent );
47 void onAddProvider( wxCommandEvent& aEvent );
48 void onRemoveProvider( wxCommandEvent& aEvent );
49 void onRefreshProvider( wxCommandEvent& aEvent );
50 void onSignOutProvider( wxCommandEvent& aEvent );
51
52 void applyRemoteSettings( const REMOTE_PROVIDER_SETTINGS& aConfig );
53 void updatePrefixHint();
54 void reloadProviderList();
58
59private:
60 wxListBox* m_providerList;
61 wxTextCtrl* m_providerUrlCtrl;
62 wxTextCtrl* m_providerNameCtrl;
64 wxStaticText* m_providerAuthLabel;
69 wxTextCtrl* m_destinationCtrl;
70 wxTextCtrl* m_prefixCtrl;
71 wxStaticText* m_prefixHint;
72 wxRadioButton* m_projectRadio;
73 wxRadioButton* m_globalRadio;
74 wxButton* m_resetButton;
75 wxButton* m_browseButton;
76
79};
80
81#endif // DIALOG_REMOTE_SYMBOL_CONFIG_H
void applyRemoteSettings(const REMOTE_PROVIDER_SETTINGS &aConfig)
void onSignOutProvider(wxCommandEvent &aEvent)
void onAddProvider(wxCommandEvent &aEvent)
REMOTE_PROVIDER_SETTINGS m_remoteSettings
void onResetDefaults(wxCommandEvent &aEvent)
void onRefreshProvider(wxCommandEvent &aEvent)
void onProviderSelected(wxCommandEvent &aEvent)
void onBrowseDestination(wxCommandEvent &aEvent)
void onRemoveProvider(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)