2017-10-31 16:33:37 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-04-23 18:44:07 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Apr 19 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
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_edit_line_style_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
BEGIN_EVENT_TABLE( DIALOG_EDIT_LINE_STYLE_BASE, DIALOG_SHIM )
|
2017-11-14 23:19:03 +00:00
|
|
|
EVT_BUTTON( idColorBtn, DIALOG_EDIT_LINE_STYLE_BASE::_wxFB_onColorButtonClicked )
|
2017-10-31 16:33:37 +00:00
|
|
|
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 );
|
|
|
|
|
|
|
|
wxBoxSizer* mainSizer;
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer = new wxBoxSizer( wxVERTICAL );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
wxStaticBoxSizer* sbSizerGeneral;
|
2018-04-23 18:44:07 +00:00
|
|
|
sbSizerGeneral = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("General:") ), wxVERTICAL );
|
2017-10-31 16:33:37 +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 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticTextWidth = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextWidth->Wrap( -1 );
|
|
|
|
fgSizerGeneral->Add( m_staticTextWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_lineWidth = new wxTextCtrl( sbSizerGeneral->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
|
|
|
|
m_lineWidth->SetMinSize( wxSize( 80,-1 ) );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
fgSizerGeneral->Add( m_lineWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticWidthUnits = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-10-31 16:33:37 +00:00
|
|
|
m_staticWidthUnits->Wrap( -1 );
|
2017-11-15 19:28:17 +00:00
|
|
|
fgSizerGeneral->Add( m_staticWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 1 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticText5 = new wxStaticText( sbSizerGeneral->GetStaticBox(), wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-10-31 16:33:37 +00:00
|
|
|
m_staticText5->Wrap( -1 );
|
2017-11-15 19:28:17 +00:00
|
|
|
fgSizerGeneral->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_colorButton = new wxBitmapButton( sbSizerGeneral->GetStaticBox(), idColorBtn, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
|
|
|
|
fgSizerGeneral->Add( m_colorButton, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
sbSizerGeneral->Add( fgSizerGeneral, 3, wxEXPAND, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
bSizerUpper->Add( sbSizerGeneral, 3, wxALL|wxEXPAND, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
wxString m_lineStyleChoices[] = { _("Solid"), _("Dashed"), _("Dotted"), _("Dash-Dot") };
|
|
|
|
int m_lineStyleNChoices = sizeof( m_lineStyleChoices ) / sizeof( wxString );
|
2018-04-23 18:44:07 +00:00
|
|
|
m_lineStyle = new wxRadioBox( this, wxID_ANY, _("Line Style:"), wxDefaultPosition, wxDefaultSize, m_lineStyleNChoices, m_lineStyleChoices, 4, wxRA_SPECIFY_ROWS );
|
2017-11-15 19:28:17 +00:00
|
|
|
m_lineStyle->SetSelection( 1 );
|
|
|
|
bSizerUpper->Add( m_lineStyle, 2, wxALL|wxEXPAND, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer->Add( bSizerUpper, 0, wxEXPAND, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer->Add( 0, 0, 1, wxALL|wxEXPAND, 1 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
mainSizer->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
|
2017-10-31 16:33:37 +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();
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2017-11-15 19:28:17 +00:00
|
|
|
mainSizer->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( mainSizer );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_EDIT_LINE_STYLE_BASE::~DIALOG_EDIT_LINE_STYLE_BASE()
|
|
|
|
{
|
|
|
|
}
|