2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-01-31 08:23:20 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Aug 4 2017)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-01-31 08:23:20 +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"
|
2017-11-23 13:05:26 +00:00
|
|
|
#include "widgets/text_ctrl_eval.h"
|
2013-09-01 18:38:11 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
#include "dialog_dimension_editor_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_DIMENSION_EDITOR_BASE::DIALOG_DIMENSION_EDITOR_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( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2015-08-01 21:30:38 +00:00
|
|
|
m_staticTextDim = new wxStaticText( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextDim->Wrap( -1 );
|
|
|
|
bSizerMain->Add( m_staticTextDim, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_Name = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_Name->SetMinSize( wxSize( 400,-1 ) );
|
|
|
|
|
|
|
|
bSizerMain->Add( m_Name, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerLeft;
|
|
|
|
bSizerLeft = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_staticTextSizeX = new wxStaticText( this, wxID_ANY, _("Text width"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextSizeX->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextSizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_TxtSizeXCtrl = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerLeft->Add( m_TxtSizeXCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_staticTextSizeY = new wxStaticText( this, wxID_ANY, _("Text height"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextSizeY->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextSizeY, 0, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_TxtSizeYCtrl = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerLeft->Add( m_TxtSizeYCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Text thickness"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextWidth->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextWidth, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_TxtWidthCtrl = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerLeft->Add( m_TxtWidthCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_staticTextPosX = new wxStaticText( this, wxID_ANY, _("Text position X"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextPosX->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextPosX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_textCtrlPosX = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerLeft->Add( m_textCtrlPosX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_staticTextPosY = new wxStaticText( this, wxID_ANY, _("Text position Y"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextPosY->Wrap( -1 );
|
|
|
|
bSizerLeft->Add( m_staticTextPosY, 0, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2017-11-23 13:05:26 +00:00
|
|
|
m_textCtrlPosY = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerLeft->Add( m_textCtrlPosY, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerUpper->Add( bSizerLeft, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxString m_rbMirrorChoices[] = { _("Normal"), _("Mirror") };
|
|
|
|
int m_rbMirrorNChoices = sizeof( m_rbMirrorChoices ) / sizeof( wxString );
|
|
|
|
m_rbMirror = new wxRadioBox( this, wxID_ANY, _("Display"), wxDefaultPosition, wxDefaultSize, m_rbMirrorNChoices, m_rbMirrorChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_rbMirror->SetSelection( 0 );
|
|
|
|
bSizerRight->Add( m_rbMirror, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2015-08-01 21:30:38 +00:00
|
|
|
m_staticTextLayer = new wxStaticText( this, wxID_ANY, _("Layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextLayer->Wrap( -1 );
|
|
|
|
bSizerRight->Add( m_staticTextLayer, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2013-09-01 18:38:11 +00:00
|
|
|
m_SelLayerBox = new PCB_LAYER_BOX_SELECTOR( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
bSizerRight->Add( m_SelLayerBox, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerUpper->Add( bSizerRight, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2015-08-01 21:30:38 +00:00
|
|
|
bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_sdbSizerBts = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerBtsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizerBts->AddButton( m_sdbSizerBtsOK );
|
|
|
|
m_sdbSizerBtsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizerBts->AddButton( m_sdbSizerBtsCancel );
|
|
|
|
m_sdbSizerBts->Realize();
|
|
|
|
|
2015-08-01 21:30:38 +00:00
|
|
|
bSizerMain->Add( m_sdbSizerBts, 0, wxALL|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2015-08-01 21:30:38 +00:00
|
|
|
bSizerMain->Fit( this );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_sdbSizerBtsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DIMENSION_EDITOR_BASE::OnOKClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_DIMENSION_EDITOR_BASE::~DIALOG_DIMENSION_EDITOR_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_sdbSizerBtsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DIMENSION_EDITOR_BASE::OnOKClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|