2014-07-09 13:10:32 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-09 13:49:20 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2014-07-09 13:10:32 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-27 17:09:27 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2014-07-09 13:10:32 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_enum_pads_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
DIALOG_ENUM_PADS_BASE::DIALOG_ENUM_PADS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2014-07-09 13:10:32 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
m_lblInfo = new wxStaticText( this, wxID_ANY, _("Pad names are restricted to 4 characters (including number)."), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lblInfo->Wrap( -1 );
|
|
|
|
bMainSizer->Add( m_lblInfo, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
bMainSizer->Add( 0, 0, 0, wxTOP|wxBOTTOM, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
wxFlexGridSizer* fgSizer;
|
|
|
|
fgSizer = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
|
|
fgSizer->AddGrowableCol( 1 );
|
|
|
|
fgSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
m_lblPadPrefix = new wxStaticText( this, wxID_ANY, _("Pad name prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lblPadPrefix->Wrap( -1 );
|
2015-02-10 10:38:22 +00:00
|
|
|
fgSizer->Add( m_lblPadPrefix, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
m_padPrefix = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2017-12-27 17:09:27 +00:00
|
|
|
#ifdef __WXGTK__
|
|
|
|
if ( !m_padPrefix->HasFlag( wxTE_MULTILINE ) )
|
|
|
|
{
|
|
|
|
m_padPrefix->SetMaxLength( 4 );
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
m_padPrefix->SetMaxLength( 4 );
|
|
|
|
#endif
|
2015-06-15 13:54:58 +00:00
|
|
|
fgSizer->Add( m_padPrefix, 0, wxALL|wxEXPAND, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
m_lblPadStartNum = new wxStaticText( this, wxID_ANY, _("First pad number:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_lblPadStartNum->Wrap( -1 );
|
2015-02-10 10:38:22 +00:00
|
|
|
fgSizer->Add( m_lblPadStartNum, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
m_padStartNum = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 999, 1 );
|
2015-02-10 10:38:22 +00:00
|
|
|
fgSizer->Add( m_padStartNum, 0, wxALL|wxEXPAND, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
bMainSizer->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
m_stdButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_stdButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsOK );
|
|
|
|
m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_stdButtons->AddButton( m_stdButtonsCancel );
|
|
|
|
m_stdButtons->Realize();
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2015-02-10 10:38:22 +00:00
|
|
|
bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2017-12-27 17:09:27 +00:00
|
|
|
bMainSizer->Fit( this );
|
2023-01-09 13:49:20 +00:00
|
|
|
|
2014-07-09 13:10:32 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_ENUM_PADS_BASE::~DIALOG_ENUM_PADS_BASE()
|
|
|
|
{
|
|
|
|
}
|