12GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
14 wxBoxSizer* mainSizer;
15 mainSizer =
new wxBoxSizer( wxVERTICAL );
19 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
"Rendering Engine"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
26 wxFlexGridSizer* fgSizer2;
27 fgSizer2 =
new wxFlexGridSizer( 0, 1, 4, 0 );
28 fgSizer2->SetFlexibleDirection( wxBOTH );
29 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 m_rbAccelerated =
new wxRadioButton(
this, wxID_ANY,
_(
"Accelerated graphics"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
32 m_rbAccelerated->SetToolTip(
_(
"Hardware-accelerated graphics (recommended)") );
36 m_rbFallback =
new wxRadioButton(
this, wxID_ANY,
_(
"Fallback graphics"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_rbFallback->SetToolTip(
_(
"Software graphics (for computers which do not support KiCad's hardware acceleration requirements)") );
47 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Grid Display"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
54 wxBoxSizer* bSizerGridStyle;
55 bSizerGridStyle =
new wxBoxSizer( wxHORIZONTAL );
57 m_gridStyleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
59 bSizerGridStyle->Add(
m_gridStyleLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
61 m_rbDots =
new wxRadioButton(
this, wxID_ANY,
_(
"Dots"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
62 bSizerGridStyle->Add(
m_rbDots, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
64 m_rbLines =
new wxRadioButton(
this, wxID_ANY,
_(
"Lines"), wxDefaultPosition, wxDefaultSize, 0 );
65 bSizerGridStyle->Add(
m_rbLines, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
67 m_rbCrosses =
new wxRadioButton(
this, wxID_ANY,
_(
"Small crosses"), wxDefaultPosition, wxDefaultSize, 0 );
68 bSizerGridStyle->Add(
m_rbCrosses, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
71 mainSizer->Add( bSizerGridStyle, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
73 wxGridBagSizer* gbGridSettings;
74 gbGridSettings =
new wxGridBagSizer( 5, 5 );
75 gbGridSettings->SetFlexibleDirection( wxHORIZONTAL );
76 gbGridSettings->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
78 l_gridLineWidth =
new wxStaticText(
this, wxID_ANY,
_(
"Grid thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
80 gbGridSettings->Add(
l_gridLineWidth, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
82 wxArrayString m_gridLineWidthChoices;
83 m_gridLineWidth =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridLineWidthChoices, 0 );
85 gbGridSettings->Add(
m_gridLineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
87 l_gridLineWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"pixels"), wxDefaultPosition, wxDefaultSize, 0 );
89 gbGridSettings->Add(
l_gridLineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
91 l_gridMinSpacing =
new wxStaticText(
this, wxID_ANY,
_(
"Minimum grid spacing:"), wxDefaultPosition, wxDefaultSize, 0 );
93 gbGridSettings->Add(
l_gridMinSpacing, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
95 m_gridMinSpacing =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 5, 200, 10 );
96 gbGridSettings->Add(
m_gridMinSpacing, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
98 l_gridMinSpacingUnits =
new wxStaticText(
this, wxID_ANY,
_(
"pixels"), wxDefaultPosition, wxDefaultSize, 0 );
100 gbGridSettings->Add(
l_gridMinSpacingUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
102 l_gridSnapOptions =
new wxStaticText(
this, wxID_ANY,
_(
"Snap to grid:"), wxDefaultPosition, wxDefaultSize, 0 );
104 gbGridSettings->Add(
l_gridSnapOptions, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
106 wxString m_gridSnapOptionsChoices[] = {
_(
"Always"),
_(
"When grid shown"),
_(
"Never") };
107 int m_gridSnapOptionsNChoices =
sizeof( m_gridSnapOptionsChoices ) /
sizeof( wxString );
108 m_gridSnapOptions =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridSnapOptionsNChoices, m_gridSnapOptionsChoices, 0 );
110 gbGridSettings->Add(
m_gridSnapOptions, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
113 gbGridSettings->AddGrowableCol( 1 );
115 mainSizer->Add( gbGridSettings, 0, wxEXPAND|wxALL, 5 );
118 mainSizer->Add( 0, 5, 0, 0, 5 );
120 m_stGridLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cursor"), wxDefaultPosition, wxDefaultSize, 0 );
122 mainSizer->Add(
m_stGridLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
124 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
127 wxFlexGridSizer* fgSizer1;
128 fgSizer1 =
new wxFlexGridSizer( 0, 1, 3, 0 );
129 fgSizer1->SetFlexibleDirection( wxBOTH );
130 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
132 m_rbSmallCrosshairs =
new wxRadioButton(
this, wxID_ANY,
_(
"Small crosshairs"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
135 m_rbFullWindowCrosshairs =
new wxRadioButton(
this, wxID_ANY,
_(
"Full window crosshairs"), wxDefaultPosition, wxDefaultSize, 0 );
139 fgSizer1->Add( 0, 8, 0, wxEXPAND, 5 );
141 m_forceCursorDisplay =
new wxCheckBox(
this, wxID_ANY,
_(
"Always show crosshairs"), wxDefaultPosition, wxDefaultSize, 0 );
145 mainSizer->Add( fgSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
148 this->SetSizer( mainSizer );
150 mainSizer->Fit(
this );
wxStaticText * l_gridLineWidthUnits
wxStaticLine * m_staticline1
wxStaticText * l_gridMinSpacingUnits
wxBoxSizer * m_renderingSizer
wxChoice * m_gridSnapOptions
wxStaticLine * m_staticline3
wxRadioButton * m_rbFallback
wxStaticText * m_stGridLabel
wxStaticText * m_staticText1
wxRadioButton * m_rbCrosses
wxStaticText * m_staticText9
wxStaticLine * m_staticline2
wxSpinCtrl * m_gridMinSpacing
wxRadioButton * m_rbSmallCrosshairs
wxChoice * m_gridLineWidth
wxRadioButton * m_rbLines
wxRadioButton * m_rbAccelerated
wxStaticText * l_gridSnapOptions
wxStaticText * m_gridStyleLabel
wxStaticText * l_gridMinSpacing
wxStaticText * l_gridLineWidth
~GAL_OPTIONS_PANEL_BASE()
GAL_OPTIONS_PANEL_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)
wxRadioButton * m_rbFullWindowCrosshairs
wxCheckBox * m_forceCursorDisplay