2012-09-07 16:15:18 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-05-27 22:28:36 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2012-09-07 16:15:18 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2012-09-07 16:15:18 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
#include "widgets/bitmap_button.h"
|
2022-01-03 01:20:25 +00:00
|
|
|
#include "widgets/font_choice.h"
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
#include "dialog_lib_text_properties_base.h"
|
2012-09-07 16:15:18 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
DIALOG_LIB_TEXT_PROPERTIES_BASE::DIALOG_LIB_TEXT_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 )
|
2012-09-07 16:15:18 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
wxBoxSizer* bPropertiesSizer;
|
|
|
|
bPropertiesSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
wxBoxSizer* bUpperBoxSizer;
|
2021-09-27 12:24:53 +00:00
|
|
|
bUpperBoxSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
wxBoxSizer* bTextValueBoxSizer;
|
2018-05-24 07:12:43 +00:00
|
|
|
bTextValueBoxSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2020-06-08 19:41:09 +00:00
|
|
|
m_textLabel = new wxStaticText( this, wxID_ANY, _("Text:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textLabel->Wrap( -1 );
|
|
|
|
bTextValueBoxSizer->Add( m_textLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-03-28 16:20:47 +00:00
|
|
|
m_TextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2020-06-08 19:41:09 +00:00
|
|
|
bTextValueBoxSizer->Add( m_TextCtrl, 1, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
m_StyledTextCtrl = new wxStyledTextCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN, wxEmptyString );
|
|
|
|
m_StyledTextCtrl->SetUseTabs( true );
|
|
|
|
m_StyledTextCtrl->SetTabWidth( 4 );
|
|
|
|
m_StyledTextCtrl->SetIndent( 4 );
|
|
|
|
m_StyledTextCtrl->SetTabIndents( false );
|
|
|
|
m_StyledTextCtrl->SetBackSpaceUnIndents( false );
|
|
|
|
m_StyledTextCtrl->SetViewEOL( false );
|
|
|
|
m_StyledTextCtrl->SetViewWhiteSpace( false );
|
|
|
|
m_StyledTextCtrl->SetMarginWidth( 2, 0 );
|
|
|
|
m_StyledTextCtrl->SetIndentationGuides( false );
|
|
|
|
m_StyledTextCtrl->SetMarginWidth( 1, 0 );
|
|
|
|
m_StyledTextCtrl->SetMarginWidth( 0, 0 );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
|
|
|
|
m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) );
|
|
|
|
m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
|
|
|
|
m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) );
|
|
|
|
m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
|
|
|
|
m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) );
|
|
|
|
m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
|
|
|
|
m_StyledTextCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) );
|
|
|
|
m_StyledTextCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
|
|
|
|
m_StyledTextCtrl->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
|
|
|
|
m_StyledTextCtrl->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
|
|
|
|
m_StyledTextCtrl->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
|
|
|
|
bTextValueBoxSizer->Add( m_StyledTextCtrl, 1, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
2020-06-08 19:41:09 +00:00
|
|
|
m_TextValueSelectButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-05-24 07:12:43 +00:00
|
|
|
bTextValueBoxSizer->Add( m_TextValueSelectButton, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
|
2020-06-08 19:41:09 +00:00
|
|
|
bUpperBoxSizer->Add( bTextValueBoxSizer, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-09-27 12:24:53 +00:00
|
|
|
m_note = new wxStaticText( this, wxID_ANY, _("(%s)"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_note->Wrap( -1 );
|
|
|
|
bUpperBoxSizer->Add( m_note, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-03-28 16:20:47 +00:00
|
|
|
bPropertiesSizer->Add( bUpperBoxSizer, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2018-05-24 07:12:43 +00:00
|
|
|
wxBoxSizer* bSizer9;
|
|
|
|
bSizer9 = new wxBoxSizer( wxVERTICAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2018-07-06 17:03:57 +00:00
|
|
|
m_visible = new wxCheckBox( this, wxID_ANY, _("Visible"), wxDefaultPosition, wxDefaultSize, 0 );
|
2022-01-03 01:20:25 +00:00
|
|
|
bSizer9->Add( m_visible, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
bPropertiesSizer->Add( bSizer9, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
wxGridBagSizer* gbSizer1;
|
|
|
|
gbSizer1 = new wxGridBagSizer( 3, 0 );
|
|
|
|
gbSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_fontLabel = new wxStaticText( this, wxID_ANY, _("Font:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_fontLabel->Wrap( -1 );
|
|
|
|
gbSizer1->Add( m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
wxString m_fontCtrlChoices[] = { _("Default Font"), _("KiCad Font") };
|
|
|
|
int m_fontCtrlNChoices = sizeof( m_fontCtrlChoices ) / sizeof( wxString );
|
|
|
|
m_fontCtrl = new FONT_CHOICE( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
|
|
|
|
m_fontCtrl->SetSelection( 0 );
|
|
|
|
gbSizer1->Add( m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
wxBoxSizer* formattingSizer;
|
|
|
|
formattingSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_separator1 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator1->Enable( false );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_separator1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_horizontal = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_horizontal->SetToolTip( _("Horizontal text") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_horizontal, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vertical = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_vertical->SetToolTip( _("Vertical text") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_vertical, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_separator2 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator2->Enable( false );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_bold = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_bold->SetToolTip( _("Bold") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_italic = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_italic->SetToolTip( _("Italic") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_separator3 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator3->Enable( false );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_separator3, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignLeft = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_hAlignLeft->SetToolTip( _("Align left") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_hAlignLeft, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_hAlignCenter->SetToolTip( _("Align horizontal center") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_hAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_hAlignRight = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_hAlignRight->SetToolTip( _("Align right") );
|
|
|
|
|
|
|
|
formattingSizer->Add( m_hAlignRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_separator4 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator4->Enable( false );
|
|
|
|
|
|
|
|
formattingSizer->Add( m_separator4, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_vAlignTop = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_vAlignTop->SetToolTip( _("Align top") );
|
|
|
|
|
|
|
|
formattingSizer->Add( m_vAlignTop, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
m_vAlignCenter = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_vAlignCenter->SetToolTip( _("Align vertical center") );
|
|
|
|
|
|
|
|
formattingSizer->Add( m_vAlignCenter, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_vAlignBottom = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_vAlignBottom->SetToolTip( _("Align bottom") );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_vAlignBottom, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_separator5 = new BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
|
|
|
m_separator5->Enable( false );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
formattingSizer->Add( m_separator5, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( formattingSizer, wxGBPosition( 0, 3 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textSizeLabel->Wrap( -1 );
|
|
|
|
gbSizer1->Add( m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gbSizer1->Add( m_textSizeCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_textSizeUnits->Wrap( -1 );
|
|
|
|
gbSizer1->Add( m_textSizeUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2021-10-12 20:05:37 +00:00
|
|
|
m_xPosLabel = new wxStaticText( this, wxID_ANY, _("Position X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_xPosLabel->Wrap( -1 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_xPosLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
|
|
|
m_xPosCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_xPosCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_xPosUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-10-12 20:05:37 +00:00
|
|
|
m_xPosUnits->Wrap( -1 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_xPosUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
|
|
|
m_yPosLabel = new wxStaticText( this, wxID_ANY, _("Position Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_yPosLabel->Wrap( -1 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_yPosLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
|
|
|
m_yPosCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_yPosCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
2022-01-03 01:20:25 +00:00
|
|
|
m_yPosUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-10-12 20:05:37 +00:00
|
|
|
m_yPosUnits->Wrap( -1 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_yPosUnits, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_CommonUnit = new wxCheckBox( this, wxID_ANY, _("Common to all units"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
gbSizer1->Add( m_CommonUnit, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxRIGHT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2018-07-06 17:03:57 +00:00
|
|
|
m_CommonConvert = new wxCheckBox( this, wxID_ANY, _("Common to all body styles"), wxDefaultPosition, wxDefaultSize, 0 );
|
2022-01-03 01:20:25 +00:00
|
|
|
gbSizer1->Add( m_CommonConvert, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxRIGHT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bPropertiesSizer->Add( gbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer3;
|
|
|
|
fgSizer3 = new wxFlexGridSizer( 5, 4, 3, 3 );
|
|
|
|
fgSizer3->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
|
2021-10-12 20:05:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
bPropertiesSizer->Add( fgSizer3, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bBottomtBoxSizer;
|
|
|
|
bBottomtBoxSizer = new wxBoxSizer( wxVERTICAL );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
|
2018-07-06 17:03:57 +00:00
|
|
|
bPropertiesSizer->Add( bBottomtBoxSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
|
2018-07-06 17:03:57 +00:00
|
|
|
bMainSizer->Add( bPropertiesSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2018-05-24 07:12:43 +00:00
|
|
|
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2018-07-06 17:03:57 +00:00
|
|
|
bMainSizer->Add( m_staticline2, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
m_sdbSizerButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
|
|
|
|
m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
|
|
|
|
m_sdbSizerButtons->Realize();
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2018-07-06 17:03:57 +00:00
|
|
|
bMainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2021-09-27 12:24:53 +00:00
|
|
|
bMainSizer->Fit( this );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
// Connect Events
|
2021-08-06 19:54:26 +00:00
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnCloseDialog ) );
|
|
|
|
m_TextCtrl->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
|
2021-10-12 20:05:37 +00:00
|
|
|
m_StyledTextCtrl->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::onMultiLineTCLostFocus ), NULL, this );
|
2021-08-06 19:54:26 +00:00
|
|
|
m_StyledTextCtrl->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
|
|
|
|
m_TextValueSelectButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnTextValueSelectButtonClick ), NULL, this );
|
2012-09-07 16:15:18 +00:00
|
|
|
}
|
|
|
|
|
2021-08-06 19:54:26 +00:00
|
|
|
DIALOG_LIB_TEXT_PROPERTIES_BASE::~DIALOG_LIB_TEXT_PROPERTIES_BASE()
|
2012-09-07 16:15:18 +00:00
|
|
|
{
|
|
|
|
// Disconnect Events
|
2021-08-06 19:54:26 +00:00
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnCloseDialog ) );
|
|
|
|
m_TextCtrl->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
|
2021-10-12 20:05:37 +00:00
|
|
|
m_StyledTextCtrl->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::onMultiLineTCLostFocus ), NULL, this );
|
2021-08-06 19:54:26 +00:00
|
|
|
m_StyledTextCtrl->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnSetFocusText ), NULL, this );
|
|
|
|
m_TextValueSelectButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_TEXT_PROPERTIES_BASE::OnTextValueSelectButtonClick ), NULL, this );
|
2020-05-27 22:28:36 +00:00
|
|
|
|
2012-09-07 16:15:18 +00:00
|
|
|
}
|