KiCad PCB EDA Suite
PANEL_GERBVIEW_SETTINGS_BASE Class Reference

Class PANEL_GERBVIEW_SETTINGS_BASE. More...

#include <panel_gerbview_settings_base.h>

Inheritance diagram for PANEL_GERBVIEW_SETTINGS_BASE:
PANEL_GERBVIEW_SETTINGS

Public Member Functions

 PANEL_GERBVIEW_SETTINGS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL)
 
 ~PANEL_GERBVIEW_SETTINGS_BASE ()
 

Protected Attributes

wxBoxSizer * m_UpperSizer
 
wxRadioBox * m_PolarDisplay
 
wxRadioBox * m_BoxUnits
 
wxRadioBox * m_PageSize
 
wxCheckBox * m_ShowPageLimitsOpt
 

Detailed Description

Constructor & Destructor Documentation

PANEL_GERBVIEW_SETTINGS_BASE::PANEL_GERBVIEW_SETTINGS_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 12 of file panel_gerbview_settings_base.cpp.

References m_BoxUnits, m_PageSize, m_PolarDisplay, m_ShowPageLimitsOpt, and m_UpperSizer.

12  : wxPanel( parent, id, pos, size, style )
13 {
14  wxBoxSizer* bDialogSizer;
15  bDialogSizer = new wxBoxSizer( wxVERTICAL );
16 
17  m_UpperSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bLeftSizer;
20  bLeftSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxString m_PolarDisplayChoices[] = { _("Cartesian coordinates"), _("Polar coordinates") };
23  int m_PolarDisplayNChoices = sizeof( m_PolarDisplayChoices ) / sizeof( wxString );
24  m_PolarDisplay = new wxRadioBox( this, wxID_ANY, _("Coordinates"), wxDefaultPosition, wxDefaultSize, m_PolarDisplayNChoices, m_PolarDisplayChoices, 1, wxRA_SPECIFY_COLS );
25  m_PolarDisplay->SetSelection( 0 );
26  bLeftSizer->Add( m_PolarDisplay, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
27 
28  wxString m_BoxUnitsChoices[] = { _("Inches"), _("Millimeters") };
29  int m_BoxUnitsNChoices = sizeof( m_BoxUnitsChoices ) / sizeof( wxString );
30  m_BoxUnits = new wxRadioBox( this, wxID_ANY, _("Units"), wxDefaultPosition, wxDefaultSize, m_BoxUnitsNChoices, m_BoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
31  m_BoxUnits->SetSelection( 0 );
32  bLeftSizer->Add( m_BoxUnits, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
33 
34  wxString m_PageSizeChoices[] = { _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
35  int m_PageSizeNChoices = sizeof( m_PageSizeChoices ) / sizeof( wxString );
36  m_PageSize = new wxRadioBox( this, wxID_ANY, _("Page Size"), wxDefaultPosition, wxDefaultSize, m_PageSizeNChoices, m_PageSizeChoices, 1, wxRA_SPECIFY_COLS );
37  m_PageSize->SetSelection( 0 );
38  bLeftSizer->Add( m_PageSize, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
39 
40  m_ShowPageLimitsOpt = new wxCheckBox( this, wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
41  bLeftSizer->Add( m_ShowPageLimitsOpt, 0, wxALL, 10 );
42 
43 
44  m_UpperSizer->Add( bLeftSizer, 0, wxEXPAND|wxRIGHT, 5 );
45 
46 
47  bDialogSizer->Add( m_UpperSizer, 0, wxEXPAND|wxRIGHT, 5 );
48 
49 
50  this->SetSizer( bDialogSizer );
51  this->Layout();
52  bDialogSizer->Fit( this );
53 }
PANEL_GERBVIEW_SETTINGS_BASE::~PANEL_GERBVIEW_SETTINGS_BASE ( )

Definition at line 55 of file panel_gerbview_settings_base.cpp.

56 {
57 }

Member Data Documentation

wxRadioBox* PANEL_GERBVIEW_SETTINGS_BASE::m_BoxUnits
protected
wxRadioBox* PANEL_GERBVIEW_SETTINGS_BASE::m_PageSize
protected
wxRadioBox* PANEL_GERBVIEW_SETTINGS_BASE::m_PolarDisplay
protected
wxCheckBox* PANEL_GERBVIEW_SETTINGS_BASE::m_ShowPageLimitsOpt
protected
wxBoxSizer* PANEL_GERBVIEW_SETTINGS_BASE::m_UpperSizer
protected

Definition at line 35 of file panel_gerbview_settings_base.h.

Referenced by PANEL_GERBVIEW_SETTINGS_BASE().


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