From 2ef5e5d1c0a03b85f4044548f21574827dbf1088 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 1 Sep 2020 17:15:23 +0100 Subject: [PATCH] Convert tabs to spaces in panel_setup_severities --- common/dialogs/panel_setup_severities.cpp | 29 ++++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/common/dialogs/panel_setup_severities.cpp b/common/dialogs/panel_setup_severities.cpp index c7c8b9e61c..ef04988b3c 100644 --- a/common/dialogs/panel_setup_severities.cpp +++ b/common/dialogs/panel_setup_severities.cpp @@ -36,20 +36,20 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, m_items( aItems ), m_pinMapSpecialCase( aPinMapSpecialCase ) { - wxString severities[] = { _( "Error" ), _( "Warning" ), _( "Ignore" ) }; + wxString severities[] = { _( "Error" ), _( "Warning" ), _( "Ignore" ) }; int severityCount = sizeof( severities ) / sizeof( wxString ); - int baseID = 1000; - wxBoxSizer* panelSizer = new wxBoxSizer( wxVERTICAL ); - wxScrolledWindow* scrollWin = new wxScrolledWindow( this, wxID_ANY, - wxDefaultPosition, wxDefaultSize, - wxTAB_TRAVERSAL | wxVSCROLL ); + int baseID = 1000; + wxBoxSizer* panelSizer = new wxBoxSizer( wxVERTICAL ); + wxScrolledWindow* scrollWin = new wxScrolledWindow( this, wxID_ANY, + wxDefaultPosition, wxDefaultSize, + wxTAB_TRAVERSAL | wxVSCROLL ); scrollWin->SetScrollRate( 0, 5 ); wxFlexGridSizer* gridSizer = new wxFlexGridSizer( 0, 2, 0, 5 ); gridSizer->SetFlexibleDirection( wxBOTH ); - for( const RC_ITEM& item : m_items ) + for( const RC_ITEM& item : m_items ) { int errorCode = item.GetErrorCode(); wxString msg = item.GetErrorText(); @@ -60,15 +60,15 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, // When msg is empty, for some reason, the current errorCode is not supported // by the RC_ITEM aDummyItem. // Skip this errorCode. - if( !msg.IsEmpty() ) + if( !msg.IsEmpty() ) { wxStaticText* errorLabel = new wxStaticText( scrollWin, wxID_ANY, msg + wxT( ":" ) ); gridSizer->Add( errorLabel, 0, wxALIGN_CENTER_VERTICAL | wxALL | wxEXPAND, 4 ); // OSX can't handle more than 100 radio buttons in a single window (yes, seriously), // so we have to create a window for each set - wxPanel* radioPanel = new wxPanel( scrollWin ); - wxBoxSizer* radioSizer = new wxBoxSizer( wxHORIZONTAL ); + wxPanel* radioPanel = new wxPanel( scrollWin ); + wxBoxSizer* radioSizer = new wxBoxSizer( wxHORIZONTAL ); for( int i = 0; i < severityCount; ++i ) { @@ -87,7 +87,8 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, } } - if( m_pinMapSpecialCase ) + + if( m_pinMapSpecialCase ) { wxString pinMapSeverities[] = { _( "From Pin Conflicts Map" ), wxT( "" ), _( "Ignore" ) }; int errorCode = m_pinMapSpecialCase->GetErrorCode(); @@ -125,12 +126,12 @@ PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES( PAGED_DIALOG* aParent, scrollWin->SetSizer( gridSizer ); scrollWin->Layout(); - gridSizer->Fit( scrollWin ); + gridSizer->Fit( scrollWin ); panelSizer->Add( scrollWin, 1, wxEXPAND | wxALL, 5 ); this->SetSizer( panelSizer ); - this->Layout(); - panelSizer->Fit( this ); + this->Layout(); + panelSizer->Fit( this ); }