2017-10-31 16:33:37 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-08 19:26:10 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2017-10-31 16:33:37 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-11-16 23:56:41 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2017-10-31 16:33:37 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
#include "widgets/color_swatch.h"
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
#include "dialog_line_properties_base.h"
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
BEGIN_EVENT_TABLE( DIALOG_LINE_PROPERTIES_BASE, DIALOG_SHIM )
|
|
|
|
EVT_BUTTON( wxID_APPLY, DIALOG_LINE_PROPERTIES_BASE::_wxFB_resetDefaults )
|
2017-10-31 16:33:37 +00:00
|
|
|
END_EVENT_TABLE()
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
DIALOG_LINE_PROPERTIES_BASE::DIALOG_LINE_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 )
|
2017-10-31 16:33:37 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
wxBoxSizer* mainSizer;
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
wxGridBagSizer* gbSizer1;
|
|
|
|
gbSizer1 = new wxGridBagSizer( 3, 0 );
|
|
|
|
gbSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticTextWidth->Wrap( -1 );
|
2022-04-06 12:43:24 +00:00
|
|
|
gbSizer1->Add( m_staticTextWidth, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
|
2022-04-06 12:43:24 +00:00
|
|
|
m_lineWidth->SetMinSize( wxSize( 146,-1 ) );
|
|
|
|
|
2022-10-01 16:42:02 +00:00
|
|
|
gbSizer1->Add( m_lineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-10-31 16:33:37 +00:00
|
|
|
m_staticWidthUnits->Wrap( -1 );
|
2019-12-31 04:05:51 +00:00
|
|
|
m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
|
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
gbSizer1->Add( m_staticWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2019-12-31 14:01:37 +00:00
|
|
|
m_staticTextColor = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextColor->Wrap( -1 );
|
2022-04-06 12:43:24 +00:00
|
|
|
gbSizer1->Add( m_staticTextColor, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2022-10-01 16:42:02 +00:00
|
|
|
m_panelColor = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
|
2022-04-06 12:43:24 +00:00
|
|
|
wxBoxSizer* bSizer21;
|
|
|
|
bSizer21 = new wxBoxSizer( wxVERTICAL );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2022-10-01 16:42:02 +00:00
|
|
|
m_colorSwatch = new COLOR_SWATCH( m_panelColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2022-04-06 12:43:24 +00:00
|
|
|
bSizer21->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2022-10-01 16:42:02 +00:00
|
|
|
m_panelColor->SetSizer( bSizer21 );
|
|
|
|
m_panelColor->Layout();
|
|
|
|
bSizer21->Fit( m_panelColor );
|
|
|
|
gbSizer1->Add( m_panelColor, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2019-12-31 14:01:37 +00:00
|
|
|
|
|
|
|
m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextStyle->Wrap( -1 );
|
2022-04-06 12:43:24 +00:00
|
|
|
gbSizer1->Add( m_staticTextStyle, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
m_typeCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
|
2020-08-18 16:12:26 +00:00
|
|
|
m_typeCombo->SetMinSize( wxSize( 240,-1 ) );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
gbSizer1->Add( m_typeCombo, wxGBPosition( 1, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2022-10-01 16:42:02 +00:00
|
|
|
gbSizer1->AddGrowableCol( 1 );
|
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
mainSizer->Add( gbSizer1, 0, wxEXPAND|wxALL, 10 );
|
2021-07-01 14:40:06 +00:00
|
|
|
|
2022-04-05 22:32:48 +00:00
|
|
|
wxBoxSizer* bSizer3;
|
|
|
|
bSizer3 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
m_helpLabel1 = new wxStaticText( this, wxID_ANY, _("Set width to 0 to use schematic's default line width."), wxDefaultPosition, wxDefaultSize, 0 );
|
2022-04-05 22:32:48 +00:00
|
|
|
m_helpLabel1->Wrap( -1 );
|
|
|
|
bSizer3->Add( m_helpLabel1, 0, wxRIGHT|wxLEFT, 10 );
|
2021-07-01 14:40:06 +00:00
|
|
|
|
2022-04-06 12:43:24 +00:00
|
|
|
m_helpLabel2 = new wxStaticText( this, wxID_ANY, _("Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-07-01 14:40:06 +00:00
|
|
|
m_helpLabel2->Wrap( -1 );
|
2022-04-06 12:43:24 +00:00
|
|
|
bSizer3->Add( m_helpLabel2, 0, wxRIGHT|wxLEFT, 10 );
|
2022-04-05 22:32:48 +00:00
|
|
|
|
|
|
|
|
2023-01-08 19:26:10 +00:00
|
|
|
mainSizer->Add( bSizer3, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerApply = new wxButton( this, wxID_APPLY );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerApply );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2023-01-08 19:26:10 +00:00
|
|
|
mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
this->SetSizer( mainSizer );
|
|
|
|
this->Layout();
|
2023-01-08 19:26:10 +00:00
|
|
|
mainSizer->Fit( this );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
DIALOG_LINE_PROPERTIES_BASE::~DIALOG_LINE_PROPERTIES_BASE()
|
2017-10-31 16:33:37 +00:00
|
|
|
{
|
|
|
|
}
|