~bidulock/kicad/kicad-brian

« back to all changes in this revision

Viewing changes to eeschema/plot.cpp

  • Committer: Brian F. G. Bidulock
  • Date: 2010-06-30 12:43:10 UTC
  • mfrom: (2360.3.47 testing)
  • Revision ID: brian@habeascorpus-20100630124310-9p4sig3zj1gqnlqd
mergedĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
346
346
 
347
347
static void PlotSheetStruct( PLOTTER* plotter, SCH_SHEET* Struct )
348
348
{
349
 
    SCH_SHEET_PIN* SheetLabelStruct;
350
349
    EDA_Colors txtcolor = UNSPECIFIED_COLOR;
351
350
    wxSize     size;
352
351
    wxString   Text;
392
391
 
393
392
    plotter->set_color( ReturnLayerColor( LAYER_SHEETFILENAME ) );
394
393
 
395
 
    plotter->text( wxPoint( Struct->m_Pos.x,
396
 
                            Struct->m_Pos.y + Struct->m_Size.y + 4 ),
 
394
    plotter->text( wxPoint( Struct->m_Pos.x, Struct->m_Pos.y + Struct->m_Size.y + 4 ),
397
395
                   txtcolor, Text, TEXT_ORIENT_HORIZ, size,
398
396
                   GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_TOP,
399
397
                   thickness, italic, false );
400
398
 
 
399
    plotter->set_color( ReturnLayerColor( Struct->m_Layer ) );
 
400
 
401
401
    /* Draw texts : SheetLabel */
402
 
    SheetLabelStruct = Struct->m_Label;
403
 
    plotter->set_color( ReturnLayerColor( Struct->m_Layer ) );
404
 
 
405
 
    while( SheetLabelStruct != NULL )
 
402
    BOOST_FOREACH( SCH_SHEET_PIN& label, Struct->GetSheetPins() )
406
403
    {
407
 
        Plot_Hierarchical_PIN_Sheet( plotter, SheetLabelStruct );
408
 
        SheetLabelStruct = SheetLabelStruct->Next();
 
404
        label.Plot( plotter );
409
405
    }
410
406
}
411
407