From 4364384f060e27cde96b75c40bf039f623e34dfa Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 16 Aug 2018 19:02:35 +0100 Subject: [PATCH] Simplify list of nets dialog. --- .../dialog_select_net_from_list_base.cpp | 5 +- .../dialog_select_net_from_list_base.fbp | 83 +------------------ .../dialog_select_net_from_list_base.h | 2 - 3 files changed, 2 insertions(+), 88 deletions(-) diff --git a/pcbnew/dialogs/dialog_select_net_from_list_base.cpp b/pcbnew/dialogs/dialog_select_net_from_list_base.cpp index a64ffaf772..d64858f23a 100644 --- a/pcbnew/dialogs/dialog_select_net_from_list_base.cpp +++ b/pcbnew/dialogs/dialog_select_net_from_list_base.cpp @@ -39,10 +39,7 @@ DIALOG_SELECT_NET_FROM_LIST_BASE::DIALOG_SELECT_NET_FROM_LIST_BASE( wxWindow* pa m_netsList = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); m_netsList->SetMinSize( wxSize( 400,300 ) ); - bSizerMain->Add( m_netsList, 1, wxALL|wxEXPAND, 10 ); - - m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); - bSizerMain->Add( m_staticline, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); + bSizerMain->Add( m_netsList, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 ); m_sdbSizer = new wxStdDialogButtonSizer(); m_sdbSizerOK = new wxButton( this, wxID_OK ); diff --git a/pcbnew/dialogs/dialog_select_net_from_list_base.fbp b/pcbnew/dialogs/dialog_select_net_from_list_base.fbp index 35ff042cad..6fc3b42c11 100644 --- a/pcbnew/dialogs/dialog_select_net_from_list_base.fbp +++ b/pcbnew/dialogs/dialog_select_net_from_list_base.fbp @@ -378,7 +378,7 @@ 10 - wxALL|wxEXPAND + wxEXPAND|wxRIGHT|wxLEFT 1 @@ -444,87 +444,6 @@ - - 5 - wxEXPAND|wxTOP|wxRIGHT|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - 0 - - 1 - m_staticline - 1 - - - protected - 1 - - Resizable - 1 - - wxLI_HORIZONTAL - - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 wxALL|wxEXPAND diff --git a/pcbnew/dialogs/dialog_select_net_from_list_base.h b/pcbnew/dialogs/dialog_select_net_from_list_base.h index dc68ac49a6..a711b410ea 100644 --- a/pcbnew/dialogs/dialog_select_net_from_list_base.h +++ b/pcbnew/dialogs/dialog_select_net_from_list_base.h @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -41,7 +40,6 @@ class DIALOG_SELECT_NET_FROM_LIST_BASE : public DIALOG_SHIM wxTextCtrl* m_textCtrlFilter; wxCheckBox* m_cbShowZeroPad; wxDataViewListCtrl* m_netsList; - wxStaticLine* m_staticline; wxStdDialogButtonSizer* m_sdbSizer; wxButton* m_sdbSizerOK; wxButton* m_sdbSizerCancel;