KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gal_options_panel_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 wxBoxSizer* mainSizer;
15 mainSizer = new wxBoxSizer( wxVERTICAL );
16
17 m_renderingSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_staticText9 = new wxStaticText( this, wxID_ANY, _("Rendering Engine"), wxDefaultPosition, wxDefaultSize, 0 );
20 m_staticText9->Wrap( -1 );
21 m_renderingSizer->Add( m_staticText9, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
22
23 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
24 m_renderingSizer->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
25
26 wxFlexGridSizer* fgSizer2;
27 fgSizer2 = new wxFlexGridSizer( 0, 1, 4, 0 );
28 fgSizer2->SetFlexibleDirection( wxBOTH );
29 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30
31 m_rbAccelerated = new wxRadioButton( this, wxID_ANY, _("Accelerated graphics"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
32 m_rbAccelerated->SetToolTip( _("Hardware-accelerated graphics (recommended)") );
33
34 fgSizer2->Add( m_rbAccelerated, 0, wxLEFT, 5 );
35
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)") );
38
39 fgSizer2->Add( m_rbFallback, 0, wxLEFT, 5 );
40
41
42 m_renderingSizer->Add( fgSizer2, 0, wxEXPAND|wxALL, 5 );
43
44
45 mainSizer->Add( m_renderingSizer, 0, wxEXPAND|wxBOTTOM, 5 );
46
47 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Grid Display"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_staticText1->Wrap( -1 );
49 mainSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
50
51 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
52 mainSizer->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
53
54 wxBoxSizer* bSizerGridStyle;
55 bSizerGridStyle = new wxBoxSizer( wxHORIZONTAL );
56
57 m_gridStyleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_gridStyleLabel->Wrap( -1 );
59 bSizerGridStyle->Add( m_gridStyleLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
60
61 m_rbDots = new wxRadioButton( this, wxID_ANY, _("Dots"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
62 bSizerGridStyle->Add( m_rbDots, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
63
64 m_rbLines = new wxRadioButton( this, wxID_ANY, _("Lines"), wxDefaultPosition, wxDefaultSize, 0 );
65 bSizerGridStyle->Add( m_rbLines, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
66
67 m_rbCrosses = new wxRadioButton( this, wxID_ANY, _("Small crosses"), wxDefaultPosition, wxDefaultSize, 0 );
68 bSizerGridStyle->Add( m_rbCrosses, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
69
70
71 mainSizer->Add( bSizerGridStyle, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
72
73 wxGridBagSizer* gbGridSettings;
74 gbGridSettings = new wxGridBagSizer( 5, 5 );
75 gbGridSettings->SetFlexibleDirection( wxHORIZONTAL );
76 gbGridSettings->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
77
78 l_gridLineWidth = new wxStaticText( this, wxID_ANY, _("Grid thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
79 l_gridLineWidth->Wrap( -1 );
80 gbGridSettings->Add( l_gridLineWidth, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
81
82 wxArrayString m_gridLineWidthChoices;
83 m_gridLineWidth = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_gridLineWidthChoices, 0 );
84 m_gridLineWidth->SetSelection( 0 );
85 gbGridSettings->Add( m_gridLineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
86
87 l_gridLineWidthUnits = new wxStaticText( this, wxID_ANY, _("pixels"), wxDefaultPosition, wxDefaultSize, 0 );
88 l_gridLineWidthUnits->Wrap( -1 );
89 gbGridSettings->Add( l_gridLineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
90
91 l_gridMinSpacing = new wxStaticText( this, wxID_ANY, _("Minimum grid spacing:"), wxDefaultPosition, wxDefaultSize, 0 );
92 l_gridMinSpacing->Wrap( -1 );
93 gbGridSettings->Add( l_gridMinSpacing, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
94
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 );
97
98 l_gridMinSpacingUnits = new wxStaticText( this, wxID_ANY, _("pixels"), wxDefaultPosition, wxDefaultSize, 0 );
99 l_gridMinSpacingUnits->Wrap( -1 );
100 gbGridSettings->Add( l_gridMinSpacingUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
101
102 l_gridSnapOptions = new wxStaticText( this, wxID_ANY, _("Snap to grid:"), wxDefaultPosition, wxDefaultSize, 0 );
103 l_gridSnapOptions->Wrap( -1 );
104 gbGridSettings->Add( l_gridSnapOptions, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
105
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 );
109 m_gridSnapOptions->SetSelection( 0 );
110 gbGridSettings->Add( m_gridSnapOptions, wxGBPosition( 2, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
111
112
113 gbGridSettings->AddGrowableCol( 1 );
114
115 mainSizer->Add( gbGridSettings, 0, wxEXPAND|wxALL, 5 );
116
117
118 mainSizer->Add( 0, 5, 0, 0, 5 );
119
120 m_stGridLabel = new wxStaticText( this, wxID_ANY, _("Cursor"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_stGridLabel->Wrap( -1 );
122 mainSizer->Add( m_stGridLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
123
124 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
125 mainSizer->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
126
127 wxFlexGridSizer* fgSizer1;
128 fgSizer1 = new wxFlexGridSizer( 0, 1, 3, 0 );
129 fgSizer1->SetFlexibleDirection( wxBOTH );
130 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
131
132 m_rbSmallCrosshairs = new wxRadioButton( this, wxID_ANY, _("Small crosshairs"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
133 fgSizer1->Add( m_rbSmallCrosshairs, 0, wxLEFT, 5 );
134
135 m_rbFullWindowCrosshairs = new wxRadioButton( this, wxID_ANY, _("Full window crosshairs"), wxDefaultPosition, wxDefaultSize, 0 );
136 fgSizer1->Add( m_rbFullWindowCrosshairs, 0, wxLEFT, 5 );
137
138
139 fgSizer1->Add( 0, 8, 0, wxEXPAND, 5 );
140
141 m_forceCursorDisplay = new wxCheckBox( this, wxID_ANY, _("Always show crosshairs"), wxDefaultPosition, wxDefaultSize, 0 );
142 fgSizer1->Add( m_forceCursorDisplay, 0, wxLEFT, 5 );
143
144
145 mainSizer->Add( fgSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
146
147
148 this->SetSizer( mainSizer );
149 this->Layout();
150 mainSizer->Fit( this );
151}
152
154{
155}
const char * name
Definition: DXF_plotter.cpp:57
wxStaticText * l_gridMinSpacingUnits
wxRadioButton * m_rbSmallCrosshairs
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
#define _(s)