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( wxVERTICAL );
17 apiLabel =
new wxStaticText(
this, wxID_ANY,
_(
"KiCad API"), wxDefaultPosition, wxDefaultSize, 0 );
19 bPanelSizer->Add(
apiLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
21 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
22 bPanelSizer->Add(
m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
25 apiBox =
new wxBoxSizer( wxVERTICAL );
27 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"When the KiCad API is enabled, plugins and other software running on this computer can connect to KiCad."), wxDefaultPosition, wxDefaultSize, 0 );
31 m_cbEnableApi =
new wxCheckBox(
this, wxID_ANY,
_(
"Enable KiCad API"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_cbEnableApi->SetToolTip(
_(
"Enable the KiCad API. Doing so will allow third-party software running on your computer to access KiCad.") );
37 bPanelSizer->Add( apiBox, 0, wxEXPAND|wxALL, 5 );
40 bPanelSizer->Add( 0, 15, 0, wxEXPAND, 5 );
42 pythonLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Python Interpreter"), wxDefaultPosition, wxDefaultSize, 0 );
44 bPanelSizer->Add(
pythonLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
46 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
47 bPanelSizer->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
49 wxBoxSizer* pythonBox;
50 pythonBox =
new wxBoxSizer( wxVERTICAL );
53 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
55 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Path to Python interpreter:"), wxDefaultPosition, wxDefaultSize, 0 );
57 bSizer4->Add(
m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
59 m_pickerPythonInterpreter =
new wxFilePickerCtrl(
this, wxID_ANY, wxEmptyString,
_(
"Select the path to a Python interpreter"),
_(
"*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_USE_TEXTCTRL );
62 m_btnDetectAutomatically =
new wxButton(
this, wxID_ANY,
_(
"Detect Automatically"), wxDefaultPosition, wxDefaultSize, 0 );
66 pythonBox->Add( bSizer4, 0, wxEXPAND, 5 );
68 m_stPythonStatus =
new wxStaticText(
this, wxID_ANY,
_(
"No Python interpreter chosen; external Python plugins will not be available"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_stApiStatus =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
79 bPanelSizer->Add( pythonBox, 1, wxEXPAND|wxALL, 5 );
82 this->SetSizer( bPanelSizer );
84 bPanelSizer->Fit(
this );