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 apiLabel =
new wxStaticText(
this, wxID_ANY,
_(
"KiCad API"), wxDefaultPosition, wxDefaultSize, 0 );
22 bSizer8->Add(
apiLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
24 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 apiBox =
new wxBoxSizer( wxVERTICAL );
30 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 );
34 m_cbEnableApi =
new wxCheckBox(
this, wxID_ANY,
_(
"Enable KiCad API"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_cbEnableApi->SetToolTip(
_(
"Enable the KiCad API. Doing so will allow third-party software running on your computer to access KiCad.") );
40 bSizer8->Add( apiBox, 1, wxEXPAND|wxALL, 5 );
42 pythonLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Python Interpreter"), wxDefaultPosition, wxDefaultSize, 0 );
44 bSizer8->Add(
pythonLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
46 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
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 bSizer8->Add( pythonBox, 1, wxEXPAND|wxALL, 5 );
82 bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
85 bPanelSizer->Add( bSizer8, 1, wxEXPAND, 5 );
88 this->SetSizer( bPanelSizer );
90 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
wxStaticText * pythonLabel
wxCheckBox * m_cbEnableApi
wxStaticLine * m_staticline2
~PANEL_PLUGIN_SETTINGS_BASE()
wxStaticLine * m_staticline1
virtual void OnPythonInterpreterChanged(wxFileDirPickerEvent &event)
wxStaticText * m_stApiStatus
wxStaticText * m_staticText2
A wxPanel that is designed to be reset in a standard manner.