KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_PLUGIN_SETTINGS Class Reference

#include <panel_plugin_settings.h>

Inheritance diagram for PANEL_PLUGIN_SETTINGS:
PANEL_PLUGIN_SETTINGS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_PLUGIN_SETTINGS (wxWindow *aParent)
 
void ResetPanel () override
 Reset the contents of this panel.
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel.
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
 

Public Attributes

wxStaticText * m_stPythonStatus
 

Protected Member Functions

bool TransferDataFromWindow () override
 
bool TransferDataToWindow () override
 
void OnPythonInterpreterChanged (wxFileDirPickerEvent &event) override
 
void OnBtnDetectAutomaticallyClicked (wxCommandEvent &aEvent) override
 
void OnEnableApiChecked (wxCommandEvent &aEvent) override
 

Protected Attributes

wxStaticText * m_staticText3
 
wxCheckBox * m_cbEnableApi
 
wxStaticText * m_stApiStatus
 
wxStaticText * m_staticText2
 
wxFilePickerCtrl * m_pickerPythonInterpreter
 
wxButton * m_btnDetectAutomatically
 

Private Member Functions

void updateApiStatusText ()
 
void validatePythonInterpreter ()
 

Private Attributes

bool m_pythonInterpreterValid
 

Detailed Description

Definition at line 29 of file panel_plugin_settings.h.

Constructor & Destructor Documentation

◆ PANEL_PLUGIN_SETTINGS()

PANEL_PLUGIN_SETTINGS::PANEL_PLUGIN_SETTINGS ( wxWindow *  aParent)

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ OnBtnDetectAutomaticallyClicked()

void PANEL_PLUGIN_SETTINGS::OnBtnDetectAutomaticallyClicked ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnEnableApiChecked()

void PANEL_PLUGIN_SETTINGS::OnEnableApiChecked ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_PLUGIN_SETTINGS_BASE.

Definition at line 91 of file panel_plugin_settings.cpp.

References updateApiStatusText(), and validatePythonInterpreter().

◆ OnPythonInterpreterChanged()

void PANEL_PLUGIN_SETTINGS::OnPythonInterpreterChanged ( wxFileDirPickerEvent &  event)
overrideprotectedvirtual

Reimplemented from PANEL_PLUGIN_SETTINGS_BASE.

Definition at line 73 of file panel_plugin_settings.cpp.

References validatePythonInterpreter().

◆ ResetPanel()

void PANEL_PLUGIN_SETTINGS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 39 of file panel_plugin_settings.cpp.

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

◆ updateApiStatusText()

void PANEL_PLUGIN_SETTINGS::updateApiStatusText ( )
private

◆ validatePythonInterpreter()

Member Data Documentation

◆ m_btnDetectAutomatically

wxButton* PANEL_PLUGIN_SETTINGS_BASE::m_btnDetectAutomatically
protectedinherited

◆ m_cbEnableApi

◆ m_pickerPythonInterpreter

◆ m_pythonInterpreterValid

bool PANEL_PLUGIN_SETTINGS::m_pythonInterpreterValid
private

Definition at line 48 of file panel_plugin_settings.h.

Referenced by TransferDataFromWindow(), and validatePythonInterpreter().

◆ m_stApiStatus

wxStaticText* PANEL_PLUGIN_SETTINGS_BASE::m_stApiStatus
protectedinherited

◆ m_staticText2

wxStaticText* PANEL_PLUGIN_SETTINGS_BASE::m_staticText2
protectedinherited

◆ m_staticText3

wxStaticText* PANEL_PLUGIN_SETTINGS_BASE::m_staticText3
protectedinherited

◆ m_stPythonStatus

wxStaticText* PANEL_PLUGIN_SETTINGS_BASE::m_stPythonStatus
inherited

The documentation for this class was generated from the following files: