void DIALOG_PLOT_SCHEMATIC::PlotSchematic( bool aPlotAll )
{
    getPlotOptions();
    switch( GetPlotFileFormat() )
    {
        case PLOT_FORMAT_HPGL:
            createHPGLFile( aPlotAll, getPlotFrameRef() );
            break;

        default:
        case PLOT_FORMAT_POST:
            createPSFile( aPlotAll, getPlotFrameRef() );
            break;

        case PLOT_FORMAT_DXF:
            CreateDXFFile( aPlotAll, getPlotFrameRef() );
            break;

        case PLOT_FORMAT_PDF:
            createPDFFile( aPlotAll, getPlotFrameRef() );
            break;

        case PLOT_FORMAT_SVG:
            createSVGFile( aPlotAll, getPlotFrameRef() );
            break;
    }
    m_MessagesBox->AppendText( wxT( "****\n" ) );
}
Пример #2
0
void DIALOG_PLOT_SCHEMATIC::PlotSchematic( bool aPlotAll )
{
    getPlotOptions();

    switch( GetPlotFileFormat() )
    {
    case PLOT_FORMAT_HPGL:
        createHPGLFile( aPlotAll, getPlotFrameRef() );
        break;

    case PLOT_FORMAT_DXF:
        CreateDXFFile( aPlotAll, getPlotFrameRef() );
        break;

    case PLOT_FORMAT_PDF:
        createPDFFile( aPlotAll, getPlotFrameRef() );
        break;

    case PLOT_FORMAT_SVG:
        createSVGFile( aPlotAll, getPlotFrameRef() );
        break;

    case PLOT_FORMAT_POST:
    // Fall through.  Default to Postscript.
    default:
        createPSFile( aPlotAll, getPlotFrameRef() );
        break;

    }
}