Move sch properties panel to using default AUI pane info struct

This commit is contained in:
Jon Evans 2023-06-24 20:09:07 -04:00
parent bf2e9f8261
commit f0d8edae1e
3 changed files with 26 additions and 3 deletions

View File

@ -24,6 +24,7 @@
#include <functional>
#include <dialogs/dialog_bom_cfg_lexer.h>
#include <eda_draw_frame.h>
#include <eeschema_settings.h>
#include <layer_ids.h>
#include <symbol_editor_settings.h>
@ -83,6 +84,28 @@ const wxAuiPaneInfo& defaultNetNavigatorPaneInfo()
}
const wxAuiPaneInfo& defaultPropertiesPaneInfo()
{
static wxAuiPaneInfo paneInfo;
paneInfo.Name( EDA_DRAW_FRAME::PropertiesPaneName() )
.Caption( _( "Properties" ) )
.CaptionVisible( true )
.PaneBorder( true )
.Left().Layer( 3 )
.TopDockable( false )
.BottomDockable( false )
.CloseButton( true )
.MinSize( 240, 60 )
.BestSize( 200, 200 )
.FloatingSize( 200, 400 )
.FloatingPosition( 50, 200 )
.Show( true );
return paneInfo;
}
EESCHEMA_SETTINGS::EESCHEMA_SETTINGS() :
APP_SETTINGS_BASE( "eeschema", eeschemaSchemaVersion ),
m_Appearance(),

View File

@ -33,6 +33,8 @@ using KIGFX::COLOR4D;
extern const wxAuiPaneInfo& defaultNetNavigatorPaneInfo();
extern const wxAuiPaneInfo& defaultPropertiesPaneInfo();
enum LINE_MODE

View File

@ -207,9 +207,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
.FloatingPosition( 50, 50 )
.Show( false ) );
m_auimgr.AddPane( m_propertiesPanel, EDA_PANE().Name( PropertiesPaneName() )
.Left().Layer( 3 ).Caption( _( "Properties" ) )
.PaneBorder( false ).MinSize( 240, -1 ).BestSize( 300, -1 ) );
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo() );
m_auimgr.AddPane( createHighlightedNetNavigator(), defaultNetNavigatorPaneInfo() );