From 3bf2e2f9fcbd5dcf6cadaf704b3e6f81d9136ecb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 5 Aug 2018 00:59:57 +0100 Subject: [PATCH] Try out headers in Cvpcb. Note: it's easy enough to back out. If you don't like it, please speak your mind. I'm ambivalent about them. Fixes: lp:1782952 * https://bugs.launchpad.net/kicad/+bug/1782952 --- cvpcb/cvpcb_mainframe.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cvpcb/cvpcb_mainframe.cpp b/cvpcb/cvpcb_mainframe.cpp index e56b973c99..43164976c0 100644 --- a/cvpcb/cvpcb_mainframe.cpp +++ b/cvpcb/cvpcb_mainframe.cpp @@ -151,8 +151,8 @@ CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) : EDA_PANEINFO horiz; horiz.HorizontalToolbarPane(); - EDA_PANEINFO info; - info.InfoToolbarPane(); + EDA_PANEINFO layers; + layers.LayersToolbarPane(); if( m_mainToolBar ) m_auimgr.AddPane( m_mainToolBar, @@ -160,17 +160,20 @@ CVPCB_MAINFRAME::CVPCB_MAINFRAME( KIWAY* aKiway, wxWindow* aParent ) : if( m_compListBox ) m_auimgr.AddPane( m_compListBox, - wxAuiPaneInfo( horiz ).Name( wxT( "m_compListBox" ) ).CentrePane() ); + wxAuiPaneInfo( layers ).Name( wxT( "m_compListBox" ) ) + .Caption( _( "Symbol : Footprint Assignments" ) ).Center() ); if( m_libListBox) m_auimgr.AddPane( m_libListBox, - wxAuiPaneInfo( info ).Name( wxT( "m_libListBox" ) ). - Left().BestSize( (int) ( m_FrameSize.x * 0.20 ), m_FrameSize.y ) ); + wxAuiPaneInfo( layers ).Name( wxT( "m_libListBox" ) ) + .Caption( _( "Footprint Libraries" ) ) + .Left().BestSize( (int) ( m_FrameSize.x * 0.20 ), m_FrameSize.y ) ); if( m_footprintListBox ) m_auimgr.AddPane( m_footprintListBox, - wxAuiPaneInfo( info ).Name( wxT( "m_footprintListBox" ) ). - Right().BestSize( (int) ( m_FrameSize.x * 0.30 ), m_FrameSize.y ) ); + wxAuiPaneInfo( layers ).Name( wxT( "m_footprintListBox" ) ) + .Caption( _( "Filtered Footprints" ) ) + .Right().BestSize( (int) ( m_FrameSize.x * 0.30 ), m_FrameSize.y ) ); // Build the bottom panel, to display 2 status texts and the buttons: auto bottomPanel = new wxPanel( this );