Commit f6551172 authored by jean-pierre charras's avatar jean-pierre charras

Fix capitalization issues in title bar and config files (broken by bzr rev 3543)

parent 2e0941a1
......@@ -335,7 +335,7 @@ void EDA_APP::InitEDA_Appl( const wxString& aName, EDA_APP_T aId )
/* Init parameters for configuration */
SetVendorName( wxT( "KiCad" ) );
SetAppName( aName );
SetAppName( aName.Lower() );
SetTitle( aName );
m_settings = new wxConfig();
wxASSERT( m_settings != NULL );
......
......@@ -73,7 +73,7 @@ bool EDA_APP::OnInit()
wxString message;
CVPCB_MAINFRAME* frame = NULL;
InitEDA_Appl( wxT( "CvPCB" ), APP_CVPCB_T );
InitEDA_Appl( wxT( "CvPcb" ), APP_CVPCB_T );
if( m_Checker && m_Checker->IsAnotherRunning() )
{
......
......@@ -124,7 +124,7 @@ bool EDA_APP::OnInit()
wxFileName filename;
SCH_EDIT_FRAME* frame = NULL;
InitEDA_Appl( wxT( "EESchema" ), APP_EESCHEMA_T );
InitEDA_Appl( wxT( "Eeschema" ), APP_EESCHEMA_T );
if( m_Checker && m_Checker->IsAnotherRunning() )
{
......
......@@ -977,9 +977,8 @@ void SCH_EDIT_FRAME::UpdateTitle()
if( GetScreen()->GetFileName() == m_DefaultSchematicFileName )
{
wxString msg = wxGetApp().GetAppName() + wxT( " " ) + GetBuildVersion();
title.Printf( wxT( "%s [%s]" ), GetChars( msg), GetChars( GetScreen()->GetFileName() ) );
SetTitle( title );
title.Printf( wxT( "Eeschema %s [%s]" ), GetChars( GetBuildVersion() ),
GetChars( GetScreen()->GetFileName() ) );
}
else
{
......@@ -989,12 +988,10 @@ void SCH_EDIT_FRAME::UpdateTitle()
// passed to LoadOneEEFile() which omits the path on non-root schematics.
// Making the path absolute solves this problem.
fn.MakeAbsolute();
title = wxChar( '[' );
title << fn.GetName() << wxChar( ' ' );
title << m_CurrentSheet->PathHumanReadable() << wxChar( ']' );
title << wxChar( ' ' );
title << wxChar( '(' ) << fn.GetPath() << wxChar( ')' );
title.Printf( wxT( "[ %s %s] (%s)" ),
GetChars( fn.GetName() ),
GetChars( m_CurrentSheet->PathHumanReadable() ),
GetChars( fn.GetPath() ) );
if( fn.FileExists() )
{
......@@ -1004,6 +1001,7 @@ void SCH_EDIT_FRAME::UpdateTitle()
else
title << _( " [no file]" );
SetTitle( title );
}
SetTitle( title );
}
......@@ -451,7 +451,7 @@ void GERBVIEW_FRAME::UpdateTitleAndInfo()
// Display the gerber filename
if( gerber == NULL )
{
text = wxGetApp().GetAppName() + wxT( " " ) + GetBuildVersion();
text.Printf( wxT( "GerbView %s" ), GetChars( GetBuildVersion() ) );
SetTitle( text );
SetStatusText( wxEmptyString, 0 );
text.Printf( _( "Layer %d not in use" ), getActiveLayer() + 1 );
......
......@@ -752,16 +752,16 @@ void PCB_EDIT_FRAME::UpdateTitle()
if( fileName.IsOk() && fileName.FileExists() )
{
title = wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() +
wxT( " " ) + fileName.GetFullPath();
title.Printf( wxT( "Pcbnew %s %s" ), GetChars( GetBuildVersion() ),
GetChars( fileName.GetFullPath() ) );
if( !fileName.IsFileWritable() )
title += _( " [Read Only]" );
}
else
{
title = wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() +
wxT( " " ) + _( " [no file]" );
title.Printf( wxT( "Pcbnew %s " ), GetChars( GetBuildVersion() ) );
title << _( " [no file]" );
}
SetTitle( title );
......
......@@ -102,7 +102,7 @@ bool EDA_APP::OnInit()
wxFileName fn;
PCB_EDIT_FRAME* frame = NULL;
InitEDA_Appl( wxT( "PCBNew" ), APP_PCBNEW_T );
InitEDA_Appl( wxT( "Pcbnew" ), APP_PCBNEW_T );
if( m_Checker && m_Checker->IsAnotherRunning() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment