Standardize PostScript capitalizaiton
This commit is contained in:
parent
316ca120e8
commit
2a43b88115
|
@ -757,7 +757,7 @@ void BM2CMP_FRAME::exportPostScriptFormat()
|
||||||
if( path.IsEmpty() || !wxDirExists( path ) )
|
if( path.IsEmpty() || !wxDirExists( path ) )
|
||||||
path = ::wxGetCwd();
|
path = ::wxGetCwd();
|
||||||
|
|
||||||
wxFileDialog fileDlg( this, _( "Create Postscript File" ),
|
wxFileDialog fileDlg( this, _( "Create PostScript File" ),
|
||||||
path, wxEmptyString,
|
path, wxEmptyString,
|
||||||
PSFileWildcard(),
|
PSFileWildcard(),
|
||||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
||||||
|
|
|
@ -155,7 +155,7 @@ BM2CMP_FRAME_BASE::BM2CMP_FRAME_BASE( wxWindow* parent, wxWindowID id, const wxS
|
||||||
m_buttonExportClipboard = new wxButton( m_panelRight, wxID_ANY, _("Export to Clipboard"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_buttonExportClipboard = new wxButton( m_panelRight, wxID_ANY, _("Export to Clipboard"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
brightSizer->Add( m_buttonExportClipboard, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
brightSizer->Add( m_buttonExportClipboard, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_rbOutputFormatChoices[] = { _("Eeschema (.lib file)"), _("Pcbnew (.kicad_mod file)"), _("Postscript (.ps file)"), _("Logo for title block (.kicad_wks file)") };
|
wxString m_rbOutputFormatChoices[] = { _("Eeschema (.lib file)"), _("Pcbnew (.kicad_mod file)"), _("PostScript (.ps file)"), _("Logo for title block (.kicad_wks file)") };
|
||||||
int m_rbOutputFormatNChoices = sizeof( m_rbOutputFormatChoices ) / sizeof( wxString );
|
int m_rbOutputFormatNChoices = sizeof( m_rbOutputFormatChoices ) / sizeof( wxString );
|
||||||
m_rbOutputFormat = new wxRadioBox( m_panelRight, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, m_rbOutputFormatNChoices, m_rbOutputFormatChoices, 1, wxRA_SPECIFY_COLS );
|
m_rbOutputFormat = new wxRadioBox( m_panelRight, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, m_rbOutputFormatNChoices, m_rbOutputFormatChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_rbOutputFormat->SetSelection( 1 );
|
m_rbOutputFormat->SetSelection( 1 );
|
||||||
|
|
|
@ -59,7 +59,7 @@ static int getFillId( FILL_TYPE aFill )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Common routines for Postscript-like plotting engines
|
// Common routines for PostScript-like plotting engines
|
||||||
|
|
||||||
void PSLIKE_PLOTTER::SetColor( COLOR4D color )
|
void PSLIKE_PLOTTER::SetColor( COLOR4D color )
|
||||||
{
|
{
|
||||||
|
@ -561,7 +561,7 @@ void PS_PLOTTER::emitSetRGBColor( double r, double g, double b )
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Postscript supports dashed lines
|
* PostScript supports dashed lines
|
||||||
*/
|
*/
|
||||||
void PS_PLOTTER::SetDash( PLOT_DASH_TYPE dashed )
|
void PS_PLOTTER::SetDash( PLOT_DASH_TYPE dashed )
|
||||||
{
|
{
|
||||||
|
@ -668,7 +668,7 @@ void PS_PLOTTER::PlotPoly( const std::vector< wxPoint >& aCornerList,
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Postscript-likes at the moment are the only plot engines supporting bitmaps...
|
* PostScript-likes at the moment are the only plot engines supporting bitmaps...
|
||||||
*/
|
*/
|
||||||
void PS_PLOTTER::PlotImage( const wxImage & aImage, const wxPoint& aPos,
|
void PS_PLOTTER::PlotImage( const wxImage & aImage, const wxPoint& aPos,
|
||||||
double aScaleFactor )
|
double aScaleFactor )
|
||||||
|
|
|
@ -611,7 +611,7 @@ void SVG_PLOTTER::PlotPoly( const std::vector<wxPoint>& aCornerList,
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Postscript-likes at the moment are the only plot engines supporting bitmaps...
|
* PostScript-likes at the moment are the only plot engines supporting bitmaps...
|
||||||
*/
|
*/
|
||||||
void SVG_PLOTTER::PlotImage( const wxImage& aImage, const wxPoint& aPos,
|
void SVG_PLOTTER::PlotImage( const wxImage& aImage, const wxPoint& aPos,
|
||||||
double aScaleFactor )
|
double aScaleFactor )
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plotting engines similar to ps (Postscript, Gerber, svg)
|
* Plotting engines similar to ps (PostScript, Gerber, svg)
|
||||||
*
|
*
|
||||||
* @file plotters_pslike.h
|
* @file plotters_pslike.h
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -38,7 +38,7 @@ DIALOG_PLOT_SCHEMATIC_BASE::DIALOG_PLOT_SCHEMATIC_BASE( wxWindow* parent, wxWind
|
||||||
|
|
||||||
m_optionsSizer = new wxBoxSizer( wxHORIZONTAL );
|
m_optionsSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxString m_plotFormatOptChoices[] = { _("Postscript"), _("PDF"), _("SVG"), _("DXF"), _("HPGL") };
|
wxString m_plotFormatOptChoices[] = { _("PostScript"), _("PDF"), _("SVG"), _("DXF"), _("HPGL") };
|
||||||
int m_plotFormatOptNChoices = sizeof( m_plotFormatOptChoices ) / sizeof( wxString );
|
int m_plotFormatOptNChoices = sizeof( m_plotFormatOptChoices ) / sizeof( wxString );
|
||||||
m_plotFormatOpt = new wxRadioBox( this, wxID_ANY, _("Output Format"), wxDefaultPosition, wxDefaultSize, m_plotFormatOptNChoices, m_plotFormatOptChoices, 1, wxRA_SPECIFY_COLS );
|
m_plotFormatOpt = new wxRadioBox( this, wxID_ANY, _("Output Format"), wxDefaultPosition, wxDefaultSize, m_plotFormatOptNChoices, m_plotFormatOptChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_plotFormatOpt->SetSelection( 2 );
|
m_plotFormatOpt->SetSelection( 2 );
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
* API for software developers. It is designed to provide primitives for 2-dimensional
|
* API for software developers. It is designed to provide primitives for 2-dimensional
|
||||||
* drawing across a number of different backends. "
|
* drawing across a number of different backends. "
|
||||||
* <br>
|
* <br>
|
||||||
* Cairo offers also backends for Postscript and PDF surfaces. So it can be used for printing
|
* Cairo offers also backends for PostScript and PDF surfaces. So it can be used for printing
|
||||||
* of KiCad graphics surfaces as well.
|
* of KiCad graphics surfaces as well.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plot settings, and plotting engines (Postscript, Gerber, HPGL and DXF)
|
* Plot settings, and plotting engines (PostScript, Gerber, HPGL and DXF)
|
||||||
*
|
*
|
||||||
* @file plotter.h
|
* @file plotter.h
|
||||||
*/
|
*/
|
||||||
|
@ -303,7 +303,7 @@ public:
|
||||||
int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL );
|
int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only Postscript plotters can plot bitmaps.
|
* Only PostScript plotters can plot bitmaps.
|
||||||
*
|
*
|
||||||
* A rectangle is plotted for plotters that cannot plot a bitmap.
|
* A rectangle is plotted for plotters that cannot plot a bitmap.
|
||||||
*
|
*
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plotting engines (Postscript, Gerber, HPGL and DXF)
|
* Plotting engines (PostScript, Gerber, HPGL and DXF)
|
||||||
*
|
*
|
||||||
* @file plotters_specific.h
|
* @file plotters_specific.h
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -96,7 +96,7 @@ static const wxChar* s_allowedExtensionsToList[] = {
|
||||||
wxT( "^.*\\.nc$" ), // Excellon NC drill files (alternate file ext)
|
wxT( "^.*\\.nc$" ), // Excellon NC drill files (alternate file ext)
|
||||||
wxT( "^.*\\.xnc$" ), // Excellon NC drill files (alternate file ext)
|
wxT( "^.*\\.xnc$" ), // Excellon NC drill files (alternate file ext)
|
||||||
wxT( "^.*\\.svg$" ), // SVG print/plot files
|
wxT( "^.*\\.svg$" ), // SVG print/plot files
|
||||||
wxT( "^.*\\.ps$" ), // Postscript plot files
|
wxT( "^.*\\.ps$" ), // PostScript plot files
|
||||||
NULL // end of list
|
NULL // end of list
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
// C++ code generated with wxFormBuilder (version 3.9.0 Jul 27 2020)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
@ -285,7 +285,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
|
||||||
fgSizer2->Add( m_fineAdjustXLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
fgSizer2->Add( m_fineAdjustXLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
m_fineAdjustXCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_fineAdjustXCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_fineAdjustXCtrl->SetToolTip( _("Set global X scale adjust for exact scale postscript output.") );
|
m_fineAdjustXCtrl->SetToolTip( _("Set global X scale adjust for exact scale PostScript output.") );
|
||||||
|
|
||||||
fgSizer2->Add( m_fineAdjustXCtrl, 0, wxEXPAND|wxRIGHT, 5 );
|
fgSizer2->Add( m_fineAdjustXCtrl, 0, wxEXPAND|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
|
||||||
fgSizer2->Add( m_fineAdjustYLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
|
fgSizer2->Add( m_fineAdjustYLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
|
||||||
|
|
||||||
m_fineAdjustYCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_fineAdjustYCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_fineAdjustYCtrl->SetToolTip( _("Set global Y scale adjust for exact scale postscript output.") );
|
m_fineAdjustYCtrl->SetToolTip( _("Set global Y scale adjust for exact scale PostScript output.") );
|
||||||
|
|
||||||
fgSizer2->Add( m_fineAdjustYCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 30 );
|
fgSizer2->Add( m_fineAdjustYCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 30 );
|
||||||
|
|
||||||
|
@ -309,7 +309,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
|
||||||
fgSizer2->Add( m_widthAdjustLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
fgSizer2->Add( m_widthAdjustLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
m_widthAdjustCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_widthAdjustCtrl = new wxTextCtrl( m_PSOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_widthAdjustCtrl->SetToolTip( _("Set global width correction for exact width postscript output.\nThese width correction is intended to compensate tracks width and also pads and vias size errors.\nThe reasonable width correction value must be in a range of [-(MinTrackWidth-1), +(MinClearanceValue-1)] in decimils.") );
|
m_widthAdjustCtrl->SetToolTip( _("Set global width correction for exact width PostScript output.\nThese width correction is intended to compensate tracks width and also pads and vias size errors.\nThe reasonable width correction value must be in a range of [-(MinTrackWidth-1), +(MinClearanceValue-1)] in decimils.") );
|
||||||
|
|
||||||
fgSizer2->Add( m_widthAdjustCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
fgSizer2->Add( m_widthAdjustCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
|
@ -2729,7 +2729,7 @@
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxALL|wxEXPAND</property>
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticBoxSizer" expanded="0">
|
<object class="wxStaticBoxSizer" expanded="1">
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="label">Postscript Options</property>
|
<property name="label">Postscript Options</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
|
@ -2737,11 +2737,11 @@
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
<property name="parent">1</property>
|
<property name="parent">1</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<object class="sizeritem" expanded="0">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>
|
<property name="flag">wxEXPAND|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">1</property>
|
<property name="proportion">1</property>
|
||||||
<object class="wxFlexGridSizer" expanded="0">
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
<property name="cols">6</property>
|
<property name="cols">6</property>
|
||||||
<property name="flexible_direction">wxBOTH</property>
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
<property name="growablecols">1,4</property>
|
<property name="growablecols">1,4</property>
|
||||||
|
@ -2867,7 +2867,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Set global X scale adjust for exact scale postscript output.</property>
|
<property name="tooltip">Set global X scale adjust for exact scale PostScript output.</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -3002,7 +3002,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Set global Y scale adjust for exact scale postscript output.</property>
|
<property name="tooltip">Set global Y scale adjust for exact scale PostScript output.</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
@ -3137,7 +3137,7 @@
|
||||||
<property name="style"></property>
|
<property name="style"></property>
|
||||||
<property name="subclass"></property>
|
<property name="subclass"></property>
|
||||||
<property name="toolbar_pane">0</property>
|
<property name="toolbar_pane">0</property>
|
||||||
<property name="tooltip">Set global width correction for exact width postscript output.
These width correction is intended to compensate tracks width and also pads and vias size errors.
The reasonable width correction value must be in a range of [-(MinTrackWidth-1), +(MinClearanceValue-1)] in decimils.</property>
|
<property name="tooltip">Set global width correction for exact width PostScript output.
These width correction is intended to compensate tracks width and also pads and vias size errors.
The reasonable width correction value must be in a range of [-(MinTrackWidth-1), +(MinClearanceValue-1)] in decimils.</property>
|
||||||
<property name="validator_data_type"></property>
|
<property name="validator_data_type"></property>
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
// C++ code generated with wxFormBuilder (version 3.9.0 Jul 27 2020)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
|
Loading…
Reference in New Issue