12PANEL_PLUGIN_SETTINGS_BASE::PANEL_PLUGIN_SETTINGS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
14 wxBoxSizer* bPanelSizer;
15 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
18 bSizer8 =
new wxBoxSizer( wxVERTICAL );
20 wxStaticBoxSizer* sbSizerServer;
21 sbSizerServer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"KiCad API") ), wxVERTICAL );
23 m_staticText3 =
new wxStaticText( sbSizerServer->GetStaticBox(), wxID_ANY,
_(
"When the KiCad API is enabled, plugins and other software running on this computer can connect to KiCad."), wxDefaultPosition, wxDefaultSize, 0 );
27 m_cbEnableApi =
new wxCheckBox( sbSizerServer->GetStaticBox(), wxID_ANY,
_(
"Enable KiCad API"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_cbEnableApi->SetToolTip(
_(
"Enable the KiCad API. Doing so will allow third-party software running on your computer to access KiCad.") );
32 m_stApiStatus =
new wxStaticText( sbSizerServer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
37 bSizer8->Add( sbSizerServer, 0, wxALL|wxEXPAND, 5 );
39 wxStaticBoxSizer* sbSizerPython;
40 sbSizerPython =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Python Interpreter") ), wxVERTICAL );
43 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
45 m_staticText2 =
new wxStaticText( sbSizerPython->GetStaticBox(), wxID_ANY,
_(
"Path to Python interpreter:"), wxDefaultPosition, wxDefaultSize, 0 );
47 bSizer4->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
49 m_pickerPythonInterpreter =
new wxFilePickerCtrl( sbSizerPython->GetStaticBox(), wxID_ANY, wxEmptyString,
_(
"Select the path to a Python interpreter"),
_(
"*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_USE_TEXTCTRL );
52 m_btnDetectAutomatically =
new wxButton( sbSizerPython->GetStaticBox(), wxID_ANY,
_(
"Detect Automatically"), wxDefaultPosition, wxDefaultSize, 0 );
56 sbSizerPython->Add( bSizer4, 0, wxEXPAND, 5 );
58 m_stPythonStatus =
new wxStaticText( sbSizerPython->GetStaticBox(), wxID_ANY,
_(
"No Python interpreter chosen; external Python plugins will not be available"), wxDefaultPosition, wxDefaultSize, 0 );
65 bSizer8->Add( sbSizerPython, 0, wxALL|wxEXPAND, 5 );
68 bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
71 bPanelSizer->Add( bSizer8, 1, wxEXPAND, 5 );
74 this->SetSizer( bPanelSizer );
76 bPanelSizer->Fit(
this );
wxFilePickerCtrl * m_pickerPythonInterpreter
wxStaticText * m_staticText3
virtual void OnBtnDetectAutomaticallyClicked(wxCommandEvent &event)
PANEL_PLUGIN_SETTINGS_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)
wxStaticText * m_stPythonStatus
virtual void OnEnableApiChecked(wxCommandEvent &event)
wxButton * m_btnDetectAutomatically
wxCheckBox * m_cbEnableApi
~PANEL_PLUGIN_SETTINGS_BASE()
virtual void OnPythonInterpreterChanged(wxFileDirPickerEvent &event)
wxStaticText * m_stApiStatus
wxStaticText * m_staticText2
A wxPanel that is designed to be reset in a standard manner.