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 )
14 wxBoxSizer* bPanelSizer;
15 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
18 bMargins =
new wxBoxSizer( wxHORIZONTAL );
20 wxBoxSizer* bLeftSizer;
21 bLeftSizer =
new wxBoxSizer( wxVERTICAL );
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 );
27 m_DisplayOrigin->SetToolTip(
_(
"Select which origin is used for X,Y coordinate display.") );
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 );
35 m_XAxisDirection->SetToolTip(
_(
"Select which the direction on the screen in which the X axis increases.") );
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 );
43 m_YAxisDirection->SetToolTip(
_(
"Select which the direction on the screen in which the Y axis increases.") );
48 bMargins->Add( bLeftSizer, 1, wxEXPAND|wxRIGHT, 5 );
50 wxBoxSizer* bRightSizer;
51 bRightSizer =
new wxBoxSizer( wxVERTICAL );
54 bRightSizer->Add( 0, 0, 1, wxEXPAND, 5 );
57 bMargins->Add( bRightSizer, 1, wxEXPAND|wxRIGHT, 5 );
60 bPanelSizer->Add( bMargins, 1, wxTOP|wxRIGHT, 5 );
63 this->SetSizer( bPanelSizer );
65 bPanelSizer->Fit(
this );
wxRadioBox * m_XAxisDirection
~PANEL_PCBNEW_DISPLAY_ORIGIN_BASE()
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)
wxRadioBox * m_DisplayOrigin
wxRadioBox * m_YAxisDirection
A wxPanel that is designed to be reset in a standard manner.