Project manager tweaks

This commit is contained in:
Jon Evans 2021-02-13 18:58:02 -05:00
parent 97465e8260
commit 838a70129d
5 changed files with 10 additions and 12 deletions

View File

@ -27,7 +27,7 @@ PANEL_KICAD_LAUNCHER_BASE::PANEL_KICAD_LAUNCHER_BASE( wxWindow* parent, wxWindow
m_mainSizer->Add( 0, 20, 0, wxEXPAND, 5 ); m_mainSizer->Add( 0, 20, 0, wxEXPAND, 5 );
bSizer2->Add( m_mainSizer, 1, wxEXPAND|wxLEFT, 50 ); bSizer2->Add( m_mainSizer, 1, wxEXPAND|wxLEFT, 24 );
this->SetSizer( bSizer2 ); this->SetSizer( bSizer2 );

View File

@ -55,7 +55,7 @@
<property name="orient">wxVERTICAL</property> <property name="orient">wxVERTICAL</property>
<property name="permission">none</property> <property name="permission">none</property>
<object class="sizeritem" expanded="1"> <object class="sizeritem" expanded="1">
<property name="border">48</property> <property name="border">24</property>
<property name="flag">wxEXPAND|wxLEFT</property> <property name="flag">wxEXPAND|wxLEFT</property>
<property name="proportion">1</property> <property name="proportion">1</property>
<object class="wxBoxSizer" expanded="1"> <object class="wxBoxSizer" expanded="1">

View File

@ -85,7 +85,7 @@ void KICAD_MANAGER_FRAME::OnUnarchiveFiles( wxCommandEvent& event )
return; return;
} }
STATUSBAR_REPORTER reporter( GetStatusBar() ); STATUSBAR_REPORTER reporter( GetStatusBar(), 1 );
PROJECT_ARCHIVER archiver; PROJECT_ARCHIVER archiver;
@ -126,7 +126,7 @@ void KICAD_MANAGER_FRAME::OnArchiveFiles( wxCommandEvent& event )
if( !dir.IsOpened() ) // wxWidgets display a error message on issue. if( !dir.IsOpened() ) // wxWidgets display a error message on issue.
return; return;
STATUSBAR_REPORTER reporter( GetStatusBar() ); STATUSBAR_REPORTER reporter( GetStatusBar(), 1 );
PROJECT_ARCHIVER archiver; PROJECT_ARCHIVER archiver;
archiver.Archive( currdirname, zipFile.GetFullPath(), reporter, true, true ); archiver.Archive( currdirname, zipFile.GetFullPath(), reporter, true, true );

View File

@ -106,10 +106,10 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
m_aboutTitle = "KiCad"; m_aboutTitle = "KiCad";
// Create the status line (bottom of the frame) // Create the status line (bottom of the frame)
static const int dims[1] = { -1 }; static const int dims[2] = { -1, -1 };
CreateStatusBar( 1 ); CreateStatusBar( 2 );
SetStatusWidths( 1, dims ); SetStatusWidths( 2, dims );
// Give an icon // Give an icon
wxIcon icon; wxIcon icon;
@ -139,6 +139,7 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
ReCreateMenuBar(); ReCreateMenuBar();
m_auimgr.SetManagedWindow( this ); m_auimgr.SetManagedWindow( this );
m_auimgr.SetFlags( wxAUI_MGR_LIVE_RESIZE );
m_auimgr.AddPane( m_mainToolBar, EDA_PANE().HToolbar().Name( "MainToolbar" ).Left() m_auimgr.AddPane( m_mainToolBar, EDA_PANE().HToolbar().Name( "MainToolbar" ).Left()
.Layer( 2 ) ); .Layer( 2 ) );
@ -166,9 +167,6 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
// Do not let the messages window have initial focus // Do not let the messages window have initial focus
m_leftWin->SetFocus(); m_leftWin->SetFocus();
// Do not let our size hide the launcher
SetMinSize( GetBestSize() );
// Ensure the window is on top // Ensure the window is on top
Raise(); Raise();
} }

View File

@ -1190,12 +1190,12 @@ void PROJECT_TREE_PANE::FileWatcherReset()
// choosing to fault on an invalid event ID instead of sanely ignoring them we need to // choosing to fault on an invalid event ID instead of sanely ignoring them we need to
// avoid spawning a filewatcher. Unforunately this punishes corporate environments with // avoid spawning a filewatcher. Unforunately this punishes corporate environments with
// Windows Server shares :/ // Windows Server shares :/
m_Parent->SetStatusText( _( "Network path: not monitoring folder changes" ), 0 ); m_Parent->SetStatusText( _( "Network path: not monitoring folder changes" ), 1 );
return; return;
} }
else else
{ {
m_Parent->SetStatusText( _( "Local path: monitoring folder changes" ), 0 ); m_Parent->SetStatusText( _( "Local path: monitoring folder changes" ), 1 );
} }
#endif #endif