Commit bd19e017 authored by charras's avatar charras

Pcbnew: fixed plot pads problem on silkscreen layers.

parent babab6a8
No preview for this file type
...@@ -2,8 +2,8 @@ msgid "" ...@@ -2,8 +2,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: kicad\n" "Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-01-18 14:19+0100\n" "POT-Creation-Date: 2010-01-18 16:50+0100\n"
"PO-Revision-Date: 2010-01-18 14:19+0100\n" "PO-Revision-Date: 2010-01-18 16:50+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n" "Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -2369,20 +2369,20 @@ msgstr "&Règles de Conception" ...@@ -2369,20 +2369,20 @@ msgstr "&Règles de Conception"
msgid "&Help" msgid "&Help"
msgstr "&Aide" msgstr "&Aide"
#: pcbnew/pcbplot.cpp:567 #: pcbnew/pcbplot.cpp:561
msgid "Warning: Scale option set to a very small value" msgid "Warning: Scale option set to a very small value"
msgstr "Attention: option d'échelle ajustée à une valeur très petite" msgstr "Attention: option d'échelle ajustée à une valeur très petite"
#: pcbnew/pcbplot.cpp:570 #: pcbnew/pcbplot.cpp:564
msgid "Warning: Scale option set to a very large value" msgid "Warning: Scale option set to a very large value"
msgstr "Attention: option d'échelle ajustée à une valeur très grande" msgstr "Attention: option d'échelle ajustée à une valeur très grande"
#: pcbnew/pcbplot.cpp:699 #: pcbnew/pcbplot.cpp:693
#, c-format #, c-format
msgid "Plot file <%s> created" msgid "Plot file <%s> created"
msgstr "Fichier de tracé <%s> créé" msgstr "Fichier de tracé <%s> créé"
#: pcbnew/pcbplot.cpp:711 #: pcbnew/pcbplot.cpp:705
msgid "No layer selected" msgid "No layer selected"
msgstr "Pas de couche sélectionnée" msgstr "Pas de couche sélectionnée"
...@@ -6475,163 +6475,161 @@ msgstr "Exclure les tracés contour PCB des autres couches" ...@@ -6475,163 +6475,161 @@ msgstr "Exclure les tracés contour PCB des autres couches"
msgid "Print sheet reference" msgid "Print sheet reference"
msgstr "Imprimer cartouche" msgstr "Imprimer cartouche"
#: pcbnew/dialog_plot_base.cpp:54 #: pcbnew/dialog_plot_base.cpp:55
msgid "Print pads on silkscreen" msgid "Print pads on silkscreen"
msgstr "Pads sur Sérigraphie" msgstr "Pads sur Sérigraphie"
#: pcbnew/dialog_plot_base.cpp:56 #: pcbnew/dialog_plot_base.cpp:58
msgid "Enable/disable print/plot pads on silkscreen layers" msgid ""
msgstr "Active/désactive tracé des pastilles sur les couches de sérigraphie" "Enable/disable print/plot pads on silkscreen layers\n"
"When disable, pads are never potted on silkscreen layers\n"
#: pcbnew/dialog_plot_base.cpp:60 "When enable, pads are potted only if they appear on silkscreen layers"
msgid "Always print pads" msgstr ""
msgstr "Toujours tracer pads" "Autorise/interdit le tracé des pads sur les couches de sérigraphie\n"
"Si interdit, les pads ne sont jamais traçés sur les couches de sérigraphie\n"
"Si autorisé, les pads sont traçés seulemnt s'ils apparaissent sur les couches de sérigraphie"
#: pcbnew/dialog_plot_base.cpp:62 #: pcbnew/dialog_plot_base.cpp:62
msgid "Force print/plot pads on ALL layers"
msgstr "Force le tracé des pastilles sur TOUTES les couches"
#: pcbnew/dialog_plot_base.cpp:66
msgid "Print module value" msgid "Print module value"
msgstr "Imprimer Valeur Module" msgstr "Imprimer Valeur Module"
#: pcbnew/dialog_plot_base.cpp:70 #: pcbnew/dialog_plot_base.cpp:67
msgid "Print module reference" msgid "Print module reference"
msgstr "Imprimer Référence Module" msgstr "Imprimer Référence Module"
#: pcbnew/dialog_plot_base.cpp:74 #: pcbnew/dialog_plot_base.cpp:72
msgid "Print other module texts" msgid "Print other module texts"
msgstr "Imprimer autres textes module" msgstr "Imprimer autres textes module"
#: pcbnew/dialog_plot_base.cpp:76 #: pcbnew/dialog_plot_base.cpp:75
msgid "Enable/disable print/plot module field texts on silkscreen layers" msgid "Enable/disable print/plot module field texts on silkscreen layers"
msgstr "Active/désactive le tracé des textes des champs des modules sur couches de sérigraphie" msgstr "Active/désactive le tracé des textes des champs des modules sur couches de sérigraphie"
#: pcbnew/dialog_plot_base.cpp:80 #: pcbnew/dialog_plot_base.cpp:79
msgid "Force print invisible texts" msgid "Force print invisible texts"
msgstr "Force tracé textes invisibles" msgstr "Force tracé textes invisibles"
#: pcbnew/dialog_plot_base.cpp:82 #: pcbnew/dialog_plot_base.cpp:81
msgid "Force print/plot module invisible texts on silkscreen layers" msgid "Force print/plot module invisible texts on silkscreen layers"
msgstr "Force le tracé des textes invisibles sur couches de sérigraphie" msgstr "Force le tracé des textes invisibles sur couches de sérigraphie"
#: pcbnew/dialog_plot_base.cpp:97 #: pcbnew/dialog_plot_base.cpp:96
msgid "Auto scale" msgid "Auto scale"
msgstr "Ech. auto" msgstr "Ech. auto"
#: pcbnew/dialog_plot_base.cpp:97 #: pcbnew/dialog_plot_base.cpp:96
msgid "Scale 1.5" msgid "Scale 1.5"
msgstr "Echelle 1,5" msgstr "Echelle 1,5"
#: pcbnew/dialog_plot_base.cpp:99 #: pcbnew/dialog_plot_base.cpp:98
msgid "Scale Opt" msgid "Scale Opt"
msgstr "Echelle" msgstr "Echelle"
#: pcbnew/dialog_plot_base.cpp:105 #: pcbnew/dialog_plot_base.cpp:104
msgid "Plot Mode" msgid "Plot Mode"
msgstr "Mode de Tracé" msgstr "Mode de Tracé"
#: pcbnew/dialog_plot_base.cpp:109 #: pcbnew/dialog_plot_base.cpp:108
msgid "Absolute" msgid "Absolute"
msgstr "Absolu" msgstr "Absolu"
#: pcbnew/dialog_plot_base.cpp:109 #: pcbnew/dialog_plot_base.cpp:108
msgid "Auxiliary axis" msgid "Auxiliary axis"
msgstr "Axe Auxiliaire" msgstr "Axe Auxiliaire"
#: pcbnew/dialog_plot_base.cpp:111 #: pcbnew/dialog_plot_base.cpp:110
msgid "Plot Origin" msgid "Plot Origin"
msgstr "Origine des Coord de Tracé" msgstr "Origine des Coord de Tracé"
#: pcbnew/dialog_plot_base.cpp:120 #: pcbnew/dialog_plot_base.cpp:119
msgid "HPGL" msgid "HPGL"
msgstr "HPGL" msgstr "HPGL"
#: pcbnew/dialog_plot_base.cpp:120 #: pcbnew/dialog_plot_base.cpp:119
msgid "Gerber" msgid "Gerber"
msgstr "Gerber" msgstr "Gerber"
#: pcbnew/dialog_plot_base.cpp:120 #: pcbnew/dialog_plot_base.cpp:119
msgid "Postscript" msgid "Postscript"
msgstr "Postscript" msgstr "Postscript"
#: pcbnew/dialog_plot_base.cpp:120 #: pcbnew/dialog_plot_base.cpp:119
msgid "Postscript A4" msgid "Postscript A4"
msgstr "Postscript A4" msgstr "Postscript A4"
#: pcbnew/dialog_plot_base.cpp:120 #: pcbnew/dialog_plot_base.cpp:119
msgid "DXF Export" msgid "DXF Export"
msgstr "Export DXF" msgstr "Export DXF"
#: pcbnew/dialog_plot_base.cpp:122 #: pcbnew/dialog_plot_base.cpp:121
msgid "Plot Format" msgid "Plot Format"
msgstr "Format de tracé" msgstr "Format de tracé"
#: pcbnew/dialog_plot_base.cpp:127 #: pcbnew/dialog_plot_base.cpp:126
msgid "HPGL Options:" msgid "HPGL Options:"
msgstr "Options HPGL:" msgstr "Options HPGL:"
#: pcbnew/dialog_plot_base.cpp:129 #: pcbnew/dialog_plot_base.cpp:128
msgid "Pen size" msgid "Pen size"
msgstr "Diam plume" msgstr "Diam plume"
#: pcbnew/dialog_plot_base.cpp:136 #: pcbnew/dialog_plot_base.cpp:135
msgid "Pen Speed (cm/s)" msgid "Pen Speed (cm/s)"
msgstr "Vitesse Plume ( cm/s )" msgstr "Vitesse Plume ( cm/s )"
#: pcbnew/dialog_plot_base.cpp:141 #: pcbnew/dialog_plot_base.cpp:140
msgid "Set pen speed in cm/s" msgid "Set pen speed in cm/s"
msgstr "Ajuster Vitesse plume en centimètres par seconde" msgstr "Ajuster Vitesse plume en centimètres par seconde"
#: pcbnew/dialog_plot_base.cpp:145 #: pcbnew/dialog_plot_base.cpp:144
msgid "Pen ovr" msgid "Pen ovr"
msgstr "Recouvrement" msgstr "Recouvrement"
#: pcbnew/dialog_plot_base.cpp:150 #: pcbnew/dialog_plot_base.cpp:149
msgid "Set plot overlay for filling" msgid "Set plot overlay for filling"
msgstr "Ajuste recouvrement des tracés pour les remplissages" msgstr "Ajuste recouvrement des tracés pour les remplissages"
#: pcbnew/dialog_plot_base.cpp:157 #: pcbnew/dialog_plot_base.cpp:156
msgid "PS Options:" msgid "PS Options:"
msgstr "Options PS:" msgstr "Options PS:"
#: pcbnew/dialog_plot_base.cpp:159 #: pcbnew/dialog_plot_base.cpp:158
msgid "Plot negative" msgid "Plot negative"
msgstr "Tracé en Négatif" msgstr "Tracé en Négatif"
#: pcbnew/dialog_plot_base.cpp:170 #: pcbnew/dialog_plot_base.cpp:169
msgid "Plot mirror" msgid "Plot mirror"
msgstr "Tracé Miroir" msgstr "Tracé Miroir"
#: pcbnew/dialog_plot_base.cpp:174 #: pcbnew/dialog_plot_base.cpp:173
msgid "Vias on mask" msgid "Vias on mask"
msgstr "Vias sur masque" msgstr "Vias sur masque"
#: pcbnew/dialog_plot_base.cpp:176 #: pcbnew/dialog_plot_base.cpp:175
msgid "Print/plot vias on mask layers. They are in this case not protected" msgid "Print/plot vias on mask layers. They are in this case not protected"
msgstr "Trace vias sur vernis épargne. Elles seront non protégées" msgstr "Trace vias sur vernis épargne. Elles seront non protégées"
#: pcbnew/dialog_plot_base.cpp:180 #: pcbnew/dialog_plot_base.cpp:179
msgid "Line width" msgid "Line width"
msgstr "Epaisseur ligne" msgstr "Epaisseur ligne"
#: pcbnew/dialog_plot_base.cpp:190 #: pcbnew/dialog_plot_base.cpp:189
msgid "X scale adjust" msgid "X scale adjust"
msgstr "Ajustage Echelle X" msgstr "Ajustage Echelle X"
#: pcbnew/dialog_plot_base.cpp:199 #: pcbnew/dialog_plot_base.cpp:198
msgid "Y scale adjust" msgid "Y scale adjust"
msgstr "Ajustage Echelle Y" msgstr "Ajustage Echelle Y"
#: pcbnew/dialog_plot_base.cpp:209 #: pcbnew/dialog_plot_base.cpp:208
msgid "Plot" msgid "Plot"
msgstr "Tracer" msgstr "Tracer"
#: pcbnew/dialog_plot_base.cpp:213 #: pcbnew/dialog_plot_base.cpp:212
msgid "Save Options" msgid "Save Options"
msgstr "Sauver Options" msgstr "Sauver Options"
#: pcbnew/dialog_plot_base.cpp:216 #: pcbnew/dialog_plot_base.cpp:215
msgid "Generate drill file" msgid "Generate drill file"
msgstr "Créer Fichier de perçage" msgstr "Créer Fichier de perçage"
...@@ -12995,6 +12993,12 @@ msgstr "Options d'Affichage" ...@@ -12995,6 +12993,12 @@ msgstr "Options d'Affichage"
msgid "Page Settings" msgid "Page Settings"
msgstr "Ajustage opt Page" msgstr "Ajustage opt Page"
#~ msgid "Enable/disable print/plot pads on silkscreen layers"
#~ msgstr "Active/désactive tracé des pastilles sur les couches de sérigraphie"
#~ msgid "Always print pads"
#~ msgstr "Toujours tracer pads"
#~ msgid "Force print/plot pads on ALL layers"
#~ msgstr "Force le tracé des pastilles sur TOUTES les couches"
#~ msgid "Adjust pads shape, dimensions, layers" #~ msgid "Adjust pads shape, dimensions, layers"
#~ msgstr "" #~ msgstr ""
#~ "Ajuster les caracteristiques par défaut des pads, les dimensions des " #~ "Ajuster les caracteristiques par défaut des pads, les dimensions des "
......
...@@ -51,18 +51,12 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr ...@@ -51,18 +51,12 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
bLeftSizer->Add( m_Plot_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); bLeftSizer->Add( m_Plot_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
m_Plot_Pads_on_Silkscreen = new wxCheckBox( this, ID_PRINT_PAD_ON_SILKSCREEN, _("Print pads on silkscreen"), wxDefaultPosition, wxDefaultSize, 0 ); m_Plot_Pads_on_Silkscreen = new wxCheckBox( this, ID_ALLOW_PRINT_PAD_ON_SILKSCREEN, _("Print pads on silkscreen"), wxDefaultPosition, wxDefaultSize, 0 );
m_Plot_Pads_on_Silkscreen->SetToolTip( _("Enable/disable print/plot pads on silkscreen layers") ); m_Plot_Pads_on_Silkscreen->SetToolTip( _("Enable/disable print/plot pads on silkscreen layers\nWhen disable, pads are never potted on silkscreen layers\nWhen enable, pads are potted only if they appear on silkscreen layers") );
bLeftSizer->Add( m_Plot_Pads_on_Silkscreen, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); bLeftSizer->Add( m_Plot_Pads_on_Silkscreen, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
m_Force_Plot_Pads = new wxCheckBox( this, ID_FORCE_PRINT_PAD, _("Always print pads"), wxDefaultPosition, wxDefaultSize, 0 );
m_Force_Plot_Pads->SetToolTip( _("Force print/plot pads on ALL layers") );
bLeftSizer->Add( m_Force_Plot_Pads, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
m_Plot_Text_Value = new wxCheckBox( this, ID_PRINT_VALUE, _("Print module value"), wxDefaultPosition, wxDefaultSize, 0 ); m_Plot_Text_Value = new wxCheckBox( this, ID_PRINT_VALUE, _("Print module value"), wxDefaultPosition, wxDefaultSize, 0 );
bLeftSizer->Add( m_Plot_Text_Value, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); bLeftSizer->Add( m_Plot_Text_Value, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
......
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
<property name="fg"></property> <property name="fg"></property>
<property name="font"></property> <property name="font"></property>
<property name="hidden">0</property> <property name="hidden">0</property>
<property name="id">ID_PRINT_PAD_ON_SILKSCREEN</property> <property name="id">ID_ALLOW_PRINT_PAD_ON_SILKSCREEN</property>
<property name="label">Print pads on silkscreen</property> <property name="label">Print pads on silkscreen</property>
<property name="maximum_size"></property> <property name="maximum_size"></property>
<property name="minimum_size"></property> <property name="minimum_size"></property>
...@@ -313,59 +313,7 @@ ...@@ -313,59 +313,7 @@
<property name="size"></property> <property name="size"></property>
<property name="style"></property> <property name="style"></property>
<property name="subclass"></property> <property name="subclass"></property>
<property name="tooltip">Enable/disable print/plot pads on silkscreen layers</property> <property name="tooltip">Enable/disable print/plot pads on silkscreen layers&#x0A;When disable, pads are never potted on silkscreen layers&#x0A;When enable, pads are potted only if they appear on silkscreen layers</property>
<property name="window_extra_style"></property>
<property name="window_name"></property>
<property name="window_style"></property>
<event name="OnChar"></event>
<event name="OnCheckBox"></event>
<event name="OnEnterWindow"></event>
<event name="OnEraseBackground"></event>
<event name="OnKeyDown"></event>
<event name="OnKeyUp"></event>
<event name="OnKillFocus"></event>
<event name="OnLeaveWindow"></event>
<event name="OnLeftDClick"></event>
<event name="OnLeftDown"></event>
<event name="OnLeftUp"></event>
<event name="OnMiddleDClick"></event>
<event name="OnMiddleDown"></event>
<event name="OnMiddleUp"></event>
<event name="OnMotion"></event>
<event name="OnMouseEvents"></event>
<event name="OnMouseWheel"></event>
<event name="OnPaint"></event>
<event name="OnRightDClick"></event>
<event name="OnRightDown"></event>
<event name="OnRightUp"></event>
<event name="OnSetFocus"></event>
<event name="OnSize"></event>
<event name="OnUpdateUI"></event>
</object>
</object>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxTOP|wxRIGHT|wxLEFT</property>
<property name="proportion">0</property>
<object class="wxCheckBox" expanded="1">
<property name="bg"></property>
<property name="checked">0</property>
<property name="context_help"></property>
<property name="enabled">1</property>
<property name="fg"></property>
<property name="font"></property>
<property name="hidden">0</property>
<property name="id">ID_FORCE_PRINT_PAD</property>
<property name="label">Always print pads</property>
<property name="maximum_size"></property>
<property name="minimum_size"></property>
<property name="name">m_Force_Plot_Pads</property>
<property name="permission">protected</property>
<property name="pos"></property>
<property name="size"></property>
<property name="style"></property>
<property name="subclass"></property>
<property name="tooltip">Force print/plot pads on ALL layers</property>
<property name="window_extra_style"></property> <property name="window_extra_style"></property>
<property name="window_name"></property> <property name="window_name"></property>
<property name="window_style"></property> <property name="window_style"></property>
......
...@@ -37,8 +37,7 @@ class DIALOG_PLOT_BASE : public wxDialog ...@@ -37,8 +37,7 @@ class DIALOG_PLOT_BASE : public wxDialog
enum enum
{ {
ID_USE_GERBER_EXTENSIONS = 1000, ID_USE_GERBER_EXTENSIONS = 1000,
ID_PRINT_PAD_ON_SILKSCREEN, ID_ALLOW_PRINT_PAD_ON_SILKSCREEN,
ID_FORCE_PRINT_PAD,
ID_PRINT_VALUE, ID_PRINT_VALUE,
ID_PRINT_REF, ID_PRINT_REF,
ID_PRINT_MODULE_TEXTS, ID_PRINT_MODULE_TEXTS,
...@@ -57,7 +56,6 @@ class DIALOG_PLOT_BASE : public wxDialog ...@@ -57,7 +56,6 @@ class DIALOG_PLOT_BASE : public wxDialog
wxCheckBox* m_Exclude_Edges_Pcb; wxCheckBox* m_Exclude_Edges_Pcb;
wxCheckBox* m_Plot_Sheet_Ref; wxCheckBox* m_Plot_Sheet_Ref;
wxCheckBox* m_Plot_Pads_on_Silkscreen; wxCheckBox* m_Plot_Pads_on_Silkscreen;
wxCheckBox* m_Force_Plot_Pads;
wxCheckBox* m_Plot_Text_Value; wxCheckBox* m_Plot_Text_Value;
wxCheckBox* m_Plot_Text_Ref; wxCheckBox* m_Plot_Text_Ref;
wxCheckBox* m_Plot_Text_Div; wxCheckBox* m_Plot_Text_Div;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#define OPTKEY_XFINESCALE_ADJ wxT( "PlotXFineScaleAdj" ) #define OPTKEY_XFINESCALE_ADJ wxT( "PlotXFineScaleAdj" )
#define OPTKEY_YFINESCALE_ADJ wxT( "PlotYFineScaleAdj" ) #define OPTKEY_YFINESCALE_ADJ wxT( "PlotYFineScaleAdj" )
#define OPTKEY_PADS_ON_SILKSCREEN wxT( "PlotPadsOnSilkscreen" ) #define OPTKEY_PADS_ON_SILKSCREEN wxT( "PlotPadsOnSilkscreen" )
#define OPTKEY_ALWAYS_PRINT_PADS wxT( "PlotAlwaysPads" )
#define OPTKEY_OUTPUT_FORMAT wxT( "PlotOutputFormat" ) #define OPTKEY_OUTPUT_FORMAT wxT( "PlotOutputFormat" )
// Define min and max reasonable values for print scale // Define min and max reasonable values for print scale
...@@ -259,12 +258,7 @@ void DIALOG_PLOT::Init_Dialog() ...@@ -259,12 +258,7 @@ void DIALOG_PLOT::Init_Dialog()
m_Config->Read( OPTKEY_PADS_ON_SILKSCREEN, m_Config->Read( OPTKEY_PADS_ON_SILKSCREEN,
&g_pcb_plot_options.PlotPadsOnSilkLayer ); &g_pcb_plot_options.PlotPadsOnSilkLayer );
m_Plot_Pads_on_Silkscreen->SetValue( &g_pcb_plot_options.PlotPadsOnSilkLayer ); m_Plot_Pads_on_Silkscreen->SetValue( g_pcb_plot_options.PlotPadsOnSilkLayer );
m_Config->Read( OPTKEY_ALWAYS_PRINT_PADS,
&g_pcb_plot_options.Plot_Pads_All_Layers );
m_Force_Plot_Pads->SetValue( g_pcb_plot_options.Plot_Pads_All_Layers );
// Options to plot texts on footprints // Options to plot texts on footprints
m_Plot_Text_Value->SetValue( g_pcb_plot_options.Sel_Texte_Valeur ); m_Plot_Text_Value->SetValue( g_pcb_plot_options.Sel_Texte_Valeur );
...@@ -426,7 +420,6 @@ void DIALOG_PLOT::SaveOptPlot( wxCommandEvent& event ) ...@@ -426,7 +420,6 @@ void DIALOG_PLOT::SaveOptPlot( wxCommandEvent& event )
g_pcb_plot_options.Plot_Frame_Ref = m_Plot_Sheet_Ref->GetValue(); g_pcb_plot_options.Plot_Frame_Ref = m_Plot_Sheet_Ref->GetValue();
g_pcb_plot_options.PlotPadsOnSilkLayer = m_Plot_Pads_on_Silkscreen->GetValue(); g_pcb_plot_options.PlotPadsOnSilkLayer = m_Plot_Pads_on_Silkscreen->GetValue();
g_pcb_plot_options.Plot_Pads_All_Layers = m_Force_Plot_Pads->GetValue();
s_PlotOriginIsAuxAxis = s_PlotOriginIsAuxAxis =
(m_Choice_Plot_Offset->GetSelection() == 0) ? FALSE : TRUE; (m_Choice_Plot_Offset->GetSelection() == 0) ? FALSE : TRUE;
...@@ -476,8 +469,6 @@ void DIALOG_PLOT::SaveOptPlot( wxCommandEvent& event ) ...@@ -476,8 +469,6 @@ void DIALOG_PLOT::SaveOptPlot( wxCommandEvent& event )
m_Config->Write( OPTKEY_YFINESCALE_ADJ, m_YScaleAdjust ); m_Config->Write( OPTKEY_YFINESCALE_ADJ, m_YScaleAdjust );
m_Config->Write( OPTKEY_PADS_ON_SILKSCREEN, m_Config->Write( OPTKEY_PADS_ON_SILKSCREEN,
g_pcb_plot_options.PlotPadsOnSilkLayer ); g_pcb_plot_options.PlotPadsOnSilkLayer );
m_Config->Write( OPTKEY_ALWAYS_PRINT_PADS,
g_pcb_plot_options.Plot_Pads_All_Layers );
int formatNdx = m_PlotFormatOpt->GetSelection(); int formatNdx = m_PlotFormatOpt->GetSelection();
m_Config->Write( OPTKEY_OUTPUT_FORMAT, formatNdx ); m_Config->Write( OPTKEY_OUTPUT_FORMAT, formatNdx );
......
...@@ -49,9 +49,7 @@ public: ...@@ -49,9 +49,7 @@ public:
bool Sel_Texte_Valeur; bool Sel_Texte_Valeur;
bool Sel_Texte_Divers; bool Sel_Texte_Divers;
bool Sel_Texte_Invisible; bool Sel_Texte_Invisible;
bool PlotPadsOnSilkLayer; bool PlotPadsOnSilkLayer; /* allows pads on silkscreen */
bool Plot_Pads_All_Layers; /* Plot pads even outside the
* Layer (useful for silkscreen) */
/* id for plot format (see enum PlotFormat in plot_common.h) */ /* id for plot format (see enum PlotFormat in plot_common.h) */
int PlotFormat; int PlotFormat;
......
...@@ -83,8 +83,7 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter, ...@@ -83,8 +83,7 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter,
Plot_Edges_Modules( plotter, m_Pcb, masque_layer, trace_mode ); Plot_Edges_Modules( plotter, m_Pcb, masque_layer, trace_mode );
/* Plot pads (creates pads outlines, for pads on silkscreen layers) */ /* Plot pads (creates pads outlines, for pads on silkscreen layers) */
if( g_pcb_plot_options.PlotPadsOnSilkLayer if( g_pcb_plot_options.PlotPadsOnSilkLayer )
|| g_pcb_plot_options.Plot_Pads_All_Layers )
{ {
for( MODULE* Module = m_Pcb->m_Modules; for( MODULE* Module = m_Pcb->m_Modules;
Module; Module;
...@@ -94,18 +93,9 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter, ...@@ -94,18 +93,9 @@ void WinEDA_BasePcbFrame::Plot_Serigraphie( PLOTTER* plotter,
pt_pad != NULL; pt_pad != NULL;
pt_pad = pt_pad->Next() ) pt_pad = pt_pad->Next() )
{ {
/* Seen if the pad is on this layer */ /* See if the pad is on this layer */
if( (pt_pad->m_Masque_Layer & masque_layer) == 0 if( (pt_pad->m_Masque_Layer & masque_layer) == 0 )
/* Copper pads go on copper silk, component
* pads go on component silk */
&& ( ( (pt_pad->m_Masque_Layer & LAYER_BACK) == 0 )
|| ( (masque_layer & SILKSCREEN_LAYER_BACK) == 0 ) )
&& ( ( (pt_pad->m_Masque_Layer & LAYER_FRONT) == 0 )
|| ( (masque_layer & SILKSCREEN_LAYER_FRONT) == 0 ) ) )
{
if( !g_pcb_plot_options.Plot_Pads_All_Layers )
continue; continue;
}
shape_pos = pt_pad->ReturnShapePos(); shape_pos = pt_pad->ReturnShapePos();
pos = shape_pos; pos = shape_pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment