2018-04-28 15:22:25 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-10-31 23:25:50 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2018-04-28 15:22:25 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "widgets/wx_grid.h"
|
|
|
|
|
|
|
|
#include "panel_setup_text_and_graphics_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-10-31 23:25:50 +00:00
|
|
|
PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
2018-04-28 15:22:25 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* mainSizer;
|
|
|
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_gridSizer = new wxBoxSizer( wxVERTICAL );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Default properties for new graphic items:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
|
|
|
m_gridSizer->Add( m_staticText1, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Grid
|
2020-05-01 16:24:01 +00:00
|
|
|
m_grid->CreateGrid( 6, 6 );
|
2018-04-28 15:22:25 +00:00
|
|
|
m_grid->EnableEditing( true );
|
|
|
|
m_grid->EnableGridLines( true );
|
|
|
|
m_grid->EnableDragGridSize( false );
|
|
|
|
m_grid->SetMargins( 0, 0 );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Columns
|
2019-02-07 21:48:41 +00:00
|
|
|
m_grid->SetColSize( 0, 140 );
|
|
|
|
m_grid->SetColSize( 1, 140 );
|
|
|
|
m_grid->SetColSize( 2, 140 );
|
|
|
|
m_grid->SetColSize( 3, 140 );
|
|
|
|
m_grid->SetColSize( 4, 80 );
|
|
|
|
m_grid->SetColSize( 5, 120 );
|
2018-04-28 15:22:25 +00:00
|
|
|
m_grid->EnableDragColMove( false );
|
|
|
|
m_grid->EnableDragColSize( true );
|
2019-02-07 21:48:41 +00:00
|
|
|
m_grid->SetColLabelSize( 24 );
|
2018-04-28 15:22:25 +00:00
|
|
|
m_grid->SetColLabelValue( 0, _("Line Thickness") );
|
|
|
|
m_grid->SetColLabelValue( 1, _("Text Width") );
|
|
|
|
m_grid->SetColLabelValue( 2, _("Text Height") );
|
|
|
|
m_grid->SetColLabelValue( 3, _("Text Thickness") );
|
|
|
|
m_grid->SetColLabelValue( 4, _("Italic") );
|
|
|
|
m_grid->SetColLabelValue( 5, _("Keep Upright") );
|
2019-10-31 23:25:50 +00:00
|
|
|
m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Rows
|
|
|
|
m_grid->EnableDragRowSize( false );
|
|
|
|
m_grid->SetRowLabelSize( 132 );
|
|
|
|
m_grid->SetRowLabelValue( 0, _("Silk Layers") );
|
|
|
|
m_grid->SetRowLabelValue( 1, _("Copper Layers") );
|
2018-08-24 20:08:30 +00:00
|
|
|
m_grid->SetRowLabelValue( 2, _("Edge Cuts") );
|
|
|
|
m_grid->SetRowLabelValue( 3, _("Courtyards") );
|
2020-05-01 16:24:01 +00:00
|
|
|
m_grid->SetRowLabelValue( 4, _("Fab Layers") );
|
|
|
|
m_grid->SetRowLabelValue( 5, _("Other Layers") );
|
2019-10-31 23:25:50 +00:00
|
|
|
m_grid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Label Appearance
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_grid->SetToolTip( _("Net Class parameters") );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_gridSizer->Add( m_grid, 0, wxBOTTOM|wxLEFT, 20 );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
m_gridSizer->Add( 0, 0, 0, wxEXPAND|wxTOP, 5 );
|
|
|
|
|
|
|
|
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Default properties for new dimension objects:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText2->Wrap( -1 );
|
|
|
|
m_gridSizer->Add( m_staticText2, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
|
|
|
m_dimensionUnitsLabel = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_dimensionUnitsLabel->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_dimensionUnitsLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
wxString m_dimensionUnitsChoices[] = { _("Inches"), _("Mils"), _("Millimeters") };
|
|
|
|
int m_dimensionUnitsNChoices = sizeof( m_dimensionUnitsChoices ) / sizeof( wxString );
|
|
|
|
m_dimensionUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dimensionUnitsNChoices, m_dimensionUnitsChoices, 0 );
|
|
|
|
m_dimensionUnits->SetSelection( 0 );
|
|
|
|
fgSizer1->Add( m_dimensionUnits, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_dimensionPrecisionLabel = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_dimensionPrecisionLabel->Wrap( -1 );
|
|
|
|
fgSizer1->Add( m_dimensionPrecisionLabel, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
wxString m_dimensionPrecisionChoices[] = { _("0.01 mm / 1 mil"), _("0.001 mm / 0.1 mil"), _("0.0001mm / 0.01 mil") };
|
|
|
|
int m_dimensionPrecisionNChoices = sizeof( m_dimensionPrecisionChoices ) / sizeof( wxString );
|
|
|
|
m_dimensionPrecision = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dimensionPrecisionNChoices, m_dimensionPrecisionChoices, 0 );
|
|
|
|
m_dimensionPrecision->SetSelection( 0 );
|
|
|
|
fgSizer1->Add( m_dimensionPrecision, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
m_gridSizer->Add( fgSizer1, 1, wxEXPAND|wxBOTTOM|wxLEFT, 20 );
|
|
|
|
|
|
|
|
|
2018-07-16 06:25:27 +00:00
|
|
|
mainSizer->Add( m_gridSizer, 0, wxRIGHT|wxLEFT, 5 );
|
2019-10-31 23:25:50 +00:00
|
|
|
|
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
this->SetSizer( mainSizer );
|
|
|
|
this->Layout();
|
|
|
|
mainSizer->Fit( this );
|
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::~PANEL_SETUP_TEXT_AND_GRAPHICS_BASE()
|
|
|
|
{
|
|
|
|
}
|