FromDIP symbol and footprint editor aui panes
This commit is contained in:
parent
4e0e348688
commit
7b24167398
|
@ -84,7 +84,7 @@ const wxAuiPaneInfo& defaultNetNavigatorPaneInfo()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const wxAuiPaneInfo& defaultPropertiesPaneInfo()
|
const wxAuiPaneInfo& defaultPropertiesPaneInfo( wxWindow* aWindow )
|
||||||
{
|
{
|
||||||
static wxAuiPaneInfo paneInfo;
|
static wxAuiPaneInfo paneInfo;
|
||||||
|
|
||||||
|
@ -96,10 +96,10 @@ const wxAuiPaneInfo& defaultPropertiesPaneInfo()
|
||||||
.TopDockable( false )
|
.TopDockable( false )
|
||||||
.BottomDockable( false )
|
.BottomDockable( false )
|
||||||
.CloseButton( true )
|
.CloseButton( true )
|
||||||
.MinSize( 240, 60 )
|
.MinSize( aWindow->FromDIP( wxSize( 240, 60 ) ) )
|
||||||
.BestSize( 300, 200 )
|
.BestSize( aWindow->FromDIP( wxSize( 300, 200 ) ) )
|
||||||
.FloatingSize( 300, 400 )
|
.FloatingSize( aWindow->FromDIP( wxSize( 300, 400 ) ) )
|
||||||
.FloatingPosition( 50, 200 )
|
.FloatingPosition( aWindow->FromDIP( wxPoint( 50, 200 ) ) )
|
||||||
.Show( true );
|
.Show( true );
|
||||||
|
|
||||||
return paneInfo;
|
return paneInfo;
|
||||||
|
|
|
@ -33,7 +33,7 @@ using KIGFX::COLOR4D;
|
||||||
|
|
||||||
|
|
||||||
extern const wxAuiPaneInfo& defaultNetNavigatorPaneInfo();
|
extern const wxAuiPaneInfo& defaultNetNavigatorPaneInfo();
|
||||||
extern const wxAuiPaneInfo& defaultPropertiesPaneInfo();
|
extern const wxAuiPaneInfo& defaultPropertiesPaneInfo( wxWindow* aWindow );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
.FloatingPosition( FromDIP( wxPoint( 50, 50 ) ) )
|
.FloatingPosition( FromDIP( wxPoint( 50, 50 ) ) )
|
||||||
.Show( false ) );
|
.Show( false ) );
|
||||||
|
|
||||||
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo() );
|
m_auimgr.AddPane( m_propertiesPanel, defaultPropertiesPaneInfo( this ) );
|
||||||
|
|
||||||
m_auimgr.AddPane( createHighlightedNetNavigator(), defaultNetNavigatorPaneInfo() );
|
m_auimgr.AddPane( createHighlightedNetNavigator(), defaultNetNavigatorPaneInfo() );
|
||||||
|
|
||||||
|
|
|
@ -200,9 +200,9 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
.Left().Layer( 3 )
|
.Left().Layer( 3 )
|
||||||
.TopDockable( false ).BottomDockable( false )
|
.TopDockable( false ).BottomDockable( false )
|
||||||
.Caption( _( "Libraries" ) )
|
.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:
|
// Show or hide m_propertiesPanel depending on current settings:
|
||||||
wxAuiPaneInfo& propertiesPaneInfo = m_auimgr.GetPane( PropertiesPaneName() );
|
wxAuiPaneInfo& propertiesPaneInfo = m_auimgr.GetPane( PropertiesPaneName() );
|
||||||
propertiesPaneInfo.Show( m_settings->m_AuiPanels.show_properties );
|
propertiesPaneInfo.Show( m_settings->m_AuiPanels.show_properties );
|
||||||
|
|
|
@ -226,11 +226,11 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
m_auimgr.AddPane( m_treePane, EDA_PANE().Palette().Name( "Footprints" )
|
m_auimgr.AddPane( m_treePane, EDA_PANE().Palette().Name( "Footprints" )
|
||||||
.Left().Layer( 4 )
|
.Left().Layer( 4 )
|
||||||
.Caption( _( "Libraries" ) )
|
.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() )
|
m_auimgr.AddPane( m_propertiesPanel, EDA_PANE().Name( PropertiesPaneName() )
|
||||||
.Left().Layer( 3 )
|
.Left().Layer( 3 )
|
||||||
.Caption( _( "Properties" ) ).PaneBorder( false )
|
.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" )
|
m_auimgr.AddPane( m_optionsToolBar, EDA_PANE().VToolbar().Name( "OptToolbar" )
|
||||||
.Left().Layer( 2 ) );
|
.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" )
|
m_auimgr.AddPane( m_appearancePanel, EDA_PANE().Name( "LayersManager" )
|
||||||
.Right().Layer( 3 )
|
.Right().Layer( 3 )
|
||||||
.Caption( _( "Appearance" ) ).PaneBorder( false )
|
.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" )
|
m_auimgr.AddPane( m_selectionFilterPanel, EDA_PANE().Palette().Name( "SelectionFilter" )
|
||||||
.Right().Layer( 3 ).Position( 2 )
|
.Right().Layer( 3 ).Position( 2 )
|
||||||
.Caption( _( "Selection Filter" ) ).PaneBorder( false )
|
.Caption( _( "Selection Filter" ) ).PaneBorder( false )
|
||||||
.MinSize( 180, -1 ).BestSize( 180, -1 ) );
|
.MinSize( FromDIP( 180 ), -1 ).BestSize( FromDIP( 180 ), -1 ) );
|
||||||
|
|
||||||
// Center
|
// Center
|
||||||
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( "DrawFrame" )
|
m_auimgr.AddPane( GetCanvas(), EDA_PANE().Canvas().Name( "DrawFrame" )
|
||||||
|
|
Loading…
Reference in New Issue