diff --git a/eeschema/eeschema_settings.cpp b/eeschema/eeschema_settings.cpp index 748a8fff3e..77d53a9b1b 100644 --- a/eeschema/eeschema_settings.cpp +++ b/eeschema/eeschema_settings.cpp @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -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(), diff --git a/eeschema/eeschema_settings.h b/eeschema/eeschema_settings.h index aeae7349f8..79e9c81895 100644 --- a/eeschema/eeschema_settings.h +++ b/eeschema/eeschema_settings.h @@ -33,6 +33,8 @@ using KIGFX::COLOR4D; extern const wxAuiPaneInfo& defaultNetNavigatorPaneInfo(); +extern const wxAuiPaneInfo& defaultPropertiesPaneInfo(); + enum LINE_MODE diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 9404a9c565..32027af0b7 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -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() );