2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-06-11 15:03:16 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-06-11 15:03:16 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-01-31 08:23:20 +00:00
|
|
|
#include "pcb_layer_box_selector.h"
|
2013-09-03 12:48:38 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
#include "dialog_graphic_item_properties_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bUpperSizer;
|
|
|
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2017-12-21 18:47:03 +00:00
|
|
|
m_fgUpperLeftGridSizer = new wxFlexGridSizer( 4, 3, 0, 0 );
|
|
|
|
m_fgUpperLeftGridSizer->AddGrowableCol( 1 );
|
|
|
|
m_fgUpperLeftGridSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
m_fgUpperLeftGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startXLabel = new wxStaticText( this, wxID_ANY, _("Start point X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_startXLabel->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startXLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startXCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startXUnits = new wxStaticText( this, wxID_ANY, _("Unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_startXUnits->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startYLabel = new wxStaticText( this, wxID_ANY, _("Start point Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_startYLabel->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startYLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startYCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_startYUnits = new wxStaticText( this, wxID_ANY, _("Unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_startYUnits->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_startYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endXLabel = new wxStaticText( this, wxID_ANY, _("End point X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_endXLabel->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endXLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endXCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endXUnits = new wxStaticText( this, wxID_ANY, _("Unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_endXUnits->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endYLabel = new wxStaticText( this, wxID_ANY, _("End point Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_endYLabel->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endYLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endYCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_endYUnits = new wxStaticText( this, wxID_ANY, _("Unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_endYUnits->Wrap( -1 );
|
|
|
|
m_fgUpperLeftGridSizer->Add( m_endYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
bUpperSizer->Add( m_fgUpperLeftGridSizer, 1, wxEXPAND|wxRIGHT, 30 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bUpperRightSizer;
|
|
|
|
bUpperRightSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgUpperRightGridSizer;
|
2013-09-03 19:37:52 +00:00
|
|
|
fgUpperRightGridSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
fgUpperRightGridSizer->AddGrowableCol( 1 );
|
|
|
|
fgUpperRightGridSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgUpperRightGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_angleLabel = new wxStaticText( this, wxID_ANY, _("Arc angle:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_angleLabel->Wrap( -1 );
|
|
|
|
fgUpperRightGridSizer->Add( m_angleLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_angleCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgUpperRightGridSizer->Add( m_angleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_angleUnits = new wxStaticText( this, wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_angleUnits->Wrap( -1 );
|
|
|
|
fgUpperRightGridSizer->Add( m_angleUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_thicknessLabel = new wxStaticText( this, wxID_ANY, _("Line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_thicknessLabel->Wrap( -1 );
|
|
|
|
fgUpperRightGridSizer->Add( m_thicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_thicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
fgUpperRightGridSizer->Add( m_thicknessCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
m_thicknessUnits = new wxStaticText( this, wxID_ANY, _("Unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_thicknessUnits->Wrap( -1 );
|
|
|
|
fgUpperRightGridSizer->Add( m_thicknessUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_LayerLabel = new wxStaticText( this, wxID_ANY, _("Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_LayerLabel->Wrap( -1 );
|
2018-06-11 15:03:16 +00:00
|
|
|
fgUpperRightGridSizer->Add( m_LayerLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2013-09-03 12:48:38 +00:00
|
|
|
m_LayerSelectionCtrl = new PCB_LAYER_BOX_SELECTOR( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
2018-06-11 15:03:16 +00:00
|
|
|
fgUpperRightGridSizer->Add( m_LayerSelectionCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2013-09-03 19:37:52 +00:00
|
|
|
fgUpperRightGridSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bUpperRightSizer->Add( fgUpperRightGridSizer, 0, wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bUpperSizer->Add( bUpperRightSizer, 0, wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2018-06-11 15:03:16 +00:00
|
|
|
bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxALL, 10 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2018-06-11 15:03:16 +00:00
|
|
|
bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_StandardButtonsSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_StandardButtonsSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_StandardButtonsSizer->AddButton( m_StandardButtonsSizerOK );
|
|
|
|
m_StandardButtonsSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_StandardButtonsSizer->AddButton( m_StandardButtonsSizerCancel );
|
|
|
|
m_StandardButtonsSizer->Realize();
|
|
|
|
|
2015-06-15 13:54:58 +00:00
|
|
|
bMainSizer->Add( m_StandardButtonsSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2015-09-11 13:08:53 +00:00
|
|
|
bMainSizer->Fit( this );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnClose ) );
|
2016-07-18 16:28:02 +00:00
|
|
|
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnInitDlg ) );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::~DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnClose ) );
|
2016-07-18 16:28:02 +00:00
|
|
|
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_GRAPHIC_ITEM_PROPERTIES_BASE::OnInitDlg ) );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
}
|