KiCad PCB EDA Suite
panel_gerbview_excellon_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE::PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bDialogSizer;
15 bDialogSizer = new wxBoxSizer( wxVERTICAL );
16
17 wxStaticBoxSizer* sbSizerFileFormat;
18 sbSizerFileFormat = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("File Format") ), wxVERTICAL );
19
20 m_staticText11 = new wxStaticText( sbSizerFileFormat->GetStaticBox(), wxID_ANY, _("These parameters are usually specified in files, but not always."), wxDefaultPosition, wxDefaultSize, 0 );
21 m_staticText11->Wrap( -1 );
22 sbSizerFileFormat->Add( m_staticText11, 0, wxALL, 5 );
23
24 wxBoxSizer* bSizer8;
25 bSizer8 = new wxBoxSizer( wxHORIZONTAL );
26
27 wxString m_rbUnitsChoices[] = { _("Inches"), _("mm") };
28 int m_rbUnitsNChoices = sizeof( m_rbUnitsChoices ) / sizeof( wxString );
29 m_rbUnits = new wxRadioBox( sbSizerFileFormat->GetStaticBox(), wxID_ANY, _("File units"), wxDefaultPosition, wxDefaultSize, m_rbUnitsNChoices, m_rbUnitsChoices, 1, wxRA_SPECIFY_COLS );
30 m_rbUnits->SetSelection( 0 );
31 bSizer8->Add( m_rbUnits, 1, wxALL, 5 );
32
33 wxString m_rbZeroFormatChoices[] = { _("No leading zeros (TZ format)"), _("No trailing zeros (LZ format)") };
34 int m_rbZeroFormatNChoices = sizeof( m_rbZeroFormatChoices ) / sizeof( wxString );
35 m_rbZeroFormat = new wxRadioBox( sbSizerFileFormat->GetStaticBox(), wxID_ANY, _("Zero format"), wxDefaultPosition, wxDefaultSize, m_rbZeroFormatNChoices, m_rbZeroFormatChoices, 1, wxRA_SPECIFY_COLS );
36 m_rbZeroFormat->SetSelection( 0 );
37 m_rbZeroFormat->SetToolTip( _("Integers in files can have their zeros stripped.\nNo leading zeros format means the leading zeros are stripped\nNo trailing zeros format means the trailing zeros are stripped") );
38
39 bSizer8->Add( m_rbZeroFormat, 1, wxALL, 5 );
40
41
42 sbSizerFileFormat->Add( bSizer8, 1, wxEXPAND, 5 );
43
44
45 bDialogSizer->Add( sbSizerFileFormat, 1, wxEXPAND, 5 );
46
47 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
48 bDialogSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
49
50 wxStaticBoxSizer* sbSizerCoordinates;
51 sbSizerCoordinates = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Coordinates Format") ), wxVERTICAL );
52
53 m_staticText6 = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _("The coordinates format is not specified in Excellon format."), wxDefaultPosition, wxDefaultSize, 0 );
54 m_staticText6->Wrap( -1 );
55 sbSizerCoordinates->Add( m_staticText6, 0, wxALL, 5 );
56
57 m_staticText10 = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _("(The decimal format does not use these settings)"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_staticText10->Wrap( -1 );
59 sbSizerCoordinates->Add( m_staticText10, 0, wxALL, 5 );
60
61 m_staticText7 = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _("Usually: 3:3 in mm and 2:4 in inches"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_staticText7->Wrap( -1 );
63 sbSizerCoordinates->Add( m_staticText7, 0, wxALL, 5 );
64
65 wxFlexGridSizer* fgSizerFmt;
66 fgSizerFmt = new wxFlexGridSizer( 0, 2, 0, 0 );
67 fgSizerFmt->SetFlexibleDirection( wxBOTH );
68 fgSizerFmt->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
69
70 m_staticTextUnitsmm = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _("Format for mm"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_staticTextUnitsmm->Wrap( -1 );
72 fgSizerFmt->Add( m_staticTextUnitsmm, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
73
74 wxBoxSizer* bSizer4;
75 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
76
77 wxString m_choiceIntegerMMChoices[] = { _("2"), _("3"), _("4"), _("5"), _("6") };
78 int m_choiceIntegerMMNChoices = sizeof( m_choiceIntegerMMChoices ) / sizeof( wxString );
79 m_choiceIntegerMM = new wxChoice( sbSizerCoordinates->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceIntegerMMNChoices, m_choiceIntegerMMChoices, 0 );
80 m_choiceIntegerMM->SetSelection( 1 );
81 bSizer4->Add( m_choiceIntegerMM, 0, wxALL, 5 );
82
83 m_staticText8 = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _(":"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_staticText8->Wrap( -1 );
85 bSizer4->Add( m_staticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
86
87 wxString m_choiceMantissaMMChoices[] = { _("2"), _("3"), _("4"), _("5"), _("6") };
88 int m_choiceMantissaMMNChoices = sizeof( m_choiceMantissaMMChoices ) / sizeof( wxString );
89 m_choiceMantissaMM = new wxChoice( sbSizerCoordinates->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMantissaMMNChoices, m_choiceMantissaMMChoices, 0 );
90 m_choiceMantissaMM->SetSelection( 1 );
91 bSizer4->Add( m_choiceMantissaMM, 0, wxALL, 5 );
92
93
94 fgSizerFmt->Add( bSizer4, 1, wxEXPAND, 5 );
95
96 m_staticTextUnitsInch = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _("Format for inches"), wxDefaultPosition, wxDefaultSize, 0 );
97 m_staticTextUnitsInch->Wrap( -1 );
98 fgSizerFmt->Add( m_staticTextUnitsInch, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
99
100 wxBoxSizer* bSizer3;
101 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
102
103 wxString m_choiceIntegerInchChoices[] = { _("2"), _("3"), _("4"), _("5"), _("6") };
104 int m_choiceIntegerInchNChoices = sizeof( m_choiceIntegerInchChoices ) / sizeof( wxString );
105 m_choiceIntegerInch = new wxChoice( sbSizerCoordinates->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceIntegerInchNChoices, m_choiceIntegerInchChoices, 0 );
106 m_choiceIntegerInch->SetSelection( 0 );
107 bSizer3->Add( m_choiceIntegerInch, 0, wxALL, 5 );
108
109 m_staticText9 = new wxStaticText( sbSizerCoordinates->GetStaticBox(), wxID_ANY, _(":"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_staticText9->Wrap( -1 );
111 bSizer3->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
112
113 wxString m_choiceMantissaInchChoices[] = { _("2"), _("3"), _("4"), _("5"), _("6") };
114 int m_choiceMantissaInchNChoices = sizeof( m_choiceMantissaInchChoices ) / sizeof( wxString );
115 m_choiceMantissaInch = new wxChoice( sbSizerCoordinates->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMantissaInchNChoices, m_choiceMantissaInchChoices, 0 );
116 m_choiceMantissaInch->SetSelection( 2 );
117 bSizer3->Add( m_choiceMantissaInch, 0, wxALL, 5 );
118
119
120 fgSizerFmt->Add( bSizer3, 1, wxEXPAND, 5 );
121
122
123 sbSizerCoordinates->Add( fgSizerFmt, 1, wxEXPAND, 5 );
124
125
126 bDialogSizer->Add( sbSizerCoordinates, 1, wxEXPAND, 5 );
127
128
129 this->SetSizer( bDialogSizer );
130 this->Layout();
131
132 // Connect Events
133 m_choiceIntegerMM->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE::onUnitsChange ), NULL, this );
134 m_choiceIntegerInch->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE::onUnitsChange ), NULL, this );
135}
136
138{
139 // Disconnect Events
140 m_choiceIntegerMM->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE::onUnitsChange ), NULL, this );
141 m_choiceIntegerInch->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE::onUnitsChange ), NULL, this );
142
143}
const char * name
Definition: DXF_plotter.cpp:56
PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(440, 336), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)