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;
|
||||
msg.Printf( _( "Print page %d" ), page );
|
||||
m_parent->ClearMsgPanel();
|
||||
m_parent->AppendMsgPanel( msg, wxEmptyString, CYAN );
|
||||
m_parent->SetMsgPanel( msg, wxEmptyString );
|
||||
|
||||
SCH_SCREEN* screen = m_parent->GetScreen();
|
||||
SCH_SHEET_PATH oldsheetpath = m_parent->GetCurrentSheet();
|
||||
|
|
|
@ -521,7 +521,7 @@ bool DIALOG_SHEET_PROPERTIES::onSheetFilenameChanged( const wxString& aNewFilena
|
|||
DisplayErrorMessage( this, msg, ioe.What() );
|
||||
|
||||
msg.Printf( _( "Failed to save schematic \"%s\"" ), newAbsoluteFilename );
|
||||
m_frame->AppendMsgPanel( wxEmptyString, msg, CYAN );
|
||||
m_frame->SetMsgPanel( wxEmptyString, msg );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHier
|
|||
DisplayErrorMessage( this, msg, ioe.What() );
|
||||
|
||||
msg.Printf( _( "Failed to load schematic \"%s\"" ), fullFilename );
|
||||
AppendMsgPanel( wxEmptyString, msg, CYAN );
|
||||
SetMsgPanel( wxEmptyString, msg );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -337,27 +337,27 @@ void GERBER_FILE_IMAGE::DisplayImageInfo( GERBVIEW_FRAME* aMainFrame )
|
|||
aMainFrame->ClearMsgPanel();
|
||||
|
||||
// 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
|
||||
// (not a Gerber parameter but is also image specific)
|
||||
msg.Printf( wxT( "%d" ), m_GraphicLayer + 1 );
|
||||
aMainFrame->AppendMsgPanel( _( "Graphic layer" ), msg, BROWN );
|
||||
aMainFrame->AppendMsgPanel( _( "Graphic layer" ), msg );
|
||||
|
||||
// Display Image rotation (Image specific)
|
||||
msg.Printf( wxT( "%d" ), m_ImageRotation );
|
||||
aMainFrame->AppendMsgPanel( _( "Img Rot." ), msg, CYAN );
|
||||
aMainFrame->AppendMsgPanel( _( "Img Rot." ), msg );
|
||||
|
||||
// Display Image polarity (Image specific)
|
||||
msg = m_ImageNegative ? _("Negative") : _("Normal");
|
||||
aMainFrame->AppendMsgPanel( _( "Polarity" ), msg, BROWN );
|
||||
aMainFrame->AppendMsgPanel( _( "Polarity" ), msg );
|
||||
|
||||
// Display Image justification and offset for justification (Image specific)
|
||||
msg = m_ImageJustifyXCenter ? _("Center") : _("Normal");
|
||||
aMainFrame->AppendMsgPanel( _( "X Justify" ), msg, DARKRED );
|
||||
aMainFrame->AppendMsgPanel( _( "X Justify" ), msg );
|
||||
|
||||
msg = m_ImageJustifyYCenter ? _("Center") : _("Normal");
|
||||
aMainFrame->AppendMsgPanel( _( "Y Justify" ), msg, DARKRED );
|
||||
aMainFrame->AppendMsgPanel( _( "Y Justify" ), msg );
|
||||
|
||||
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;
|
||||
|
||||
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 */ );
|
||||
AppendMsgPanel( _( "Nets" ), msg, CYAN );
|
||||
AppendMsgPanel( _( "Nets" ), msg );
|
||||
|
||||
SetMsgPanel( m_pcb );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue