KiCad PCB EDA Suite
gerbview_dialog_display_options_frame_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bDialogSizer;
17  bDialogSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bUpperSizer;
20  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bLeftSizer;
23  bLeftSizer = new wxBoxSizer( wxVERTICAL );
24 
25  wxString m_PolarDisplayChoices[] = { _("Cartesian coordinates"), _("Polar coordinates") };
26  int m_PolarDisplayNChoices = sizeof( m_PolarDisplayChoices ) / sizeof( wxString );
27  m_PolarDisplay = new wxRadioBox( this, wxID_ANY, _("Coordinates"), wxDefaultPosition, wxDefaultSize, m_PolarDisplayNChoices, m_PolarDisplayChoices, 1, wxRA_SPECIFY_COLS );
28  m_PolarDisplay->SetSelection( 0 );
29  bLeftSizer->Add( m_PolarDisplay, 0, wxALL|wxEXPAND, 5 );
30 
31  wxString m_BoxUnitsChoices[] = { _("Inches"), _("Millimeters") };
32  int m_BoxUnitsNChoices = sizeof( m_BoxUnitsChoices ) / sizeof( wxString );
33  m_BoxUnits = new wxRadioBox( this, wxID_ANY, _("Units"), wxDefaultPosition, wxDefaultSize, m_BoxUnitsNChoices, m_BoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
34  m_BoxUnits->SetSelection( 0 );
35  bLeftSizer->Add( m_BoxUnits, 0, wxALL|wxEXPAND, 5 );
36 
37  wxString m_CursorShapeChoices[] = { _("Small cross"), _("Full screen cursor") };
38  int m_CursorShapeNChoices = sizeof( m_CursorShapeChoices ) / sizeof( wxString );
39  m_CursorShape = new wxRadioBox( this, wxID_ANY, _("Cursor"), wxDefaultPosition, wxDefaultSize, m_CursorShapeNChoices, m_CursorShapeChoices, 1, wxRA_SPECIFY_COLS );
40  m_CursorShape->SetSelection( 1 );
41  bLeftSizer->Add( m_CursorShape, 0, wxALL|wxEXPAND, 5 );
42 
43  m_OptDisplayDCodes = new wxCheckBox( this, wxID_ANY, _("Show D codes"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_OptDisplayDCodes->SetValue(true);
45  bLeftSizer->Add( m_OptDisplayDCodes, 0, wxALL, 5 );
46 
47 
48  bUpperSizer->Add( bLeftSizer, 1, wxALL|wxEXPAND, 5 );
49 
50  wxBoxSizer* bMiddleSizer;
51  bMiddleSizer = new wxBoxSizer( wxVERTICAL );
52 
53  wxString m_OptDisplayLinesChoices[] = { _("Sketch"), _("Filled") };
54  int m_OptDisplayLinesNChoices = sizeof( m_OptDisplayLinesChoices ) / sizeof( wxString );
55  m_OptDisplayLines = new wxRadioBox( this, wxID_ANY, _("Lines"), wxDefaultPosition, wxDefaultSize, m_OptDisplayLinesNChoices, m_OptDisplayLinesChoices, 1, wxRA_SPECIFY_COLS );
56  m_OptDisplayLines->SetSelection( 1 );
57  bMiddleSizer->Add( m_OptDisplayLines, 0, wxALL|wxEXPAND, 5 );
58 
59  wxString m_OptDisplayFlashedItemsChoices[] = { _("Sketch"), _("Filled") };
60  int m_OptDisplayFlashedItemsNChoices = sizeof( m_OptDisplayFlashedItemsChoices ) / sizeof( wxString );
61  m_OptDisplayFlashedItems = new wxRadioBox( this, wxID_ANY, _("Flashed items"), wxDefaultPosition, wxDefaultSize, m_OptDisplayFlashedItemsNChoices, m_OptDisplayFlashedItemsChoices, 1, wxRA_SPECIFY_COLS );
62  m_OptDisplayFlashedItems->SetSelection( 1 );
63  bMiddleSizer->Add( m_OptDisplayFlashedItems, 0, wxALL|wxEXPAND, 5 );
64 
65  wxString m_OptDisplayPolygonsChoices[] = { _("Sketch"), _("Filled") };
66  int m_OptDisplayPolygonsNChoices = sizeof( m_OptDisplayPolygonsChoices ) / sizeof( wxString );
67  m_OptDisplayPolygons = new wxRadioBox( this, wxID_ANY, _("Polygons"), wxDefaultPosition, wxDefaultSize, m_OptDisplayPolygonsNChoices, m_OptDisplayPolygonsChoices, 1, wxRA_SPECIFY_COLS );
68  m_OptDisplayPolygons->SetSelection( 1 );
69  bMiddleSizer->Add( m_OptDisplayPolygons, 0, wxALL|wxEXPAND, 5 );
70 
71 
72  bUpperSizer->Add( bMiddleSizer, 1, wxALL|wxEXPAND, 5 );
73 
74  wxBoxSizer* bRightSizer;
75  bRightSizer = new wxBoxSizer( wxVERTICAL );
76 
77  wxString m_ShowPageLimitsChoices[] = { _("Full size without limits"), _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
78  int m_ShowPageLimitsNChoices = sizeof( m_ShowPageLimitsChoices ) / sizeof( wxString );
79  m_ShowPageLimits = new wxRadioBox( this, wxID_ANY, _("Page"), wxDefaultPosition, wxDefaultSize, m_ShowPageLimitsNChoices, m_ShowPageLimitsChoices, 1, wxRA_SPECIFY_COLS );
80  m_ShowPageLimits->SetSelection( 0 );
81  bRightSizer->Add( m_ShowPageLimits, 0, wxALL|wxEXPAND, 5 );
82 
83  wxStaticBoxSizer* bLeftBottomSizer;
84  bLeftBottomSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pan and Zoom") ), wxVERTICAL );
85 
86  m_OptZoomNoCenter = new wxCheckBox( bLeftBottomSizer->GetStaticBox(), wxID_ANY, _("Do not center and warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 );
87  m_OptZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") );
88 
89  bLeftBottomSizer->Add( m_OptZoomNoCenter, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
90 
91  m_OptMousewheelPan = new wxCheckBox( bLeftBottomSizer->GetStaticBox(), wxID_ANY, _("Use touchpad to pan"), wxDefaultPosition, wxDefaultSize, 0 );
92  m_OptMousewheelPan->SetToolTip( _("Use touchpad to pan canvas") );
93 
94  bLeftBottomSizer->Add( m_OptMousewheelPan, 0, wxALL, 5 );
95 
96 
97  bRightSizer->Add( bLeftBottomSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
98 
99 
100  bUpperSizer->Add( bRightSizer, 2, wxALL|wxEXPAND, 5 );
101 
102 
103  bDialogSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
104 
105  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
106  bDialogSizer->Add( m_staticline1, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
107 
108  m_sdbSizer1 = new wxStdDialogButtonSizer();
109  m_sdbSizer1OK = new wxButton( this, wxID_OK );
110  m_sdbSizer1->AddButton( m_sdbSizer1OK );
111  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
112  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
113  m_sdbSizer1->Realize();
114 
115  bDialogSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
116 
117 
118  this->SetSizer( bDialogSizer );
119  this->Layout();
120  bDialogSizer->Fit( this );
121 
122  // Connect Events
123  m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelButtonClick ), NULL, this );
124  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOKBUttonClick ), NULL, this );
125 }
126 
128 {
129  // Disconnect Events
130  m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnCancelButtonClick ), NULL, this );
131  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_OPTIONS_BASE::OnOKBUttonClick ), NULL, this );
132 
133 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void OnCancelButtonClick(wxCommandEvent &event)
virtual void OnOKBUttonClick(wxCommandEvent &event)
DIALOG_DISPLAY_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Display Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)