diff --git a/pcbnew/dialogs/dialog_text_properties_base.cpp b/pcbnew/dialogs/dialog_text_properties_base.cpp index 28477afa0a..ede64aa480 100644 --- a/pcbnew/dialogs/dialog_text_properties_base.cpp +++ b/pcbnew/dialogs/dialog_text_properties_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Jul 11 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -40,11 +40,11 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_TextLabel->Wrap( -1 ); m_SingleLineSizer->Add( m_TextLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - m_SingleLineText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_SingleLineText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); m_SingleLineSizer->Add( m_SingleLineText, 1, wxTOP|wxBOTTOM|wxRIGHT, 5 ); - bMainSizer->Add( m_SingleLineSizer, 0, wxEXPAND|wxALL, 10 ); + bMainSizer->Add( m_SingleLineSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 ); m_DimensionTextSizer = new wxFlexGridSizer( 0, 4, 1, 5 ); m_DimensionTextSizer->AddGrowableCol( 1 ); @@ -69,7 +69,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_DimensionTextSizer->Add( m_DimensionUnitsOpt, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 ); - bMainSizer->Add( m_DimensionTextSizer, 0, wxEXPAND|wxALL, 10 ); + bMainSizer->Add( m_DimensionTextSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 ); wxFlexGridSizer* fgSizerSetup; fgSizerSetup = new wxFlexGridSizer( 0, 5, 4, 0 ); @@ -86,7 +86,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi fgSizerSetup->Add( m_LayerSelectionCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); - fgSizerSetup->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 40 ); + fgSizerSetup->Add( 0, 0, 0, wxRIGHT|wxLEFT, 40 ); m_Visible = new wxCheckBox( this, wxID_ANY, _("Visible"), wxDefaultPosition, wxDefaultSize, 0 ); fgSizerSetup->Add( m_Visible, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 ); @@ -98,7 +98,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_SizeXLabel->Wrap( -1 ); fgSizerSetup->Add( m_SizeXLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_SizeXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_SizeXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); fgSizerSetup->Add( m_SizeXCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); m_SizeXUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -109,13 +109,13 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi fgSizerSetup->Add( m_Italic, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 ); - fgSizerSetup->Add( 0, 0, 1, wxEXPAND, 5 ); + fgSizerSetup->Add( 0, 0, 0, 0, 5 ); m_SizeYLabel = new wxStaticText( this, wxID_ANY, _("Height:"), wxDefaultPosition, wxDefaultSize, 0 ); m_SizeYLabel->Wrap( -1 ); fgSizerSetup->Add( m_SizeYLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_SizeYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_SizeYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); fgSizerSetup->Add( m_SizeYCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); m_SizeYUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -136,7 +136,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_ThicknessLabel->Wrap( -1 ); fgSizerSetup->Add( m_ThicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_ThicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_ThicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); fgSizerSetup->Add( m_ThicknessCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 2 ); m_ThicknessUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -158,7 +158,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_PositionXLabel->Wrap( -1 ); fgSizerSetup->Add( m_PositionXLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_PositionXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_PositionXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); fgSizerSetup->Add( m_PositionXCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); m_PositionXUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -169,13 +169,13 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi fgSizerSetup->Add( m_Mirrored, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); - fgSizerSetup->Add( 0, 0, 1, wxEXPAND, 5 ); + fgSizerSetup->Add( 0, 0, 0, 0, 5 ); m_PositionYLabel = new wxStaticText( this, wxID_ANY, _("Position Y:"), wxDefaultPosition, wxDefaultSize, 0 ); m_PositionYLabel->Wrap( -1 ); fgSizerSetup->Add( m_PositionYLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 ); - m_PositionYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_PositionYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER ); fgSizerSetup->Add( m_PositionYCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); m_PositionYUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -189,7 +189,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi bMainSizer->Add( fgSizerSetup, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 ); - bMainSizer->Add( 0, 0, 1, wxEXPAND|wxTOP, 5 ); + bMainSizer->Add( 0, 0, 0, wxTOP, 5 ); wxBoxSizer* bMargins; bMargins = new wxBoxSizer( wxVERTICAL ); @@ -209,6 +209,9 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi wxBoxSizer* lowerSizer; lowerSizer = new wxBoxSizer( wxHORIZONTAL ); + + lowerSizer->Add( 0, 0, 1, wxEXPAND, 5 ); + m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizerOK = new wxButton( this, wxID_OK ); m_sdbSizer->AddButton( m_sdbSizerOK ); @@ -216,15 +219,14 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi m_sdbSizer->AddButton( m_sdbSizerCancel ); m_sdbSizer->Realize(); - lowerSizer->Add( m_sdbSizer, 1, wxEXPAND|wxALL, 5 ); + lowerSizer->Add( m_sdbSizer, 0, wxALL, 5 ); - bMainSizer->Add( lowerSizer, 0, wxALIGN_BOTTOM|wxEXPAND|wxLEFT, 5 ); + bMainSizer->Add( lowerSizer, 0, wxEXPAND, 5 ); this->SetSizer( bMainSizer ); this->Layout(); - bMainSizer->Fit( this ); this->Centre( wxBOTH ); diff --git a/pcbnew/dialogs/dialog_text_properties_base.fbp b/pcbnew/dialogs/dialog_text_properties_base.fbp index b098018168..9cb0a0e01e 100644 --- a/pcbnew/dialogs/dialog_text_properties_base.fbp +++ b/pcbnew/dialogs/dialog_text_properties_base.fbp @@ -1,6 +1,6 @@ - + C++ @@ -14,6 +14,7 @@ dialog_text_properties_base 1000 none + 1 DIALOG_TEXT_PROPERTIES_BASE @@ -44,7 +45,7 @@ -1,-1 DIALOG_TEXT_PROPERTIES_BASE - -1,-1 + 504,463 wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU DIALOG_SHIM; dialog_shim.h Text Properties @@ -54,13 +55,20 @@ - + + + + + + + + @@ -75,17 +83,23 @@ + + + + + + @@ -102,11 +116,11 @@ m_MultiLineSizer wxVERTICAL protected - + 5 wxRIGHT|wxLEFT 0 - + 1 1 1 @@ -135,6 +149,7 @@ 0 wxID_ANY Text: + 0 0 @@ -160,7 +175,14 @@ -1 + + + + + + + @@ -185,11 +207,11 @@ - + 5 wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND 1 - + 1 1 1 @@ -247,7 +269,14 @@ + + + + + + + @@ -280,7 +309,7 @@ 10 - wxEXPAND|wxALL + wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT 0 @@ -320,6 +349,7 @@ 0 wxID_ANY Reference: + 0 0 @@ -345,7 +375,14 @@ -1 + + + + + + + @@ -420,7 +457,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; forward_declare 0 @@ -432,7 +469,14 @@ + + + + + + + @@ -465,7 +509,7 @@ 10 - wxEXPAND|wxALL + wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT 0 4 @@ -512,6 +556,7 @@ 0 wxID_ANY Dimension text: + 0 0 @@ -537,7 +582,14 @@ -1 + + + + + + + @@ -624,7 +676,14 @@ + + + + + + + @@ -686,6 +745,7 @@ 0 wxID_ANY Units: + 0 0 @@ -711,7 +771,14 @@ -1 + + + + + + + @@ -798,7 +865,14 @@ + + + + + + + OnDimensionUnitsChange @@ -875,6 +949,7 @@ 0 wxID_ANY Layer: + 0 0 @@ -900,7 +975,14 @@ -1 + + + + + + + @@ -988,7 +1070,14 @@ + + + + + + + @@ -1018,8 +1107,8 @@ 40 - wxEXPAND|wxRIGHT|wxLEFT - 1 + wxRIGHT|wxLEFT + 0 0 protected @@ -1088,7 +1177,14 @@ + + + + + + + @@ -1157,6 +1253,7 @@ 0 wxID_ANY Width: + 0 0 @@ -1182,7 +1279,14 @@ -1 + + + + + + + @@ -1257,7 +1361,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; ; forward_declare 0 @@ -1269,7 +1373,14 @@ + + + + + + + @@ -1331,6 +1442,7 @@ 0 wxID_ANY unit + 0 0 @@ -1356,7 +1468,14 @@ -1 + + + + + + + @@ -1443,7 +1562,14 @@ + + + + + + + @@ -1471,8 +1597,8 @@ 5 - wxEXPAND - 1 + + 0 0 protected @@ -1512,6 +1638,7 @@ 0 wxID_ANY Height: + 0 0 @@ -1537,7 +1664,14 @@ -1 + + + + + + + @@ -1612,7 +1746,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; ; forward_declare 0 @@ -1624,7 +1758,14 @@ + + + + + + + @@ -1686,6 +1827,7 @@ 0 wxID_ANY unit + 0 0 @@ -1711,7 +1853,14 @@ -1 + + + + + + + @@ -1769,6 +1918,7 @@ 0 wxID_ANY Justification: + 0 0 @@ -1794,7 +1944,14 @@ -1 + + + + + + + @@ -1881,7 +2038,14 @@ + + + + + + + @@ -1940,6 +2104,7 @@ 0 wxID_ANY Thickness: + 0 0 @@ -1965,7 +2130,14 @@ -1 + + + + + + + @@ -2040,7 +2212,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; ; forward_declare 0 @@ -2052,7 +2224,14 @@ + + + + + + + @@ -2114,6 +2293,7 @@ 0 wxID_ANY unit + 0 0 @@ -2139,7 +2319,14 @@ -1 + + + + + + + @@ -2197,6 +2384,7 @@ 0 wxID_ANY Orientation: + 0 0 @@ -2222,7 +2410,14 @@ -1 + + + + + + + @@ -2310,7 +2505,14 @@ + + + + + + + @@ -2373,6 +2575,7 @@ 0 wxID_ANY Position X: + 0 0 @@ -2398,7 +2601,14 @@ -1 + + + + + + + @@ -2473,7 +2683,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; ; forward_declare 0 @@ -2485,7 +2695,14 @@ + + + + + + + @@ -2547,6 +2764,7 @@ 0 wxID_ANY unit + 0 0 @@ -2572,7 +2790,14 @@ -1 + + + + + + + @@ -2659,7 +2884,14 @@ + + + + + + + @@ -2687,8 +2919,8 @@ 5 - wxEXPAND - 1 + + 0 0 protected @@ -2728,6 +2960,7 @@ 0 wxID_ANY Position Y: + 0 0 @@ -2753,7 +2986,14 @@ -1 + + + + + + + @@ -2828,7 +3068,7 @@ Resizable 1 - + wxTE_PROCESS_ENTER ; ; forward_declare 0 @@ -2840,7 +3080,14 @@ + + + + + + + @@ -2902,6 +3149,7 @@ 0 wxID_ANY unit + 0 0 @@ -2927,7 +3175,14 @@ -1 + + + + + + + @@ -3014,7 +3269,14 @@ + + + + + + + @@ -3044,8 +3306,8 @@ 5 - wxEXPAND|wxTOP - 1 + wxTOP + 0 0 protected @@ -3094,6 +3356,7 @@ 0 wxID_ANY Parent footprint description + 0 0 @@ -3119,7 +3382,14 @@ -1 + + + + + + + @@ -3202,7 +3472,14 @@ + + + + + + + @@ -3229,7 +3506,7 @@ 5 - wxALIGN_BOTTOM|wxEXPAND|wxLEFT + wxEXPAND 0 @@ -3238,8 +3515,18 @@ none 5 - wxEXPAND|wxALL + wxEXPAND 1 + + 0 + protected + 0 + + + + 5 + wxALL + 0 0 1 diff --git a/pcbnew/dialogs/dialog_text_properties_base.h b/pcbnew/dialogs/dialog_text_properties_base.h index 696a4282be..bf1f0144e3 100644 --- a/pcbnew/dialogs/dialog_text_properties_base.h +++ b/pcbnew/dialogs/dialog_text_properties_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 30 2017) +// C++ code generated with wxFormBuilder (version Jul 11 2018) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -91,7 +91,7 @@ class DIALOG_TEXT_PROPERTIES_BASE : public DIALOG_SHIM public: - DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Text Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU ); + DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Text Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 504,463 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU ); ~DIALOG_TEXT_PROPERTIES_BASE(); };