2017-10-31 16:33:37 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-01-10 17:39:25 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
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"
|
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
#include "dialog_edit_line_style_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
BEGIN_EVENT_TABLE( DIALOG_EDIT_LINE_STYLE_BASE, DIALOG_SHIM )
|
|
|
|
EVT_BUTTON( wxID_APPLY, DIALOG_EDIT_LINE_STYLE_BASE::_wxFB_resetDefaults )
|
|
|
|
END_EVENT_TABLE()
|
|
|
|
|
|
|
|
DIALOG_EDIT_LINE_STYLE_BASE::DIALOG_EDIT_LINE_STYLE_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 );
|
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
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
wxFlexGridSizer* fgSizerGeneral;
|
|
|
|
fgSizerGeneral = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
|
|
fgSizerGeneral->AddGrowableCol( 1 );
|
|
|
|
fgSizerGeneral->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizerGeneral->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 );
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_staticTextWidth, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 3 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_lineWidth, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 3 );
|
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 ) );
|
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 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 );
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_staticTextColor, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
|
|
|
|
|
|
|
m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* bSizer2;
|
|
|
|
bSizer2 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_colorSwatch = new COLOR_SWATCH( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer2->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
m_panel1->SetSizer( bSizer2 );
|
|
|
|
m_panel1->Layout();
|
|
|
|
bSizer2->Fit( m_panel1 );
|
|
|
|
fgSizerGeneral->Add( m_panel1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 2 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2019-12-31 14:01:37 +00:00
|
|
|
fgSizerGeneral->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextStyle->Wrap( -1 );
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_staticTextStyle, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|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
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
fgSizerGeneral->Add( m_typeCombo, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 3 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
mainSizer->Add( fgSizerGeneral, 1, wxEXPAND|wxALL, 10 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2020-08-18 16:12:26 +00:00
|
|
|
mainSizer->Add( m_staticline, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 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
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
this->SetSizer( mainSizer );
|
|
|
|
this->Layout();
|
2020-01-10 17:39:25 +00:00
|
|
|
mainSizer->Fit( this );
|
2019-12-31 04:05:51 +00:00
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_EDIT_LINE_STYLE_BASE::~DIALOG_EDIT_LINE_STYLE_BASE()
|
|
|
|
{
|
|
|
|
}
|