FromDIP symbol and footprint editor aui panes

This commit is contained in:
Marek Roszko 2024-01-17 23:08:38 -05:00
parent 4e0e348688
commit 7b24167398
5 changed files with 13 additions and 13 deletions

View File

@ -84,7 +84,7 @@ const wxAuiPaneInfo& defaultNetNavigatorPaneInfo()
}
const wxAuiPaneInfo& defaultPropertiesPaneInfo()
const wxAuiPaneInfo& defaultPropertiesPaneInfo( wxWindow* aWindow )
{
static wxAuiPaneInfo paneInfo;
@ -96,10 +96,10 @@ const wxAuiPaneInfo& defaultPropertiesPaneInfo()
.TopDockable( false )
.BottomDockable( false )
.CloseButton( true )
.MinSize( 240, 60 )
.BestSize( 300, 200 )
.FloatingSize( 300, 400 )
.FloatingPosition( 50, 200 )
.MinSize( aWindow->FromDIP( wxSize( 240, 60 ) ) )
.BestSize( aWindow->FromDIP( wxSize( 300, 200 ) ) )
.FloatingSize( aWindow->FromDIP( wxSize( 300, 400 ) ) )
.FloatingPosition( aWindow->FromDIP( wxPoint( 50, 200 ) ) )
.Show( true );
return paneInfo;

View File

@ -33,7 +33,7 @@ using KIGFX::COLOR4D;
extern const wxAuiPaneInfo& defaultNetNavigatorPaneInfo();
extern const wxAuiPaneInfo& defaultPropertiesPaneInfo();
extern const wxAuiPaneInfo& defaultPropertiesPaneInfo( wxWindow* aWindow );

View File

@ -210,7 +210,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
.FloatingPosition( FromDIP( wxPoint( 50, 50 ) ) )
.Show( false ) );
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo() );
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo( this ) );
m_auimgr.AddPane( createHighlightedNetNavigator(), defaultNetNavigatorPaneInfo() );

View File

@ -200,9 +200,9 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
.Left().Layer( 3 )
.TopDockable( false ).BottomDockable( false )
.Caption( _( "Libraries" ) )
.MinSize( 250, -1 ).BestSize( 250, -1 ) );
.MinSize( FromDIP( 250 ), -1 ).BestSize( FromDIP( 250 ), -1 ) );
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo() );
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo( this ) );
// Show or hide m_propertiesPanel depending on current settings:
wxAuiPaneInfo& propertiesPaneInfo = m_auimgr.GetPane( PropertiesPaneName() );
propertiesPaneInfo.Show( m_settings->m_AuiPanels.show_properties );

View File

@ -226,11 +226,11 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_auimgr.AddPane( m_treePane, EDA_PANE().Palette().Name( "Footprints" )
.Left().Layer( 4 )
.Caption( _( "Libraries" ) )
.MinSize( 250, -1 ).BestSize( 250, -1 ) );
.MinSize( FromDIP( 250 ), -1 ).BestSize( FromDIP( 250 ), -1 ) );
m_auimgr.AddPane( m_propertiesPanel, EDA_PANE().Name( PropertiesPaneName() )
.Left().Layer( 3 )
.Caption( _( "Properties" ) ).PaneBorder( false )
.MinSize( 240, 60 ).BestSize( 300, 200 ) );
.MinSize( FromDIP( wxSize( 240, 60 ) ) ).BestSize( FromDIP( wxSize( 300, 200 ) ) ) );
m_auimgr.AddPane( m_optionsToolBar, EDA_PANE().VToolbar().Name( "OptToolbar" )
.Left().Layer( 2 ) );
@ -239,11 +239,11 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
m_auimgr.AddPane( m_appearancePanel, EDA_PANE().Name( "LayersManager" )
.Right().Layer( 3 )
.Caption( _( "Appearance" ) ).PaneBorder( false )
.MinSize( 180, -1 ).BestSize( 180, -1 ) );
.MinSize( FromDIP( 180 ), -1 ).BestSize( FromDIP( 180 ), -1 ) );
m_auimgr.AddPane( m_selectionFilterPanel, EDA_PANE().Palette().Name( "SelectionFilter" )
.Right().Layer( 3 ).Position( 2 )
.Caption( _( "Selection Filter" ) ).PaneBorder( false )
.MinSize( 180, -1 ).BestSize( 180, -1 ) );
.MinSize( FromDIP( 180 ), -1 ).BestSize( FromDIP( 180 ), -1 ) );
// Center
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( "DrawFrame" )