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 )
14 wxBoxSizer* bDialogSizer;
15 bDialogSizer =
new wxBoxSizer( wxVERTICAL );
17 m_fileFormatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"File Format"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
22 bDialogSizer->Add(
m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
25 bSizer5 =
new wxBoxSizer( wxVERTICAL );
27 m_fileFormatHelp =
new wxStaticText(
this, wxID_ANY,
_(
"These parameters are usually specified in files, but not always."), wxDefaultPosition, wxDefaultSize, 0 );
31 wxGridBagSizer* gbSizer1;
32 gbSizer1 =
new wxGridBagSizer( 4, 8 );
33 gbSizer1->SetFlexibleDirection( wxBOTH );
34 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
35 gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
37 unitsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"File units:"), wxDefaultPosition, wxDefaultSize, 0 );
39 gbSizer1->Add(
unitsLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), 0, 5 );
41 m_rbInches =
new wxRadioButton(
this, wxID_ANY,
_(
"Inches"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
42 gbSizer1->Add(
m_rbInches, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), 0, 5 );
44 m_rbMM =
new wxRadioButton(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
45 gbSizer1->Add(
m_rbMM, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), 0, 5 );
47 zeroFormatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Zero format:"), wxDefaultPosition, wxDefaultSize, 0 );
49 gbSizer1->Add(
zeroFormatLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), 0, 5 );
51 m_rbTZ =
new wxRadioButton(
this, wxID_ANY,
_(
"No leading zeros (TZ format)"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
52 gbSizer1->Add(
m_rbTZ, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), 0, 5 );
54 m_rbLZ =
new wxRadioButton(
this, wxID_ANY,
_(
"No trailing zeros (LZ format)"), wxDefaultPosition, wxDefaultSize, 0 );
55 gbSizer1->Add(
m_rbLZ, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), 0, 5 );
58 bSizer5->Add( gbSizer1, 1, wxEXPAND|wxALL, 5 );
61 bDialogSizer->Add( bSizer5, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
64 bDialogSizer->Add( 0, 10, 0, wxEXPAND, 5 );
66 m_coordinatesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Coordinates Format"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
71 bDialogSizer->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
74 bSizer51 =
new wxBoxSizer( wxVERTICAL );
76 m_coordsFormatHelp =
new wxStaticText(
this, wxID_ANY,
_(
"The coordinates format is not specified in Excellon format."), wxDefaultPosition, wxDefaultSize, 0 );
80 m_hint1 =
new wxStaticText(
this, wxID_ANY,
_(
"(The decimal format does not use these settings)"), wxDefaultPosition, wxDefaultSize, 0 );
82 bSizer51->Add(
m_hint1, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
84 wxFlexGridSizer* fgSizerFmt;
85 fgSizerFmt =
new wxFlexGridSizer( 0, 2, 0, 0 );
86 fgSizerFmt->SetFlexibleDirection( wxBOTH );
87 fgSizerFmt->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89 m_staticTextUnitsmm =
new wxStaticText(
this, wxID_ANY,
_(
"Format for mm:"), wxDefaultPosition, wxDefaultSize, 0 );
94 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
96 wxString m_choiceIntegerMMChoices[] = {
_(
"2"),
_(
"3"),
_(
"4"),
_(
"5"),
_(
"6") };
97 int m_choiceIntegerMMNChoices =
sizeof( m_choiceIntegerMMChoices ) /
sizeof( wxString );
98 m_choiceIntegerMM =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceIntegerMMNChoices, m_choiceIntegerMMChoices, 0 );
102 m_staticText8 =
new wxStaticText(
this, wxID_ANY,
_(
":"), wxDefaultPosition, wxDefaultSize, 0 );
104 bSizer4->Add(
m_staticText8, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
106 wxString m_choiceMantissaMMChoices[] = {
_(
"2"),
_(
"3"),
_(
"4"),
_(
"5"),
_(
"6") };
107 int m_choiceMantissaMMNChoices =
sizeof( m_choiceMantissaMMChoices ) /
sizeof( wxString );
108 m_choiceMantissaMM =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMantissaMMNChoices, m_choiceMantissaMMChoices, 0 );
113 fgSizerFmt->Add( bSizer4, 0, wxEXPAND, 5 );
115 m_staticTextUnitsInch =
new wxStaticText(
this, wxID_ANY,
_(
"Format for inches:"), wxDefaultPosition, wxDefaultSize, 0 );
120 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
122 wxString m_choiceIntegerInchChoices[] = {
_(
"2"),
_(
"3"),
_(
"4"),
_(
"5"),
_(
"6") };
123 int m_choiceIntegerInchNChoices =
sizeof( m_choiceIntegerInchChoices ) /
sizeof( wxString );
124 m_choiceIntegerInch =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceIntegerInchNChoices, m_choiceIntegerInchChoices, 0 );
128 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
":"), wxDefaultPosition, wxDefaultSize, 0 );
130 bSizer3->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
132 wxString m_choiceMantissaInchChoices[] = {
_(
"2"),
_(
"3"),
_(
"4"),
_(
"5"),
_(
"6") };
133 int m_choiceMantissaInchNChoices =
sizeof( m_choiceMantissaInchChoices ) /
sizeof( wxString );
134 m_choiceMantissaInch =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceMantissaInchNChoices, m_choiceMantissaInchChoices, 0 );
139 fgSizerFmt->Add( bSizer3, 0, wxEXPAND, 5 );
142 bSizer51->Add( fgSizerFmt, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
144 m_hint2 =
new wxStaticText(
this, wxID_ANY,
_(
"Usually: 3:3 in mm and 2:4 in inches"), wxDefaultPosition, wxDefaultSize, 0 );
146 bSizer51->Add(
m_hint2, 0, wxALL, 5 );
149 bDialogSizer->Add( bSizer51, 1, wxEXPAND|wxTOP|wxLEFT, 5 );
152 this->SetSizer( bDialogSizer );
154 bDialogSizer->Fit(
this );
~PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE()
wxChoice * m_choiceMantissaInch
wxStaticText * m_fileFormatLabel
wxChoice * m_choiceIntegerInch
wxChoice * m_choiceIntegerMM
wxStaticText * unitsLabel
wxStaticText * m_staticTextUnitsmm
wxStaticText * m_staticTextUnitsInch
wxStaticText * m_fileFormatHelp
wxStaticText * zeroFormatLabel
PANEL_GERBVIEW_EXCELLON_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)
wxStaticLine * m_staticline2
wxChoice * m_choiceMantissaMM
wxStaticText * m_staticText9
virtual void onUnitsChange(wxCommandEvent &event)
wxStaticText * m_staticText8
wxRadioButton * m_rbInches
wxStaticText * m_coordsFormatHelp
wxStaticLine * m_staticline1
wxStaticText * m_coordinatesLabel
A wxPanel that is designed to be reset in a standard manner.