mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Cleanup some msg panel usage using the no longer support colors
The color was being passed to the aPadding param now.....
This commit is contained in:
parent
abb5cb8310
commit
b45eb56ddf
@ -356,8 +356,7 @@ bool SCH_PRINTOUT::OnPrintPage( int page )
|
|||||||
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf( _( "Print page %d" ), page );
|
msg.Printf( _( "Print page %d" ), page );
|
||||||
m_parent->ClearMsgPanel();
|
m_parent->SetMsgPanel( msg, wxEmptyString );
|
||||||
m_parent->AppendMsgPanel( msg, wxEmptyString, CYAN );
|
|
||||||
|
|
||||||
SCH_SCREEN* screen = m_parent->GetScreen();
|
SCH_SCREEN* screen = m_parent->GetScreen();
|
||||||
SCH_SHEET_PATH oldsheetpath = m_parent->GetCurrentSheet();
|
SCH_SHEET_PATH oldsheetpath = m_parent->GetCurrentSheet();
|
||||||
|
@ -521,7 +521,7 @@ bool DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged( const wxString& aNewFilena
|
|||||||
DisplayErrorMessage( this, msg, ioe.What() );
|
DisplayErrorMessage( this, msg, ioe.What() );
|
||||||
|
|
||||||
msg.Printf( _( "Failed to save schematic \"%s\"" ), newAbsoluteFilename );
|
msg.Printf( _( "Failed to save schematic \"%s\"" ), newAbsoluteFilename );
|
||||||
m_frame->AppendMsgPanel( wxEmptyString, msg, CYAN );
|
m_frame->SetMsgPanel( wxEmptyString, msg );
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHier
|
|||||||
DisplayErrorMessage( this, msg, ioe.What() );
|
DisplayErrorMessage( this, msg, ioe.What() );
|
||||||
|
|
||||||
msg.Printf( _( "Failed to load schematic \"%s\"" ), fullFilename );
|
msg.Printf( _( "Failed to load schematic \"%s\"" ), fullFilename );
|
||||||
AppendMsgPanel( wxEmptyString, msg, CYAN );
|
SetMsgPanel( wxEmptyString, msg );
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -337,27 +337,27 @@ void GERBER_FILE_IMAGE::DisplayImageInfo( GERBVIEW_FRAME* aMainFrame )
|
|||||||
aMainFrame->ClearMsgPanel();
|
aMainFrame->ClearMsgPanel();
|
||||||
|
|
||||||
// Display Image name (Image specific)
|
// Display Image name (Image specific)
|
||||||
aMainFrame->AppendMsgPanel( _( "Image name" ), m_ImageName, CYAN );
|
aMainFrame->AppendMsgPanel( _( "Image name" ), m_ImageName );
|
||||||
|
|
||||||
// Display graphic layer number used to draw this Image
|
// Display graphic layer number used to draw this Image
|
||||||
// (not a Gerber parameter but is also image specific)
|
// (not a Gerber parameter but is also image specific)
|
||||||
msg.Printf( wxT( "%d" ), m_GraphicLayer + 1 );
|
msg.Printf( wxT( "%d" ), m_GraphicLayer + 1 );
|
||||||
aMainFrame->AppendMsgPanel( _( "Graphic layer" ), msg, BROWN );
|
aMainFrame->AppendMsgPanel( _( "Graphic layer" ), msg );
|
||||||
|
|
||||||
// Display Image rotation (Image specific)
|
// Display Image rotation (Image specific)
|
||||||
msg.Printf( wxT( "%d" ), m_ImageRotation );
|
msg.Printf( wxT( "%d" ), m_ImageRotation );
|
||||||
aMainFrame->AppendMsgPanel( _( "Img Rot." ), msg, CYAN );
|
aMainFrame->AppendMsgPanel( _( "Img Rot." ), msg );
|
||||||
|
|
||||||
// Display Image polarity (Image specific)
|
// Display Image polarity (Image specific)
|
||||||
msg = m_ImageNegative ? _("Negative") : _("Normal");
|
msg = m_ImageNegative ? _("Negative") : _("Normal");
|
||||||
aMainFrame->AppendMsgPanel( _( "Polarity" ), msg, BROWN );
|
aMainFrame->AppendMsgPanel( _( "Polarity" ), msg );
|
||||||
|
|
||||||
// Display Image justification and offset for justification (Image specific)
|
// Display Image justification and offset for justification (Image specific)
|
||||||
msg = m_ImageJustifyXCenter ? _("Center") : _("Normal");
|
msg = m_ImageJustifyXCenter ? _("Center") : _("Normal");
|
||||||
aMainFrame->AppendMsgPanel( _( "X Justify" ), msg, DARKRED );
|
aMainFrame->AppendMsgPanel( _( "X Justify" ), msg );
|
||||||
|
|
||||||
msg = m_ImageJustifyYCenter ? _("Center") : _("Normal");
|
msg = m_ImageJustifyYCenter ? _("Center") : _("Normal");
|
||||||
aMainFrame->AppendMsgPanel( _( "Y Justify" ), msg, DARKRED );
|
aMainFrame->AppendMsgPanel( _( "Y Justify" ), msg );
|
||||||
|
|
||||||
switch( aMainFrame->GetUserUnits() )
|
switch( aMainFrame->GetUserUnits() )
|
||||||
{
|
{
|
||||||
@ -381,7 +381,7 @@ void GERBER_FILE_IMAGE::DisplayImageInfo( GERBVIEW_FRAME* aMainFrame )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
aMainFrame->AppendMsgPanel( _( "Image Justify Offset" ), msg, DARKRED );
|
aMainFrame->AppendMsgPanel( _( "Image Justify Offset" ), msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,10 +49,10 @@ void PCB_BASE_FRAME::Compile_Ratsnest( bool aDisplayStatus )
|
|||||||
wxString msg;
|
wxString msg;
|
||||||
|
|
||||||
msg.Printf( wxT( " %d" ), conn->GetPadCount() );
|
msg.Printf( wxT( " %d" ), conn->GetPadCount() );
|
||||||
AppendMsgPanel( _( "Pads" ), msg, RED );
|
AppendMsgPanel( _( "Pads" ), msg );
|
||||||
|
|
||||||
msg.Printf( wxT( " %d" ), conn->GetNetCount() - 1 /* Don't include "No Net" in count */ );
|
msg.Printf( wxT( " %d" ), conn->GetNetCount() - 1 /* Don't include "No Net" in count */ );
|
||||||
AppendMsgPanel( _( "Nets" ), msg, CYAN );
|
AppendMsgPanel( _( "Nets" ), msg );
|
||||||
|
|
||||||
SetMsgPanel( m_pcb );
|
SetMsgPanel( m_pcb );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user