KiCad PCB EDA Suite
PANEL_SETUP_MASK_AND_PASTE Class Reference

#include <panel_setup_mask_and_paste.h>

Inheritance diagram for PANEL_SETUP_MASK_AND_PASTE:
PANEL_SETUP_MASK_AND_PASTE_BASE

Public Member Functions

 PANEL_SETUP_MASK_AND_PASTE (PAGED_DIALOG *aParent, PCB_EDIT_FRAME *aFrame)
 
 ~PANEL_SETUP_MASK_AND_PASTE ()
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void ImportSettingsFrom (BOARD *aBoard)
 

Protected Attributes

wxStaticBitmap * m_bitmapWarning
 
wxStaticText * m_staticTextInfoMaskMinWidth
 
wxStaticText * m_staticTextInfoMaskMinWidth1
 
wxStaticLine * m_staticline1
 
wxStaticText * m_maskMarginLabel
 
wxTextCtrl * m_maskMarginCtrl
 
wxStaticText * m_maskMarginUnits
 
wxStaticText * m_maskMinWidthLabel
 
wxTextCtrl * m_maskMinWidthCtrl
 
wxStaticText * m_maskMinWidthUnits
 
wxStaticText * m_maskToCopperClearanceLabel
 
wxTextCtrl * m_maskToCopperClearanceCtrl
 
wxStaticText * m_maskToCopperClearanceUnits
 
wxCheckBox * m_allowBridges
 
wxCheckBox * m_tentVias
 
wxStaticText * m_pasteMarginLabel
 
wxTextCtrl * m_pasteMarginCtrl
 
wxStaticText * m_pasteMarginUnits
 
wxStaticText * m_pasteMarginRatioLabel
 
wxTextCtrl * m_pasteMarginRatioCtrl
 
wxStaticText * m_pasteMarginRatioUnits
 
wxStaticText * m_staticTextInfoPaste
 

Private Attributes

PCB_EDIT_FRAMEm_Frame
 
BOARD_DESIGN_SETTINGSm_BrdSettings
 
UNIT_BINDER m_maskExpansion
 
UNIT_BINDER m_maskMinWidth
 
UNIT_BINDER m_maskToCopperClearance
 
UNIT_BINDER m_pasteMargin
 
UNIT_BINDER m_pasteMarginRatio
 

Detailed Description

Definition at line 38 of file panel_setup_mask_and_paste.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_MASK_AND_PASTE()

PANEL_SETUP_MASK_AND_PASTE::PANEL_SETUP_MASK_AND_PASTE ( PAGED_DIALOG aParent,
PCB_EDIT_FRAME aFrame 
)

Definition at line 32 of file panel_setup_mask_and_paste.cpp.

33 :
42{
43 m_Frame = aFrame;
45
46 m_staticTextInfoPaste->SetFont( KIUI::GetInfoFont( this ).Italic() );
47
49
52}
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition: board.cpp:643
wxTreebook * GetTreebook()
Definition: paged_dialog.h:37
PANEL_SETUP_MASK_AND_PASTE_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)
BOARD_DESIGN_SETTINGS * m_BrdSettings
BOARD * GetBoard() const
virtual void SetUnits(EDA_UNITS aUnits)
Normally not needed (as the UNIT_BINDER inherits from the parent frame), but can be used to set to DE...
virtual void SetNegativeZero()
Definition: unit_binder.h:72
wxFont GetInfoFont(wxWindow *aWindow)
Definition: ui_common.cpp:144

References PCB_BASE_FRAME::GetBoard(), BOARD::GetDesignSettings(), KIUI::GetInfoFont(), m_BrdSettings, m_Frame, m_pasteMargin, m_pasteMarginRatio, PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoPaste, PERCENT, UNIT_BINDER::SetNegativeZero(), and UNIT_BINDER::SetUnits().

◆ ~PANEL_SETUP_MASK_AND_PASTE()

PANEL_SETUP_MASK_AND_PASTE::~PANEL_SETUP_MASK_AND_PASTE ( )
inline

Definition at line 52 of file panel_setup_mask_and_paste.h.

52{ };

Member Function Documentation

◆ ImportSettingsFrom()

void PANEL_SETUP_MASK_AND_PASTE::ImportSettingsFrom ( BOARD aBoard)

Definition at line 88 of file panel_setup_mask_and_paste.cpp.

89{
90 BOARD_DESIGN_SETTINGS* savedSettings = m_BrdSettings;
91
94
95 m_BrdSettings = savedSettings;
96}
Container for design settings for a BOARD object.

References BOARD::GetDesignSettings(), m_BrdSettings, and TransferDataToWindow().

Referenced by DIALOG_BOARD_SETUP::onAuxiliaryAction().

◆ TransferDataFromWindow()

bool PANEL_SETUP_MASK_AND_PASTE::TransferDataFromWindow ( )
override

Definition at line 71 of file panel_setup_mask_and_paste.cpp.

72{
73 // These are all stored in project file, not board, so no need for OnModify()
77 m_Frame->GetBoard()->SetTentVias( m_tentVias->GetValue() );
78
81
83
84 return true;
85}
void SetTentVias(bool aFlag)
Definition: board.h:624
virtual long long int GetValue()
Return the current value in Internal Units.
virtual double GetDoubleValue()
Return the current value in Internal Units.

References PCB_BASE_FRAME::GetBoard(), UNIT_BINDER::GetDoubleValue(), UNIT_BINDER::GetValue(), PANEL_SETUP_MASK_AND_PASTE_BASE::m_allowBridges, BOARD_DESIGN_SETTINGS::m_AllowSoldermaskBridgesInFPs, m_BrdSettings, m_Frame, m_maskExpansion, m_maskMinWidth, m_maskToCopperClearance, m_pasteMargin, m_pasteMarginRatio, BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, BOARD_DESIGN_SETTINGS::m_SolderMaskToCopperClearance, BOARD_DESIGN_SETTINGS::m_SolderPasteMargin, BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio, PANEL_SETUP_MASK_AND_PASTE_BASE::m_tentVias, and BOARD::SetTentVias().

◆ TransferDataToWindow()

bool PANEL_SETUP_MASK_AND_PASTE::TransferDataToWindow ( )
override

Definition at line 55 of file panel_setup_mask_and_paste.cpp.

56{
60 m_tentVias->SetValue( m_Frame->GetBoard()->GetTentVias() );
61
64
66
67 return true;
68}
bool GetTentVias() const
Definition: board.h:623
virtual void SetDoubleValue(double aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.

References PCB_BASE_FRAME::GetBoard(), BOARD::GetTentVias(), PANEL_SETUP_MASK_AND_PASTE_BASE::m_allowBridges, BOARD_DESIGN_SETTINGS::m_AllowSoldermaskBridgesInFPs, m_BrdSettings, m_Frame, m_maskExpansion, m_maskMinWidth, m_maskToCopperClearance, m_pasteMargin, m_pasteMarginRatio, BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, BOARD_DESIGN_SETTINGS::m_SolderMaskToCopperClearance, BOARD_DESIGN_SETTINGS::m_SolderPasteMargin, BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio, PANEL_SETUP_MASK_AND_PASTE_BASE::m_tentVias, UNIT_BINDER::SetDoubleValue(), and UNIT_BINDER::SetValue().

Referenced by ImportSettingsFrom().

Member Data Documentation

◆ m_allowBridges

wxCheckBox* PANEL_SETUP_MASK_AND_PASTE_BASE::m_allowBridges
protectedinherited

◆ m_bitmapWarning

wxStaticBitmap* PANEL_SETUP_MASK_AND_PASTE_BASE::m_bitmapWarning
protectedinherited

◆ m_BrdSettings

BOARD_DESIGN_SETTINGS* PANEL_SETUP_MASK_AND_PASTE::m_BrdSettings
private

◆ m_Frame

PCB_EDIT_FRAME* PANEL_SETUP_MASK_AND_PASTE::m_Frame
private

◆ m_maskExpansion

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_maskExpansion
private

Definition at line 44 of file panel_setup_mask_and_paste.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_maskMarginCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMarginCtrl
protectedinherited

◆ m_maskMarginLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMarginLabel
protectedinherited

◆ m_maskMarginUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMarginUnits
protectedinherited

◆ m_maskMinWidth

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_maskMinWidth
private

Definition at line 45 of file panel_setup_mask_and_paste.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_maskMinWidthCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMinWidthCtrl
protectedinherited

◆ m_maskMinWidthLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMinWidthLabel
protectedinherited

◆ m_maskMinWidthUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMinWidthUnits
protectedinherited

◆ m_maskToCopperClearance

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_maskToCopperClearance
private

Definition at line 46 of file panel_setup_mask_and_paste.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_maskToCopperClearanceCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceCtrl
protectedinherited

◆ m_maskToCopperClearanceLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceLabel
protectedinherited

◆ m_maskToCopperClearanceUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceUnits
protectedinherited

◆ m_pasteMargin

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_pasteMargin
private

◆ m_pasteMarginCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginCtrl
protectedinherited

◆ m_pasteMarginLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginLabel
protectedinherited

◆ m_pasteMarginRatio

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_pasteMarginRatio
private

◆ m_pasteMarginRatioCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioCtrl
protectedinherited

◆ m_pasteMarginRatioLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioLabel
protectedinherited

◆ m_pasteMarginRatioUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioUnits
protectedinherited

◆ m_pasteMarginUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginUnits
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticline1
protectedinherited

◆ m_staticTextInfoMaskMinWidth

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoMaskMinWidth
protectedinherited

◆ m_staticTextInfoMaskMinWidth1

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoMaskMinWidth1
protectedinherited

◆ m_staticTextInfoPaste

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoPaste
protectedinherited

◆ m_tentVias

wxCheckBox* PANEL_SETUP_MASK_AND_PASTE_BASE::m_tentVias
protectedinherited

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