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_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_maskMargin
 
UNIT_BINDER m_maskMinWidth
 
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  :
40 {
41  m_Frame = aFrame;
43 
44  m_staticTextInfoPaste->SetFont( KIUI::GetInfoFont( this ).Italic() );
45 
47 
50 }
virtual void SetNegativeZero()
Definition: unit_binder.h:67
wxFont GetInfoFont(wxWindow *aWindow)
Definition: ui_common.cpp:144
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition: board.cpp:590
wxTreebook * GetTreebook()
Definition: paged_dialog.h:37
BOARD_DESIGN_SETTINGS * m_BrdSettings
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)
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...
Definition: unit_binder.cpp:92
BOARD * GetBoard() const

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 51 of file panel_setup_mask_and_paste.h.

51 { };

Member Function Documentation

◆ ImportSettingsFrom()

void PANEL_SETUP_MASK_AND_PASTE::ImportSettingsFrom ( BOARD aBoard)

Definition at line 76 of file panel_setup_mask_and_paste.cpp.

77 {
78  BOARD_DESIGN_SETTINGS* savedSettings = m_BrdSettings;
79 
80  m_BrdSettings = &aBoard->GetDesignSettings();
82 
83  m_BrdSettings = savedSettings;
84 }
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition: board.cpp:590
BOARD_DESIGN_SETTINGS * m_BrdSettings
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 64 of file panel_setup_mask_and_paste.cpp.

65 {
66  // These are all stored in project file, not board, so no need for OnModify()
71 
72  return true;
73 }
BOARD_DESIGN_SETTINGS * m_BrdSettings
virtual long long int GetValue()
Return the current value in Internal Units.
virtual double GetDoubleValue()
Return the current value in Internal Units.

References UNIT_BINDER::GetDoubleValue(), UNIT_BINDER::GetValue(), m_BrdSettings, m_maskMargin, m_maskMinWidth, m_pasteMargin, m_pasteMarginRatio, BOARD_DESIGN_SETTINGS::m_SolderMaskMargin, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, BOARD_DESIGN_SETTINGS::m_SolderPasteMargin, and BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio.

◆ TransferDataToWindow()

bool PANEL_SETUP_MASK_AND_PASTE::TransferDataToWindow ( )
override

Definition at line 53 of file panel_setup_mask_and_paste.cpp.

54 {
59 
60  return true;
61 }
BOARD_DESIGN_SETTINGS * m_BrdSettings
virtual void SetValue(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
virtual void SetDoubleValue(double aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.

References m_BrdSettings, m_maskMargin, m_maskMinWidth, m_pasteMargin, m_pasteMarginRatio, BOARD_DESIGN_SETTINGS::m_SolderMaskMargin, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, BOARD_DESIGN_SETTINGS::m_SolderPasteMargin, BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio, UNIT_BINDER::SetDoubleValue(), and UNIT_BINDER::SetValue().

Referenced by ImportSettingsFrom().

Member Data Documentation

◆ 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

Definition at line 41 of file panel_setup_mask_and_paste.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE().

◆ m_maskMargin

UNIT_BINDER PANEL_SETUP_MASK_AND_PASTE::m_maskMargin
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_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

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