diff --git a/pcbnew/dialogs/dialog_create_array_base.cpp b/pcbnew/dialogs/dialog_create_array_base.cpp index 3af6eb4b20..1257bdb951 100644 --- a/pcbnew/dialogs/dialog_create_array_base.cpp +++ b/pcbnew/dialogs/dialog_create_array_base.cpp @@ -39,6 +39,8 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID m_labelNx = new wxStaticText( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("Horizontal count:"), wxDefaultPosition, wxDefaultSize, 0 ); m_labelNx->Wrap( -1 ); + m_labelNx->SetToolTip( _("Number of columns") ); + fgSizerGridSize->Add( m_labelNx, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_entryNx = new TEXT_CTRL_EVAL( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -46,9 +48,13 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID m_labelNy = new wxStaticText( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("Vertical count:"), wxDefaultPosition, wxDefaultSize, 0 ); m_labelNy->Wrap( -1 ); + m_labelNy->SetToolTip( _("Number of rows") ); + fgSizerGridSize->Add( m_labelNy, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 ); m_entryNy = new TEXT_CTRL_EVAL( sbSizerGridSize->GetStaticBox(), wxID_ANY, _("5"), wxDefaultPosition, wxDefaultSize, 0 ); + m_entryNy->SetToolTip( _("Number of rows") ); + fgSizerGridSize->Add( m_entryNy, 0, wxEXPAND, 5 ); @@ -92,7 +98,7 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID fgSizerItemSpacing->Add( m_unitLabelDy, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); - sbSizerItemsSpacing->Add( fgSizerItemSpacing, 1, wxEXPAND, 5 ); + sbSizerItemsSpacing->Add( fgSizerItemSpacing, 1, wxEXPAND|wxBOTTOM, 5 ); wxStaticBoxSizer* sbSizerGridShape; sbSizerGridShape = new wxStaticBoxSizer( new wxStaticBox( sbSizerItemsSpacing->GetStaticBox(), wxID_ANY, _("Grid Spacing Modifiers") ), wxVERTICAL ); @@ -129,7 +135,7 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID fgSizerModifier->Add( m_unitLabelOffsetY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); - sbSizerGridShape->Add( fgSizerModifier, 1, wxBOTTOM|wxEXPAND, 5 ); + sbSizerGridShape->Add( fgSizerModifier, 1, wxEXPAND, 5 ); sbSizerItemsSpacing->Add( sbSizerGridShape, 0, wxALL|wxEXPAND, 5 ); @@ -268,7 +274,7 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID m_gridPanel->SetSizer( bSizerGridArray ); m_gridPanel->Layout(); bSizerGridArray->Fit( m_gridPanel ); - m_gridTypeNotebook->AddPage( m_gridPanel, _("Grid Array"), true ); + m_gridTypeNotebook->AddPage( m_gridPanel, _("Grid Array"), false ); m_circularPanel = new wxPanel( m_gridTypeNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); wxBoxSizer* bSizer4; bSizer4 = new wxBoxSizer( wxHORIZONTAL ); @@ -531,7 +537,7 @@ DIALOG_CREATE_ARRAY_BASE::DIALOG_CREATE_ARRAY_BASE( wxWindow* parent, wxWindowID m_circularPanel->SetSizer( bSizer4 ); m_circularPanel->Layout(); bSizer4->Fit( m_circularPanel ); - m_gridTypeNotebook->AddPage( m_circularPanel, _("Circular Array"), false ); + m_gridTypeNotebook->AddPage( m_circularPanel, _("Circular Array"), true ); bSizer7->Add( m_gridTypeNotebook, 1, wxALL|wxEXPAND, 5 ); diff --git a/pcbnew/dialogs/dialog_create_array_base.fbp b/pcbnew/dialogs/dialog_create_array_base.fbp index b2573f052c..8c334677fe 100644 --- a/pcbnew/dialogs/dialog_create_array_base.fbp +++ b/pcbnew/dialogs/dialog_create_array_base.fbp @@ -133,7 +133,7 @@ Load From File; Grid Array - 1 + 0 1 1 @@ -283,7 +283,7 @@ 0 - + Number of columns @@ -411,7 +411,7 @@ 0 - + Number of rows @@ -472,7 +472,7 @@ TEXT_CTRL_EVAL; widgets/text_ctrl_eval.h 0 - + Number of rows wxFILTER_NONE wxDefaultValidator @@ -502,7 +502,7 @@ none 5 - wxEXPAND + wxEXPAND|wxBOTTOM 1 3 @@ -912,7 +912,7 @@ none 5 - wxBOTTOM|wxEXPAND + wxEXPAND 1 3 @@ -2539,7 +2539,7 @@ Circular Array - 0 + 1 1 1