KiCad PCB EDA Suite
PANEL_PCM_SETTINGS Class Reference

#include <panel_pcm_settings.h>

Inheritance diagram for PANEL_PCM_SETTINGS:
PANEL_PCM_SETTINGS_BASE

Public Member Functions

 PANEL_PCM_SETTINGS (wxWindow *parent)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 

Protected Attributes

wxStaticText * m_generalLabel
 
wxStaticLine * m_staticline1
 
wxCheckBox * m_updateCheck
 
wxStaticText * m_staticText4
 
wxStaticLine * m_staticline2
 
wxCheckBox * m_libAutoAdd
 
wxCheckBox * m_libAutoRemove
 
wxStaticText * m_staticText1
 
wxTextCtrl * m_libPrefix
 
wxStaticText * m_libHelp
 

Detailed Description

Definition at line 30 of file panel_pcm_settings.h.

Constructor & Destructor Documentation

◆ PANEL_PCM_SETTINGS()

PANEL_PCM_SETTINGS::PANEL_PCM_SETTINGS ( wxWindow *  parent)

Definition at line 32 of file panel_pcm_settings.cpp.

32 : PANEL_PCM_SETTINGS_BASE( parent )
33{
34 wxSize minSize = m_libPrefix->GetMinSize();
35 int minWidth = m_libPrefix->GetTextExtent( wxT( "XXX.XXX" ) ).GetWidth();
36
37 m_libPrefix->SetMinSize( wxSize( minWidth, minSize.GetHeight() ) );
38
39 m_libHelp->SetFont( KIUI::GetInfoFont( this ).Italic() );
40}
PANEL_PCM_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)
const int minSize
Push and Shove router track width and via size dialog.
wxFont GetInfoFont(wxWindow *aWindow)
Definition: ui_common.cpp:156

References KIUI::GetInfoFont(), PANEL_PCM_SETTINGS_BASE::m_libHelp, PANEL_PCM_SETTINGS_BASE::m_libPrefix, and minSize.

Member Function Documentation

◆ TransferDataFromWindow()

bool PANEL_PCM_SETTINGS::TransferDataFromWindow ( )
override

Definition at line 57 of file panel_pcm_settings.cpp.

58{
59 SETTINGS_MANAGER& mgr = Pgm().GetSettingsManager();
61
62 settings->m_PcmUpdateCheck = m_updateCheck->GetValue();
63 settings->m_PcmLibAutoAdd = m_libAutoAdd->GetValue();
64 settings->m_PcmLibAutoRemove = m_libAutoRemove->GetValue();
65 settings->m_PcmLibPrefix = m_libPrefix->GetValue();
66
67 return true;
68}
wxString m_PcmLibPrefix
T * GetAppSettings(bool aLoadNow=true)
Returns a handle to the a given settings by type If the settings have already been loaded,...
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
Definition: single_top.cpp:111

References SETTINGS_MANAGER::GetAppSettings(), PANEL_PCM_SETTINGS_BASE::m_libAutoAdd, PANEL_PCM_SETTINGS_BASE::m_libAutoRemove, PANEL_PCM_SETTINGS_BASE::m_libPrefix, KICAD_SETTINGS::m_PcmLibAutoAdd, KICAD_SETTINGS::m_PcmLibAutoRemove, KICAD_SETTINGS::m_PcmLibPrefix, KICAD_SETTINGS::m_PcmUpdateCheck, PANEL_PCM_SETTINGS_BASE::m_updateCheck, and Pgm().

◆ TransferDataToWindow()

Member Data Documentation

◆ m_generalLabel

wxStaticText* PANEL_PCM_SETTINGS_BASE::m_generalLabel
protectedinherited

◆ m_libAutoAdd

wxCheckBox* PANEL_PCM_SETTINGS_BASE::m_libAutoAdd
protectedinherited

◆ m_libAutoRemove

wxCheckBox* PANEL_PCM_SETTINGS_BASE::m_libAutoRemove
protectedinherited

◆ m_libHelp

wxStaticText* PANEL_PCM_SETTINGS_BASE::m_libHelp
protectedinherited

◆ m_libPrefix

wxTextCtrl* PANEL_PCM_SETTINGS_BASE::m_libPrefix
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_PCM_SETTINGS_BASE::m_staticline1
protectedinherited

◆ m_staticline2

wxStaticLine* PANEL_PCM_SETTINGS_BASE::m_staticline2
protectedinherited

◆ m_staticText1

wxStaticText* PANEL_PCM_SETTINGS_BASE::m_staticText1
protectedinherited

◆ m_staticText4

wxStaticText* PANEL_PCM_SETTINGS_BASE::m_staticText4
protectedinherited

◆ m_updateCheck

wxCheckBox* PANEL_PCM_SETTINGS_BASE::m_updateCheck
protectedinherited

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