Minors fixes: dialog_print_using_printer.cpp: fix a Coverity warning and very minor coding style issue. xsl scripts: add bom2grouped_csv.xsl (from a contributor) and fix minor issues.
This commit is contained in:
parent
368bd1477b
commit
93e61e7a2e
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
set( xsl_lst
|
set( xsl_lst
|
||||||
bom2csv.xsl
|
bom2csv.xsl
|
||||||
|
bom2grouped_csv.xsl
|
||||||
netlist_form_cadstar-RINF.xsl
|
netlist_form_cadstar-RINF.xsl
|
||||||
netlist_form_cadstar.xsl
|
netlist_form_cadstar.xsl
|
||||||
netlist_form_OrcadPcb2.xsl
|
netlist_form_OrcadPcb2.xsl
|
||||||
|
|
|
@ -55,12 +55,13 @@
|
||||||
|
|
||||||
<!-- the table entries -->
|
<!-- the table entries -->
|
||||||
<xsl:template match="components/comp">
|
<xsl:template match="components/comp">
|
||||||
<xsl:value-of select="@ref"/><xsl:text>,</xsl:text>
|
<xsl:text>"</xsl:text>
|
||||||
<xsl:value-of select="value"/><xsl:text>,</xsl:text>
|
<xsl:value-of select="@ref"/><xsl:text>","</xsl:text>
|
||||||
<xsl:value-of select="footprint"/><xsl:text>,</xsl:text>
|
<xsl:value-of select="value"/><xsl:text>","</xsl:text>
|
||||||
<xsl:value-of select="datasheet"/>
|
<xsl:value-of select="footprint"/><xsl:text>","</xsl:text>
|
||||||
<xsl:apply-templates select="fields"/>
|
<xsl:value-of select="datasheet"/><xsl:text>","</xsl:text>
|
||||||
<xsl:text>&nl;</xsl:text>
|
<xsl:apply-templates select="fields"/><xsl:text>","</xsl:text>
|
||||||
|
<xsl:text>"&nl;</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- table entries with dynamic table head -->
|
<!-- table entries with dynamic table head -->
|
||||||
|
|
|
@ -0,0 +1,104 @@
|
||||||
|
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
|
||||||
|
Copyright (C) 2014, Wolf Walter.
|
||||||
|
Copyright (C) 2013, Stefan Helmert.
|
||||||
|
GPL v2.
|
||||||
|
|
||||||
|
Functionality:
|
||||||
|
Generation of Digi-Key ordering system compatible BOM
|
||||||
|
|
||||||
|
How to use this is explained in eeschema.pdf chapter 14. You enter a command line into the
|
||||||
|
netlist exporter using a new (custom) tab in the netlist export dialog.
|
||||||
|
The command line is
|
||||||
|
xsltproc -o "%O.csv" "FullPathToFile/bom2groupedCsv.xsl" "%I"
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
@package
|
||||||
|
Functionality:
|
||||||
|
* Generate a comma separated value BOM list (csv file type).
|
||||||
|
* Components are sorted by ref and grouped by same value+footprint
|
||||||
|
One value per line
|
||||||
|
Fields are
|
||||||
|
Reference, Quantity, Value, Footprint, Datasheet
|
||||||
|
|
||||||
|
The command line is
|
||||||
|
xsltproc -o "%O.csv" "FullPathToFile/bom2groupedCsv.xsl" "%I"
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!DOCTYPE xsl:stylesheet [
|
||||||
|
<!ENTITY nl "
"> <!--new line CR, LF, or LF, your choice -->
|
||||||
|
]>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
|
<xsl:output method="text"/>
|
||||||
|
|
||||||
|
<!-- for Muenchian grouping of footprint and value combination -->
|
||||||
|
<xsl:key name="partTypeByValueAndFootprint" match="comp" use="concat(footprint, '-', value)" />
|
||||||
|
|
||||||
|
<!-- for table head and empty table fields-->
|
||||||
|
<xsl:key name="headentr" match="field" use="@name"/>
|
||||||
|
|
||||||
|
<!-- main part -->
|
||||||
|
<xsl:template match="/export">
|
||||||
|
<xsl:text>Reference, Quantity, Value, Footprint, Datasheet</xsl:text>
|
||||||
|
|
||||||
|
<!-- find all existing table head entries and list each one once -->
|
||||||
|
<xsl:for-each select="components/comp/fields/field[generate-id(.) = generate-id(key('headentr',@name)[1])]">
|
||||||
|
<xsl:text>, </xsl:text>
|
||||||
|
<xsl:value-of select="@name"/>
|
||||||
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<!-- all table entries -->
|
||||||
|
<xsl:apply-templates select="components"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="components">
|
||||||
|
<!-- for Muenchian grouping of footprint and value combination -->
|
||||||
|
<xsl:for-each select="comp[count(. | key('partTypeByValueAndFootprint', concat(footprint, '-', value))[1]) = 1]">
|
||||||
|
<xsl:sort select="@ref" />
|
||||||
|
<xsl:text>&nl;</xsl:text>
|
||||||
|
<!-- list of all references -->
|
||||||
|
<xsl:for-each select="key('partTypeByValueAndFootprint', concat(footprint, '-', value))">
|
||||||
|
<xsl:sort select="@ref" />
|
||||||
|
<xsl:value-of select="@ref"/><xsl:text> </xsl:text>
|
||||||
|
</xsl:for-each><xsl:text>,</xsl:text>
|
||||||
|
<!-- quantity of parts with same footprint and value -->
|
||||||
|
<xsl:value-of select="count(key('partTypeByValueAndFootprint', concat(footprint, '-', value)))"/><xsl:text>,</xsl:text>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
<xsl:value-of select="value"/><xsl:text>","</xsl:text>
|
||||||
|
<xsl:value-of select="footprint"/><xsl:text>","</xsl:text>
|
||||||
|
<xsl:value-of select="datasheet"/><xsl:text>"</xsl:text>
|
||||||
|
<xsl:apply-templates select="fields"/>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- table entries with dynamic table head -->
|
||||||
|
<xsl:template match="fields">
|
||||||
|
|
||||||
|
<!-- remember current fields section -->
|
||||||
|
<xsl:variable name="fieldvar" select="field"/>
|
||||||
|
|
||||||
|
<!-- for all existing head entries -->
|
||||||
|
<xsl:for-each select="/export/components/comp/fields/field[generate-id(.) = generate-id(key('headentr',@name)[1])]">
|
||||||
|
<xsl:variable name="allnames" select="@name"/>
|
||||||
|
<xsl:text>,"</xsl:text>
|
||||||
|
|
||||||
|
<!-- for all field entries in the remembered fields section -->
|
||||||
|
<xsl:for-each select="$fieldvar">
|
||||||
|
|
||||||
|
<!-- only if this field entry exists in this fields section -->
|
||||||
|
<xsl:if test="@name=$allnames">
|
||||||
|
<!-- content of the field -->
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
<!--
|
||||||
|
If it does not exist, use an empty cell in output for this row.
|
||||||
|
Every non-blank entry is assigned to its proper column.
|
||||||
|
-->
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
</xsl:stylesheet>
|
|
@ -1,26 +1,19 @@
|
||||||
<!--
|
<!--
|
||||||
@package
|
|
||||||
EESCHEMA BOM plugin. Creates BOM CSV files from the project net file.
|
EESCHEMA BOM plugin. Creates BOM CSV files from the project net file.
|
||||||
Based on Stefan Helmert bom2csv.xsl
|
Based on Stefan Helmert bom2csv.xsl
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
The project infomation (i.e title, company and revision) is taken from and the root sheet.
|
The project infomation (i.e title, company and revision) is taken from the root sheet.
|
||||||
|
|
||||||
Arthur:
|
Arthur:
|
||||||
Ronald Sousa HashDefineElectronics.com
|
Ronald Sousa HashDefineElectronics.com
|
||||||
|
|
||||||
Usage:
|
|
||||||
on Windows:
|
|
||||||
xsltproc -o "%O.csv" "C:\Program Files (x86)\KiCad\bin\plugins\bom2csv.xsl" "%I"
|
|
||||||
on Linux:
|
|
||||||
xsltproc -o "%O.csv" /usr/local/lib/kicad/plugins/bom2csv.xsl "%I"
|
|
||||||
|
|
||||||
Ouput Example:
|
Ouput Example:
|
||||||
Source,
|
Source,
|
||||||
Kicad Rev, working director and file source
|
Kicad Rev, working director and file source
|
||||||
Generated Date, date this file was generated
|
Generated Date, date this file was generated
|
||||||
|
|
||||||
Title, the project's tile
|
Title, the project's title
|
||||||
Company, the project's company
|
Company, the project's company
|
||||||
Rev, the project's revision
|
Rev, the project's revision
|
||||||
Date Source, project's issue date
|
Date Source, project's issue date
|
||||||
|
@ -28,7 +21,13 @@
|
||||||
Comment, This is comment 2
|
Comment, This is comment 2
|
||||||
Comment, This is comment 3
|
Comment, This is comment 3
|
||||||
Comment, This is comment 4
|
Comment, This is comment 4
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
@package
|
||||||
|
Command line:
|
||||||
|
xsltproc -o "%O.csv" "pathToFile/bom2csv.xsl" "%I"
|
||||||
|
|
||||||
|
Output format
|
||||||
Reference, Value, Fields[n], Library, Library Ref
|
Reference, Value, Fields[n], Library, Library Ref
|
||||||
U1, PIC32MX, Fields[n], KicadLib, PIC
|
U1, PIC32MX, Fields[n], KicadLib, PIC
|
||||||
-->
|
-->
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
#include <class_board.h>
|
#include <class_board.h>
|
||||||
|
|
||||||
#include <dialog_print_using_printer_base.h>
|
#include <dialog_print_using_printer_BASE.h>
|
||||||
|
|
||||||
|
|
||||||
#define PEN_WIDTH_MAX_VALUE ( KiROUND( 5 * IU_PER_MM ) )
|
#define PEN_WIDTH_MAX_VALUE ( KiROUND( 5 * IU_PER_MM ) )
|
||||||
|
@ -64,10 +64,10 @@ static PRINT_PARAMETERS s_Parameters;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dialog to print schematic. Class derived from DIALOG_PRINT_USING_PRINTER_base
|
* Dialog to print schematic. Class derived from DIALOG_PRINT_USING_PRINTER_BASE
|
||||||
* created by wxFormBuilder
|
* created by wxFormBuilder
|
||||||
*/
|
*/
|
||||||
class DIALOG_PRINT_USING_PRINTER : public DIALOG_PRINT_USING_PRINTER_base
|
class DIALOG_PRINT_USING_PRINTER : public DIALOG_PRINT_USING_PRINTER_BASE
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DIALOG_PRINT_USING_PRINTER( PCB_EDIT_FRAME* parent );
|
DIALOG_PRINT_USING_PRINTER( PCB_EDIT_FRAME* parent );
|
||||||
|
@ -141,7 +141,7 @@ void PCB_EDIT_FRAME::ToPrinter( wxCommandEvent& event )
|
||||||
|
|
||||||
|
|
||||||
DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER( PCB_EDIT_FRAME* parent ) :
|
DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER( PCB_EDIT_FRAME* parent ) :
|
||||||
DIALOG_PRINT_USING_PRINTER_base( parent )
|
DIALOG_PRINT_USING_PRINTER_BASE( parent )
|
||||||
{
|
{
|
||||||
m_parent = parent;
|
m_parent = parent;
|
||||||
m_config = Kiface().KifaceSettings();
|
m_config = Kiface().KifaceSettings();
|
||||||
|
@ -351,8 +351,7 @@ void DIALOG_PRINT_USING_PRINTER::SetPrintParameters( )
|
||||||
s_Parameters.m_DrillShapeOpt =
|
s_Parameters.m_DrillShapeOpt =
|
||||||
(PRINT_PARAMETERS::DrillShapeOptT) m_Drill_Shape_Opt->GetSelection();
|
(PRINT_PARAMETERS::DrillShapeOptT) m_Drill_Shape_Opt->GetSelection();
|
||||||
|
|
||||||
if( m_PagesOption )
|
s_Parameters.m_OptionPrintPage = m_PagesOption->GetSelection() != 0;
|
||||||
s_Parameters.m_OptionPrintPage = m_PagesOption->GetSelection() != 0;
|
|
||||||
|
|
||||||
SetLayerSetFromListSelection();
|
SetLayerSetFromListSelection();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Mar 9 2015)
|
// C++ code generated with wxFormBuilder (version May 6 2016)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
DIALOG_PRINT_USING_PRINTER_BASE::DIALOG_PRINT_USING_PRINTER_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
||||||
{
|
{
|
||||||
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
||||||
|
|
||||||
|
@ -22,12 +22,12 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
wxBoxSizer* bleftSizer;
|
wxBoxSizer* bleftSizer;
|
||||||
bleftSizer = new wxBoxSizer( wxHORIZONTAL );
|
bleftSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
m_CopperLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Copper Layers:") ), wxVERTICAL );
|
m_CopperLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( sbLayersSizer->GetStaticBox(), wxID_ANY, _("Copper Layers:") ), wxVERTICAL );
|
||||||
|
|
||||||
|
|
||||||
bleftSizer->Add( m_CopperLayersBoxSizer, 1, wxALL, 5 );
|
bleftSizer->Add( m_CopperLayersBoxSizer, 1, wxALL, 5 );
|
||||||
|
|
||||||
m_TechnicalLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Technical Layers:") ), wxVERTICAL );
|
m_TechnicalLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( sbLayersSizer->GetStaticBox(), wxID_ANY, _("Technical Layers:") ), wxVERTICAL );
|
||||||
|
|
||||||
|
|
||||||
bleftSizer->Add( m_TechnicalLayersBoxSizer, 1, wxALL, 5 );
|
bleftSizer->Add( m_TechnicalLayersBoxSizer, 1, wxALL, 5 );
|
||||||
|
@ -35,7 +35,7 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
|
|
||||||
sbLayersSizer->Add( bleftSizer, 1, wxEXPAND, 5 );
|
sbLayersSizer->Add( bleftSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_Exclude_Edges_Pcb = new wxCheckBox( this, wxID_ANY, _("Exclude Edges_Pcb Layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Exclude_Edges_Pcb = new wxCheckBox( sbLayersSizer->GetStaticBox(), wxID_ANY, _("Exclude Edges_Pcb Layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Exclude_Edges_Pcb->SetToolTip( _("Exclude contents of Edges_Pcb layer from all other layers") );
|
m_Exclude_Edges_Pcb->SetToolTip( _("Exclude contents of Edges_Pcb layer from all other layers") );
|
||||||
|
|
||||||
sbLayersSizer->Add( m_Exclude_Edges_Pcb, 0, wxALL|wxEXPAND, 5 );
|
sbLayersSizer->Add( m_Exclude_Edges_Pcb, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
@ -57,7 +57,6 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
bmiddleLeftSizer->Add( m_FineAdjustXscaleTitle, 0, wxRIGHT|wxLEFT, 5 );
|
bmiddleLeftSizer->Add( m_FineAdjustXscaleTitle, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_FineAdjustXscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustXscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_FineAdjustXscaleOpt->SetMaxLength( 0 );
|
|
||||||
m_FineAdjustXscaleOpt->SetToolTip( _("Set X scale adjust for exact scale plotting") );
|
m_FineAdjustXscaleOpt->SetToolTip( _("Set X scale adjust for exact scale plotting") );
|
||||||
|
|
||||||
bmiddleLeftSizer->Add( m_FineAdjustXscaleOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
bmiddleLeftSizer->Add( m_FineAdjustXscaleOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
@ -67,7 +66,6 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
bmiddleLeftSizer->Add( m_FineAdjustYscaleTitle, 0, wxRIGHT|wxLEFT, 5 );
|
bmiddleLeftSizer->Add( m_FineAdjustYscaleTitle, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_FineAdjustYscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustYscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_FineAdjustYscaleOpt->SetMaxLength( 0 );
|
|
||||||
m_FineAdjustYscaleOpt->SetToolTip( _("Set Y scale adjust for exact scale plotting") );
|
m_FineAdjustYscaleOpt->SetToolTip( _("Set Y scale adjust for exact scale plotting") );
|
||||||
|
|
||||||
bmiddleLeftSizer->Add( m_FineAdjustYscaleOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
bmiddleLeftSizer->Add( m_FineAdjustYscaleOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
@ -81,23 +79,22 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
wxStaticBoxSizer* sbOptionsSizer;
|
wxStaticBoxSizer* sbOptionsSizer;
|
||||||
sbOptionsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options:") ), wxVERTICAL );
|
sbOptionsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options:") ), wxVERTICAL );
|
||||||
|
|
||||||
m_TextPenWidth = new wxStaticText( this, wxID_ANY, _("Default pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TextPenWidth = new wxStaticText( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Default pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_TextPenWidth->Wrap( -1 );
|
m_TextPenWidth->Wrap( -1 );
|
||||||
m_TextPenWidth->SetToolTip( _("Pen size used to draw items that have no pen size specified.\nUsed mainly to draw items in sketch mode.") );
|
m_TextPenWidth->SetToolTip( _("Pen size used to draw items that have no pen size specified.\nUsed mainly to draw items in sketch mode.") );
|
||||||
|
|
||||||
sbOptionsSizer->Add( m_TextPenWidth, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
sbOptionsSizer->Add( m_TextPenWidth, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_DialogPenWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_DialogPenWidth = new wxTextCtrl( sbOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DialogPenWidth->SetMaxLength( 0 );
|
|
||||||
sbOptionsSizer->Add( m_DialogPenWidth, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
sbOptionsSizer->Add( m_DialogPenWidth, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_Print_Sheet_Ref = new wxCheckBox( this, wxID_FRAME_SEL, _("Print frame ref"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Print_Sheet_Ref = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_FRAME_SEL, _("Print frame ref"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Print_Sheet_Ref->SetValue(true);
|
m_Print_Sheet_Ref->SetValue(true);
|
||||||
m_Print_Sheet_Ref->SetToolTip( _("Print (or not) the Frame references.") );
|
m_Print_Sheet_Ref->SetToolTip( _("Print (or not) the Frame references.") );
|
||||||
|
|
||||||
sbOptionsSizer->Add( m_Print_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
sbOptionsSizer->Add( m_Print_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Print_Mirror = new wxCheckBox( this, wxID_ANY, _("Mirror"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Print_Mirror = new wxCheckBox( sbOptionsSizer->GetStaticBox(), wxID_ANY, _("Mirror"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbOptionsSizer->Add( m_Print_Mirror, 0, wxALL, 5 );
|
sbOptionsSizer->Add( m_Print_Mirror, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,22 +156,22 @@ DIALOG_PRINT_USING_PRINTER_base::DIALOG_PRINT_USING_PRINTER_base( wxWindow* pare
|
||||||
this->Centre( wxBOTH );
|
this->Centre( wxBOTH );
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnCloseWindow ) );
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
||||||
m_ScaleOption->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnScaleSelectionClick ), NULL, this );
|
m_ScaleOption->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnScaleSelectionClick ), NULL, this );
|
||||||
m_buttonOption->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPageSetup ), NULL, this );
|
m_buttonOption->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
||||||
m_buttonPreview->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPrintPreview ), NULL, this );
|
m_buttonPreview->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
||||||
m_buttonPrint->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPrintButtonClick ), NULL, this );
|
m_buttonPrint->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintButtonClick ), NULL, this );
|
||||||
m_buttonQuit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnButtonCancelClick ), NULL, this );
|
m_buttonQuit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnButtonCancelClick ), NULL, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_PRINT_USING_PRINTER_base::~DIALOG_PRINT_USING_PRINTER_base()
|
DIALOG_PRINT_USING_PRINTER_BASE::~DIALOG_PRINT_USING_PRINTER_BASE()
|
||||||
{
|
{
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnCloseWindow ) );
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnCloseWindow ) );
|
||||||
m_ScaleOption->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnScaleSelectionClick ), NULL, this );
|
m_ScaleOption->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnScaleSelectionClick ), NULL, this );
|
||||||
m_buttonOption->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPageSetup ), NULL, this );
|
m_buttonOption->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPageSetup ), NULL, this );
|
||||||
m_buttonPreview->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPrintPreview ), NULL, this );
|
m_buttonPreview->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintPreview ), NULL, this );
|
||||||
m_buttonPrint->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnPrintButtonClick ), NULL, this );
|
m_buttonPrint->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnPrintButtonClick ), NULL, this );
|
||||||
m_buttonQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_base::OnButtonCancelClick ), NULL, this );
|
m_buttonQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PRINT_USING_PRINTER_BASE::OnButtonCancelClick ), NULL, this );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<property name="id">wxID_ANY</property>
|
<property name="id">wxID_ANY</property>
|
||||||
<property name="maximum_size"></property>
|
<property name="maximum_size"></property>
|
||||||
<property name="minimum_size">-1,-1</property>
|
<property name="minimum_size">-1,-1</property>
|
||||||
<property name="name">DIALOG_PRINT_USING_PRINTER_base</property>
|
<property name="name">DIALOG_PRINT_USING_PRINTER_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">-1,-1</property>
|
<property name="size">-1,-1</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
|
@ -103,6 +103,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">sbLayersSizer</property>
|
<property name="name">sbLayersSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="parent">1</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
|
@ -124,6 +125,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">m_CopperLayersBoxSizer</property>
|
<property name="name">m_CopperLayersBoxSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="parent">1</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
|
@ -138,6 +140,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">m_TechnicalLayersBoxSizer</property>
|
<property name="name">m_TechnicalLayersBoxSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="parent">1</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
|
@ -702,6 +705,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">sbOptionsSizer</property>
|
<property name="name">sbOptionsSizer</property>
|
||||||
<property name="orient">wxVERTICAL</property>
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="parent">1</property>
|
||||||
<property name="permission">none</property>
|
<property name="permission">none</property>
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Mar 9 2015)
|
// C++ code generated with wxFormBuilder (version May 6 2016)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -31,9 +31,9 @@ class DIALOG_SHIM;
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class DIALOG_PRINT_USING_PRINTER_base
|
/// Class DIALOG_PRINT_USING_PRINTER_BASE
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
class DIALOG_PRINT_USING_PRINTER_base : public DIALOG_SHIM
|
class DIALOG_PRINT_USING_PRINTER_BASE : public DIALOG_SHIM
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ class DIALOG_PRINT_USING_PRINTER_base : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_PRINT_USING_PRINTER_base( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Print"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_PRINT_USING_PRINTER_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Print"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_PRINT_USING_PRINTER_base();
|
~DIALOG_PRINT_USING_PRINTER_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue