KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_pcbnew_display_origin_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_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* bPanelSizer;
15 bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
16
17 wxBoxSizer* bMargins;
18 bMargins = new wxBoxSizer( wxHORIZONTAL );
19
20 wxBoxSizer* bLeftSizer;
21 bLeftSizer = new wxBoxSizer( wxVERTICAL );
22
23 wxString m_DisplayOriginChoices[] = { _("Page origin"), _("Drill/place file origin"), _("Grid origin") };
24 int m_DisplayOriginNChoices = sizeof( m_DisplayOriginChoices ) / sizeof( wxString );
25 m_DisplayOrigin = new wxRadioBox( this, wxID_ANY, _("Display Origin"), wxDefaultPosition, wxDefaultSize, m_DisplayOriginNChoices, m_DisplayOriginChoices, 1, wxRA_SPECIFY_COLS );
26 m_DisplayOrigin->SetSelection( 0 );
27 m_DisplayOrigin->SetToolTip( _("Select which origin is used for X,Y coordinate display.") );
28
29 bLeftSizer->Add( m_DisplayOrigin, 0, wxALL|wxEXPAND, 5 );
30
31 wxString m_XAxisDirectionChoices[] = { _("Increases right"), _("Increases left") };
32 int m_XAxisDirectionNChoices = sizeof( m_XAxisDirectionChoices ) / sizeof( wxString );
33 m_XAxisDirection = new wxRadioBox( this, wxID_ANY, _("X Axis"), wxDefaultPosition, wxDefaultSize, m_XAxisDirectionNChoices, m_XAxisDirectionChoices, 1, wxRA_SPECIFY_COLS );
34 m_XAxisDirection->SetSelection( 0 );
35 m_XAxisDirection->SetToolTip( _("Select which the direction on the screen in which the X axis increases.") );
36
37 bLeftSizer->Add( m_XAxisDirection, 0, wxALL|wxEXPAND, 5 );
38
39 wxString m_YAxisDirectionChoices[] = { _("Increases up"), _("Increases down") };
40 int m_YAxisDirectionNChoices = sizeof( m_YAxisDirectionChoices ) / sizeof( wxString );
41 m_YAxisDirection = new wxRadioBox( this, wxID_ANY, _("Y Axis"), wxDefaultPosition, wxDefaultSize, m_YAxisDirectionNChoices, m_YAxisDirectionChoices, 1, wxRA_SPECIFY_COLS );
42 m_YAxisDirection->SetSelection( 0 );
43 m_YAxisDirection->SetToolTip( _("Select which the direction on the screen in which the Y axis increases.") );
44
45 bLeftSizer->Add( m_YAxisDirection, 0, wxALL|wxEXPAND, 5 );
46
47
48 bMargins->Add( bLeftSizer, 1, wxEXPAND|wxRIGHT, 5 );
49
50 wxBoxSizer* bRightSizer;
51 bRightSizer = new wxBoxSizer( wxVERTICAL );
52
53
54 bRightSizer->Add( 0, 0, 1, wxEXPAND, 5 );
55
56
57 bMargins->Add( bRightSizer, 1, wxEXPAND|wxRIGHT, 5 );
58
59
60 bPanelSizer->Add( bMargins, 1, wxTOP|wxRIGHT, 5 );
61
62
63 this->SetSizer( bPanelSizer );
64 this->Layout();
65 bPanelSizer->Fit( this );
66}
67
69{
70}
const char * name
Definition: DXF_plotter.cpp:57
PANEL_PCBNEW_DISPLAY_ORIGIN_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)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)