2020-07-07 01:33:03 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-11 01:00:47 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2020-07-07 01:33:03 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "panel_pcbnew_display_origin_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
PANEL_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 )
|
2020-07-07 01:33:03 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* bPanelSizer;
|
|
|
|
bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bMargins;
|
|
|
|
bMargins = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bLeftSizer;
|
|
|
|
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2020-11-15 12:41:19 +00:00
|
|
|
wxString m_DisplayOriginChoices[] = { _("Page origin"), _("Drill/place file origin"), _("Grid origin") };
|
2020-07-07 01:33:03 +00:00
|
|
|
int m_DisplayOriginNChoices = sizeof( m_DisplayOriginChoices ) / sizeof( wxString );
|
|
|
|
m_DisplayOrigin = new wxRadioBox( this, wxID_ANY, _("Display Origin"), wxDefaultPosition, wxDefaultSize, m_DisplayOriginNChoices, m_DisplayOriginChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_DisplayOrigin->SetSelection( 0 );
|
|
|
|
m_DisplayOrigin->SetToolTip( _("Select which origin is used for X,Y coordinate display.") );
|
|
|
|
|
|
|
|
bLeftSizer->Add( m_DisplayOrigin, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2020-11-15 12:41:19 +00:00
|
|
|
wxString m_XAxisDirectionChoices[] = { _("Increases right"), _("Increases left") };
|
2020-07-07 01:33:03 +00:00
|
|
|
int m_XAxisDirectionNChoices = sizeof( m_XAxisDirectionChoices ) / sizeof( wxString );
|
|
|
|
m_XAxisDirection = new wxRadioBox( this, wxID_ANY, _("X Axis"), wxDefaultPosition, wxDefaultSize, m_XAxisDirectionNChoices, m_XAxisDirectionChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_XAxisDirection->SetSelection( 0 );
|
|
|
|
m_XAxisDirection->SetToolTip( _("Select which the direction on the screen in which the X axis increases.") );
|
|
|
|
|
2020-11-15 12:41:19 +00:00
|
|
|
bLeftSizer->Add( m_XAxisDirection, 0, wxALL|wxEXPAND, 5 );
|
2020-07-07 01:33:03 +00:00
|
|
|
|
2020-11-15 12:41:19 +00:00
|
|
|
wxString m_YAxisDirectionChoices[] = { _("Increases up"), _("Increases down") };
|
2020-07-07 01:33:03 +00:00
|
|
|
int m_YAxisDirectionNChoices = sizeof( m_YAxisDirectionChoices ) / sizeof( wxString );
|
|
|
|
m_YAxisDirection = new wxRadioBox( this, wxID_ANY, _("Y Axis"), wxDefaultPosition, wxDefaultSize, m_YAxisDirectionNChoices, m_YAxisDirectionChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_YAxisDirection->SetSelection( 0 );
|
|
|
|
m_YAxisDirection->SetToolTip( _("Select which the direction on the screen in which the Y axis increases.") );
|
|
|
|
|
2020-11-15 12:41:19 +00:00
|
|
|
bLeftSizer->Add( m_YAxisDirection, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bMargins->Add( bLeftSizer, 1, wxEXPAND|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bRightSizer;
|
|
|
|
bRightSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
|
|
|
|
bRightSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
2020-07-07 01:33:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
bMargins->Add( bRightSizer, 1, wxEXPAND|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bPanelSizer->Add( bMargins, 1, wxTOP|wxRIGHT, 5 );
|
2020-07-07 01:33:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bPanelSizer );
|
|
|
|
this->Layout();
|
2021-11-01 11:20:13 +00:00
|
|
|
bPanelSizer->Fit( this );
|
2020-07-07 01:33:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::~PANEL_PCBNEW_DISPLAY_ORIGIN_BASE()
|
|
|
|
{
|
|
|
|
}
|