KiCad PCB EDA Suite
DIALOG_PLOT Class Reference

Class DIALOG_PLOT is the dialog to set the plot options, and create plot files in various formats. More...

#include <dialog_plot.h>

Inheritance diagram for DIALOG_PLOT:
DIALOG_PLOT_BASE DIALOG_SHIM KIWAY_HOLDER

Public Member Functions

 DIALOG_PLOT (PCB_EDIT_FRAME *parent)
 
void DIALOG_PLOT_BASEOnContextMenu (wxMouseEvent &event)
 
int ShowQuasiModal ()
 
void EndQuasiModal (int retCode)
 
bool IsQuasiModal ()
 
bool Show (bool show) override
 
bool Enable (bool enable) override
 
void OnPaint (wxPaintEvent &event)
 
KIWAYKiway () const
 Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in. More...
 
PROJECTPrj () const
 Function Prj returns a reference to the PROJECT "associated with" this KIWAY. More...
 
void SetKiway (wxWindow *aDest, KIWAY *aKiway)
 Function SetKiway. More...
 

Protected Types

enum  {
  ID_PRINT_REF = 1000, ID_ALLOW_PRINT_PAD_ON_SILKSCREEN, ID_MIROR_OPT, ID_CREATE_DRILL_FILE,
  ID_LAYER_FAB, ID_SELECT_COPPER_LAYERS, ID_DESELECT_COPPER_LAYERS, ID_SELECT_ALL_LAYERS,
  ID_DESELECT_ALL_LAYERS
}
 

Protected Member Functions

virtual void OnInitDialog (wxInitDialogEvent &event)
 
void FinishDialogSettings ()
 In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls. More...
 
void SetSizeInDU (int x, int y)
 Set the dialog to the given dimensions in "dialog units". More...
 
int HorizPixelsFromDU (int x)
 Convert an integer number of dialog units to pixels, horizontally. More...
 
int VertPixelsFromDU (int y)
 Convert an integer number of dialog units to pixels, vertically. More...
 

Protected Attributes

wxBoxSizer * m_MainSizer
 
wxStaticText * m_staticTextPlotFmt
 
wxChoice * m_plotFormatOpt
 
wxStaticText * m_staticTextDir
 
wxTextCtrl * m_outputDirectoryName
 
wxBitmapButton * m_browseButton
 
wxStaticBoxSizer * m_LayersSizer
 
wxCheckListBox * m_layerCheckListBox
 
wxBoxSizer * m_PlotOptionsSizer
 
wxCheckBox * m_plotSheetRef
 
wxCheckBox * m_plotModuleValueOpt
 
wxCheckBox * m_plotModuleRefOpt
 
wxCheckBox * m_plotInvisibleText
 
wxCheckBox * m_plotNoViaOnMaskOpt
 
wxCheckBox * m_excludeEdgeLayerOpt
 
wxCheckBox * m_excludePadsFromSilkscreen
 
wxCheckBox * m_plotMirrorOpt
 
wxCheckBox * m_plotPSNegativeOpt
 
wxCheckBox * m_useAuxOriginCheckBox
 
wxStaticText * m_staticText11
 
wxChoice * m_drillShapeOpt
 
wxStaticText * m_staticText12
 
wxChoice * m_scaleOpt
 
wxStaticText * m_staticText13
 
wxChoice * m_plotModeOpt
 
wxStaticText * m_textDefaultPenSize
 
wxTextCtrl * m_linesWidth
 
wxStaticText * m_SolderMaskMarginLabel
 
wxStaticText * m_SolderMaskMarginCurrValue
 
wxStaticText * m_solderMaskMinWidthLabel
 
wxStaticText * m_SolderMaskMinWidthCurrValue
 
wxStaticBoxSizer * m_GerberOptionsSizer
 
wxCheckBox * m_useGerberExtensions
 
wxCheckBox * m_useGerberX2Attributes
 
wxCheckBox * m_useGerberNetAttributes
 
wxCheckBox * m_generateGerberJobFile
 
wxCheckBox * m_subtractMaskFromSilk
 
wxRadioBox * m_rbGerberFormat
 
wxStaticBoxSizer * m_HPGLOptionsSizer
 
wxStaticText * m_textPenSize
 
wxTextCtrl * m_HPGLPenSizeOpt
 
wxStaticBoxSizer * m_PSOptionsSizer
 
wxStaticText * m_staticText7
 
wxTextCtrl * m_fineAdjustXscaleOpt
 
wxStaticText * m_staticText8
 
wxTextCtrl * m_fineAdjustYscaleOpt
 
wxStaticText * m_textPSFineAdjustWidth
 
wxTextCtrl * m_PSFineAdjustWidthOpt
 
wxCheckBox * m_forcePSA4OutputOpt
 
wxStaticBoxSizer * m_SizerDXF_options
 
wxCheckBox * m_DXF_plotModeOpt
 
wxCheckBox * m_DXF_plotTextStrokeFontOpt
 
WX_HTML_REPORT_PANELm_messagesPanel
 
wxButton * m_buttonDRC
 
wxButton * m_plotButton
 
wxButton * m_buttonDrill
 
wxButton * m_buttonQuit
 
wxMenu * m_popMenu
 
bool m_fixupsRun
 
std::string m_hash_key
 
EVENT_LOOPm_qmodal_loop
 
bool m_qmodal_showing
 
WDO_ENABLE_DISABLEm_qmodal_parent_disabler
 

Private Member Functions

void Plot (wxCommandEvent &event) override
 
void OnQuit (wxCommandEvent &event) override
 
void OnClose (wxCloseEvent &event) override
 
void OnOutputDirectoryBrowseClicked (wxCommandEvent &event) override
 
void OnRightClick (wxMouseEvent &event) override
 
void OnPopUpLayers (wxCommandEvent &event) override
 
void SetPlotFormat (wxCommandEvent &event) override
 
void OnChangeDXFPlotMode (wxCommandEvent &event) override
 
void OnSetScaleOpt (wxCommandEvent &event) override
 
void CreateDrillFile (wxCommandEvent &event) override
 
void OnGerberX2Checked (wxCommandEvent &event) override
 
void onRunDRC (wxCommandEvent &event) override
 
void init_Dialog ()
 
void reInitDialog ()
 
void applyPlotSettings ()
 
PlotFormat getPlotFormat ()
 
void setPlotModeChoiceSelection (EDA_DRAW_MODE_T aPlotMode)
 

Private Attributes

PCB_EDIT_FRAMEm_parent
 
wxConfigBase * m_config
 
LSEQ m_layerList
 
double m_XScaleAdjust
 
double m_YScaleAdjust
 
int m_PSWidthAdjust
 
int m_widthAdjustMinValue
 
int m_widthAdjustMaxValue
 
PCB_PLOT_PARAMS m_plotOpts
 

Detailed Description

Class DIALOG_PLOT is the dialog to set the plot options, and create plot files in various formats.

Definition at line 36 of file dialog_plot.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

DIALOG_PLOT::DIALOG_PLOT ( PCB_EDIT_FRAME parent)

Definition at line 48 of file dialog_plot.cpp.

References PCB_BASE_FRAME::GetPlotSettings(), init_Dialog(), Kiface(), KIFACE_I::KifaceSettings(), m_config, and m_plotOpts.

48  :
49  DIALOG_PLOT_BASE( aParent ), m_parent( aParent )
50 {
52  m_plotOpts = aParent->GetPlotSettings();
53  init_Dialog();
54 
55  GetSizer()->Fit( this );
56  GetSizer()->SetSizeHints( this );
57 }
DIALOG_PLOT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Plot"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
Definition: kicad.cpp:52
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
wxConfigBase * KifaceSettings() const
Definition: kiface_i.h:103
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
void init_Dialog()
Definition: dialog_plot.cpp:60
wxConfigBase * m_config
Definition: dialog_plot.h:43

Member Function Documentation

void DIALOG_PLOT::applyPlotSettings ( )
private

Definition at line 590 of file dialog_plot.cpp.

References LSET::AllCuMask(), CONFIG_PS_FINEWIDTH_ADJ, ConfigBaseWriteDouble(), FILLED, g_UserUnit, PCB_BASE_FRAME::GetBoard(), BOARD::GetEnabledLayers(), PCB_PLOT_PARAMS::GetHPGLPenDiameter(), PCB_PLOT_PARAMS::GetLineWidth(), getPlotFormat(), i, INCHES, PCB_PLOT_PARAMS::IsSameAs(), m_config, DIALOG_PLOT_BASE::m_drillShapeOpt, DIALOG_PLOT_BASE::m_DXF_plotModeOpt, DIALOG_PLOT_BASE::m_DXF_plotTextStrokeFontOpt, DIALOG_PLOT_BASE::m_excludeEdgeLayerOpt, DIALOG_PLOT_BASE::m_excludePadsFromSilkscreen, DIALOG_PLOT_BASE::m_fineAdjustXscaleOpt, DIALOG_PLOT_BASE::m_fineAdjustYscaleOpt, DIALOG_PLOT_BASE::m_forcePSA4OutputOpt, DIALOG_PLOT_BASE::m_generateGerberJobFile, DIALOG_PLOT_BASE::m_HPGLPenSizeOpt, DIALOG_PLOT_BASE::m_layerCheckListBox, m_layerList, DIALOG_PLOT_BASE::m_linesWidth, DIALOG_PLOT_BASE::m_messagesPanel, DIALOG_PLOT_BASE::m_outputDirectoryName, m_parent, DIALOG_PLOT_BASE::m_plotInvisibleText, DIALOG_PLOT_BASE::m_plotMirrorOpt, DIALOG_PLOT_BASE::m_plotModeOpt, DIALOG_PLOT_BASE::m_plotModuleRefOpt, DIALOG_PLOT_BASE::m_plotModuleValueOpt, DIALOG_PLOT_BASE::m_plotNoViaOnMaskOpt, m_plotOpts, DIALOG_PLOT_BASE::m_plotPSNegativeOpt, DIALOG_PLOT_BASE::m_plotSheetRef, DIALOG_PLOT_BASE::m_PSFineAdjustWidthOpt, m_PSWidthAdjust, DIALOG_PLOT_BASE::m_rbGerberFormat, DIALOG_PLOT_BASE::m_scaleOpt, DIALOG_PLOT_BASE::m_subtractMaskFromSilk, DIALOG_PLOT_BASE::m_useAuxOriginCheckBox, DIALOG_PLOT_BASE::m_useGerberExtensions, DIALOG_PLOT_BASE::m_useGerberNetAttributes, DIALOG_PLOT_BASE::m_useGerberX2Attributes, m_widthAdjustMaxValue, m_widthAdjustMinValue, m_XScaleAdjust, m_YScaleAdjust, PCB_EDIT_FRAME::OnModify(), OPTKEY_PLOT_X_FINESCALE_ADJ, OPTKEY_PLOT_Y_FINESCALE_ADJ, PLOT_MAX_SCALE, PLOT_MIN_SCALE, PLOTTEXTMODE_DEFAULT, PLOTTEXTMODE_NATIVE, REPORTER::Report(), WX_HTML_REPORT_PANEL::Reporter(), REPORTER::RPT_INFO, REPORTER::RPT_WARNING, PCB_PLOT_PARAMS::SetA4Output(), PCB_PLOT_PARAMS::SetCreateGerberJobFile(), setDouble(), PCB_PLOT_PARAMS::SetDrillMarksType(), PCB_PLOT_PARAMS::SetDXFPlotPolygonMode(), PCB_PLOT_PARAMS::SetExcludeEdgeLayer(), PCB_PLOT_PARAMS::SetFormat(), PCB_PLOT_PARAMS::SetGerberPrecision(), PCB_PLOT_PARAMS::SetHPGLPenDiameter(), PCB_PLOT_PARAMS::SetIncludeGerberNetlistInfo(), setInt(), PCB_PLOT_PARAMS::SetLayerSelection(), PCB_PLOT_PARAMS::SetLineWidth(), PCB_PLOT_PARAMS::SetMirror(), PCB_PLOT_PARAMS::SetNegative(), PCB_PLOT_PARAMS::SetOutputDirectory(), PCB_PLOT_PARAMS::SetPlotFrameRef(), PCB_PLOT_PARAMS::SetPlotInvisibleText(), PCB_PLOT_PARAMS::SetPlotMode(), PCB_PLOT_PARAMS::SetPlotPadsOnSilkLayer(), PCB_PLOT_PARAMS::SetPlotReference(), PCB_BASE_FRAME::SetPlotSettings(), PCB_PLOT_PARAMS::SetPlotValue(), PCB_PLOT_PARAMS::SetPlotViaOnMaskLayer(), PCB_PLOT_PARAMS::SetScaleSelection(), PCB_PLOT_PARAMS::SetSubtractMaskFromSilk(), PCB_PLOT_PARAMS::SetTextMode(), PCB_PLOT_PARAMS::SetUseAuxOrigin(), PCB_PLOT_PARAMS::SetUseGerberAttributes(), PCB_PLOT_PARAMS::SetUseGerberProtelExtensions(), SKETCH, StringFromValue(), To_User_Unit(), and ValueFromString().

Referenced by CreateDrillFile(), OnClose(), and Plot().

591 {
592  REPORTER& reporter = m_messagesPanel->Reporter();
593 
594  PCB_PLOT_PARAMS tempOptions;
595 
596  tempOptions.SetExcludeEdgeLayer( m_excludeEdgeLayerOpt->GetValue() );
597  tempOptions.SetSubtractMaskFromSilk( m_subtractMaskFromSilk->GetValue() );
598  tempOptions.SetPlotFrameRef( m_plotSheetRef->GetValue() );
599  tempOptions.SetPlotPadsOnSilkLayer( !m_excludePadsFromSilkscreen->GetValue() );
600  tempOptions.SetUseAuxOrigin( m_useAuxOriginCheckBox->GetValue() );
601  tempOptions.SetPlotValue( m_plotModuleValueOpt->GetValue() );
602  tempOptions.SetPlotReference( m_plotModuleRefOpt->GetValue() );
603  tempOptions.SetPlotInvisibleText( m_plotInvisibleText->GetValue() );
604  tempOptions.SetScaleSelection( m_scaleOpt->GetSelection() );
605  tempOptions.SetDrillMarksType( static_cast<PCB_PLOT_PARAMS::DrillMarksType>
606  ( m_drillShapeOpt->GetSelection() ) );
607  tempOptions.SetMirror( m_plotMirrorOpt->GetValue() );
608  tempOptions.SetPlotMode( m_plotModeOpt->GetSelection() == 1 ? SKETCH : FILLED );
609  tempOptions.SetDXFPlotPolygonMode( m_DXF_plotModeOpt->GetValue() );
610  tempOptions.SetPlotViaOnMaskLayer( m_plotNoViaOnMaskOpt->GetValue() );
611 
612  if( !m_DXF_plotTextStrokeFontOpt->IsEnabled() ) // Currently, only DXF supports this option
613  tempOptions.SetTextMode( PLOTTEXTMODE_DEFAULT );
614  else
615  tempOptions.SetTextMode( m_DXF_plotTextStrokeFontOpt->GetValue() ?
617 
618  // Update settings from text fields. Rewrite values back to the fields,
619  // since the values may have been constrained by the setters.
620 
621  // read HPLG pen size (this param is stored in mils)
622  wxString msg = m_HPGLPenSizeOpt->GetValue();
623  int tmp = ValueFromString( g_UserUnit, msg ) / IU_PER_MILS;
624 
625  if( !tempOptions.SetHPGLPenDiameter( tmp ) )
626  {
627  msg = StringFromValue( g_UserUnit, tempOptions.GetHPGLPenDiameter() * IU_PER_MILS );
628  m_HPGLPenSizeOpt->SetValue( msg );
629  msg.Printf( _( "HPGL pen size constrained." ) );
630  reporter.Report( msg, REPORTER::RPT_INFO );
631  }
632 
633  // Default linewidth
634  msg = m_linesWidth->GetValue();
635  tmp = ValueFromString( g_UserUnit, msg );
636 
637  if( !tempOptions.SetLineWidth( tmp ) )
638  {
639  msg = StringFromValue( g_UserUnit, tempOptions.GetLineWidth() );
640  m_linesWidth->SetValue( msg );
641  msg.Printf( _( "Default line width constrained." ) );
642  reporter.Report( msg, REPORTER::RPT_INFO );
643  }
644 
645  // X scale
646  double tmpDouble;
647  msg = m_fineAdjustXscaleOpt->GetValue();
648  msg.ToDouble( &tmpDouble );
649 
650  if( !setDouble( &m_XScaleAdjust, tmpDouble, PLOT_MIN_SCALE, PLOT_MAX_SCALE ) )
651  {
652  msg.Printf( wxT( "%f" ), m_XScaleAdjust );
653  m_fineAdjustXscaleOpt->SetValue( msg );
654  msg.Printf( _( "X scale constrained." ) );
655  reporter.Report( msg, REPORTER::RPT_INFO );
656  }
657 
659 
660  // Y scale
661  msg = m_fineAdjustYscaleOpt->GetValue();
662  msg.ToDouble( &tmpDouble );
663 
664  if( !setDouble( &m_YScaleAdjust, tmpDouble, PLOT_MIN_SCALE, PLOT_MAX_SCALE ) )
665  {
666  msg.Printf( wxT( "%f" ), m_YScaleAdjust );
667  m_fineAdjustYscaleOpt->SetValue( msg );
668  msg.Printf( _( "Y scale constrained." ) );
669  reporter.Report( msg, REPORTER::RPT_INFO );
670  }
671 
673 
674  // PS Width correction
675  msg = m_PSFineAdjustWidthOpt->GetValue();
676  int itmp = ValueFromString( g_UserUnit, msg );
677 
679  {
681  m_PSFineAdjustWidthOpt->SetValue( msg );
682  msg.Printf( _( "Width correction constrained. "
683  "The reasonable width correction value must be in a range of "
684  " [%+f; %+f] (%s) for current design rules." ),
687  ( g_UserUnit == INCHES ) ? wxT( "\"" ) : wxT( "mm" ) );
688  reporter.Report( msg, REPORTER::RPT_WARNING );
689  }
690 
691  // Store m_PSWidthAdjust in mm in user config
693  (double)m_PSWidthAdjust / IU_PER_MM );
694 
695  tempOptions.SetFormat( getPlotFormat() );
696 
697  tempOptions.SetUseGerberProtelExtensions( m_useGerberExtensions->GetValue() );
698  tempOptions.SetUseGerberAttributes( m_useGerberX2Attributes->GetValue() );
699  tempOptions.SetIncludeGerberNetlistInfo( m_useGerberNetAttributes->GetValue() );
700  tempOptions.SetCreateGerberJobFile( m_generateGerberJobFile->GetValue() );
701 
702  tempOptions.SetGerberPrecision( m_rbGerberFormat->GetSelection() == 0 ? 5 : 6 );
703 
704  LSET selectedLayers;
705  for( unsigned i = 0; i < m_layerList.size(); i++ )
706  {
707  if( m_layerCheckListBox->IsChecked( i ) )
708  selectedLayers.set( m_layerList[i] );
709  }
710  // Get a list of copper layers that aren't being used by inverting enabled layers.
711  LSET disabledCopperLayers = LSET::AllCuMask() & ~m_parent->GetBoard()->GetEnabledLayers();
712  // Enable all of the disabled copper layers.
713  // If someone enables more copper layers they will be selected by default.
714  selectedLayers = selectedLayers | disabledCopperLayers;
715  tempOptions.SetLayerSelection( selectedLayers );
716 
717  tempOptions.SetNegative( m_plotPSNegativeOpt->GetValue() );
718  tempOptions.SetA4Output( m_forcePSA4OutputOpt->GetValue() );
719 
720  // Set output directory and replace backslashes with forward ones
721  wxString dirStr;
722  dirStr = m_outputDirectoryName->GetValue();
723  dirStr.Replace( wxT( "\\" ), wxT( "/" ) );
724  tempOptions.SetOutputDirectory( dirStr );
725 
726  if( !m_plotOpts.IsSameAs( tempOptions, false ) )
727  {
728  // First, mark board as modified only for parameters saved in file
729  if( !m_plotOpts.IsSameAs( tempOptions, true ) )
730  m_parent->OnModify();
731 
732  // Now, save any change, for the session
733  m_parent->SetPlotSettings( tempOptions );
734  m_plotOpts = tempOptions;
735  }
736 }
void SetTextMode(PlotTextMode aVal)
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Function AllCuMask returns a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition: lset.cpp:673
void SetUseGerberProtelExtensions(bool aUse)
void SetPlotReference(bool aFlag)
void SetExcludeEdgeLayer(bool aFlag)
WX_HTML_REPORT_PANEL * m_messagesPanel
void SetScaleSelection(int aSelection)
LSEQ m_layerList
Definition: dialog_plot.h:44
void SetIncludeGerberNetlistInfo(bool aUse)
void SetDXFPlotPolygonMode(bool aFlag)
wxTextCtrl * m_linesWidth
double m_YScaleAdjust
Definition: dialog_plot.h:47
virtual void OnModify() override
Function OnModify must be called after a board change to set the modified flag.
wxTextCtrl * m_fineAdjustYscaleOpt
int GetHPGLPenDiameter() const
wxCheckBox * m_useGerberExtensions
void SetGerberPrecision(int aPrecision)
void SetPlotViaOnMaskLayer(bool aFlag)
#define OPTKEY_PLOT_Y_FINESCALE_ADJ
Definition: pcbplot.h:62
void SetLayerSelection(LSET aSelection)
void SetUseAuxOrigin(bool aAux)
wxCheckBox * m_plotPSNegativeOpt
#define PLOT_MIN_SCALE
Definition: pcbplot.h:68
wxRadioBox * m_rbGerberFormat
wxString StringFromValue(EDA_UNITS_T aUnit, int aValue, bool aAddUnitSymbol)
Function StringFromValue returns the string from aValue according to units (inch, mm ...
Definition: base_units.cpp:205
void SetFormat(PlotFormat aFormat)
PlotFormat getPlotFormat()
wxCheckBox * m_excludeEdgeLayerOpt
void SetCreateGerberJobFile(bool aCreate)
void SetMirror(bool aFlag)
BOARD * GetBoard() const
wxCheckBox * m_plotMirrorOpt
void SetDrillMarksType(DrillMarksType aVal)
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:61
LSET GetEnabledLayers() const
Function GetEnabledLayers is a proxy function that calls the corresponding function in m_BoardSetting...
wxCheckBox * m_useGerberX2Attributes
void SetA4Output(int aForce)
double m_XScaleAdjust
Definition: dialog_plot.h:45
bool SetHPGLPenDiameter(int aValue)
wxCheckBox * m_DXF_plotModeOpt
bool SetLineWidth(int aValue)
void SetPlotValue(bool aFlag)
wxCheckBox * m_plotSheetRef
void SetPlotFrameRef(bool aFlag)
wxTextCtrl * m_PSFineAdjustWidthOpt
Class LSET is a set of PCB_LAYER_IDs.
#define OPTKEY_PLOT_X_FINESCALE_ADJ
Definition: pcbplot.h:61
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
int GetLineWidth() const
int m_widthAdjustMaxValue
Definition: dialog_plot.h:54
Definition: common.h:145
static bool setDouble(double *aResult, double aValue, double aMin, double aMax)
REPORTER & Reporter()
returns the reporter object that reports to this panel
#define PLOT_MAX_SCALE
Definition: pcbplot.h:69
int m_PSWidthAdjust
Definition: dialog_plot.h:49
int ValueFromString(EDA_UNITS_T aUnits, const wxString &aTextValue)
Function ValueFromString converts aTextValue in aUnits to internal units used by the application...
Definition: base_units.cpp:370
wxCheckBox * m_forcePSA4OutputOpt
void SetSubtractMaskFromSilk(bool aSubtract)
#define CONFIG_PS_FINEWIDTH_ADJ
Definition: pcbplot.h:63
virtual void SetPlotSettings(const PCB_PLOT_PARAMS &aSettings)
wxCheckBox * m_useGerberNetAttributes
void SetOutputDirectory(wxString aDir)
int m_widthAdjustMinValue
Definition: dialog_plot.h:53
void SetUseGerberAttributes(bool aUse)
wxCheckBox * m_generateGerberJobFile
Class PCB_PLOT_PARAMS handles plot parameters and options when plotting/printing a board...
wxTextCtrl * m_outputDirectoryName
void SetPlotInvisibleText(bool aFlag)
bool IsSameAs(const PCB_PLOT_PARAMS &aPcbPlotParams, bool aCompareOnlySavedPrms) const
Compare current settings to aPcbPlotParams, including not saved parameters in brd file...
wxCheckBox * m_DXF_plotTextStrokeFontOpt
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
void SetNegative(bool aFlag)
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:57
wxChoice * m_scaleOpt
wxCheckBox * m_plotModuleRefOpt
void ConfigBaseWriteDouble(wxConfigBase *aConfig, const wxString &aKey, double aValue)
Function ConfigBaseWriteDouble This is a helper function to write doubles in config We cannot use wxC...
void SetPlotPadsOnSilkLayer(bool aFlag)
void SetPlotMode(EDA_DRAW_MODE_T aPlotMode)
wxCheckBox * m_subtractMaskFromSilk
wxCheckBox * m_plotNoViaOnMaskOpt
wxCheckBox * m_plotModuleValueOpt
wxChoice * m_drillShapeOpt
wxTextCtrl * m_fineAdjustXscaleOpt
static bool setInt(int *aResult, int aValue, int aMin, int aMax)
wxTextCtrl * m_HPGLPenSizeOpt
size_t i
Definition: json11.cpp:597
wxCheckBox * m_plotInvisibleText
wxCheckBox * m_useAuxOriginCheckBox
wxChoice * m_plotModeOpt
wxConfigBase * m_config
Definition: dialog_plot.h:43
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_UNDEFINED)=0
Function Report is a pure virtual function to override in the derived object.
double To_User_Unit(EDA_UNITS_T aUnit, double aValue)
Function To_User_Unit convert aValue in internal units to the appropriate user units defined by aUnit...
Definition: base_units.cpp:91
wxCheckBox * m_excludePadsFromSilkscreen
wxCheckListBox * m_layerCheckListBox
void DIALOG_PLOT::CreateDrillFile ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 317 of file dialog_plot.cpp.

References applyPlotSettings(), PCB_BASE_FRAME::GetPlotSettings(), PCB_EDIT_FRAME::InstallDrillFrame(), m_parent, m_plotOpts, and reInitDialog().

318 {
319  // Be sure drill file use the same settings (axis option, plot directory)
320  // than plot files:
322  m_parent->InstallDrillFrame( event );
323 
324  // a few plot settings can be modified: take them in account
326  reInitDialog();
327 }
virtual const PCB_PLOT_PARAMS & GetPlotSettings() const
Function GetPlotSettings returns the PCB_PLOT_PARAMS for the BOARD owned by this frame.
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
void reInitDialog()
void applyPlotSettings()
void InstallDrillFrame(wxCommandEvent &event)
void DIALOG_PLOT_BASE::DIALOG_PLOT_BASEOnContextMenu ( wxMouseEvent &  event)
inlineinherited

Definition at line 142 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

143  {
144  this->PopupMenu( m_popMenu, event.GetPosition() );
145  }
bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 205 of file dialog_shim.cpp.

Referenced by DIALOG_PRINT_USING_PRINTER::InitValues(), and DIALOG_SHIM::IsQuasiModal().

206 {
207  // so we can do logging of this state change:
208 
209 #if defined(DEBUG)
210  const char* type_id = typeid( *this ).name();
211  printf( "wxDialog %s: %s\n", type_id, enable ? "enabled" : "disabled" );
212 #endif
213 
214  return wxDialog::Enable( enable );
215 }
void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 610 of file dialog_shim.cpp.

References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by DIALOG_SHIM::OnButton(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCancelButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCancelButtonClick(), DIALOG_EDIT_ONE_FIELD::OnCancelClick(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCloseDialog(), DIALOG_EDIT_ONE_FIELD::OnCloseDialog(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCloseDialog(), DIALOG_CHOOSE_COMPONENT::OnCloseTimer(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick(), DIALOG_EDIT_ONE_FIELD::OnOkClick(), DIALOG_EXCHANGE_FOOTPRINTS::OnQuit(), DIALOG_CHOOSE_COMPONENT::OnSchViewDClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), and DIALOG_SHIM::~DIALOG_SHIM().

611 {
612  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
613  // handle validation in the same way as other dialogs.
614  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
615  return;
616 
617  SetReturnCode( retCode );
618 
619  if( !IsQuasiModal() )
620  {
621  wxFAIL_MSG( wxT( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal wasn't called" ) );
622  return;
623  }
624 
625  m_qmodal_showing = false;
626 
627  if( m_qmodal_loop )
628  {
629  if( m_qmodal_loop->IsRunning() )
630  m_qmodal_loop->Exit( 0 );
631  else
632  m_qmodal_loop->ScheduleExit( 0 );
633 
634  m_qmodal_loop = NULL;
635  }
636 
639 
640  Show( false );
641 }
bool m_qmodal_showing
Definition: dialog_shim.h:155
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:154
bool IsQuasiModal()
Definition: dialog_shim.h:103
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:156
void DIALOG_SHIM::FinishDialogSettings ( )
protectedinherited

In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls.

FinishDialogSettings must be called from derived classes, when all widgets are initialized, and therefore their size fixed. If TransferDataToWindow() is used to initialize widgets, at end of TransferDataToWindow, or better at end of a wxInitDialogEvent handler

In any case, the best way is to call it in a wxInitDialogEvent handler after calling TransfertDataToWindow(), which is the default wxInitDialogEvent handler wxDialog

Definition at line 104 of file dialog_shim.cpp.

References PCAD2KICAD::Center.

Referenced by COLOR4D_PICKER_DLG::COLOR4D_PICKER_DLG(), DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS(), DIALOG_ANNOTATE::DIALOG_ANNOTATE(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DESIGN_RULES::DIALOG_DESIGN_RULES(), DIALOG_DIMENSION_EDITOR::DIALOG_DIMENSION_EDITOR(), DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EDIT_LINE_STYLE::DIALOG_EDIT_LINE_STYLE(), DIALOG_EESCHEMA_OPTIONS::DIALOG_EESCHEMA_OPTIONS(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_LIB_NEW_COMPONENT::DIALOG_LIB_NEW_COMPONENT(), DIALOG_LIBEDIT_OPTIONS::DIALOG_LIBEDIT_OPTIONS(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PADS_MASK_CLEARANCE::DIALOG_PADS_MASK_CLEARANCE(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCH_EDIT_SHEET_PIN::DIALOG_SCH_EDIT_SHEET_PIN(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SELECT_PRETTY_LIB::DIALOG_SELECT_PRETTY_LIB(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_EDIT_ONE_FIELD::init(), DIALOG_SHIM::IsQuasiModal(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_LIB_EDIT_PIN::OnInitDialog(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnInitDialog(), DIALOG_TRACK_VIA_PROPERTIES::OnInitDlg(), DIALOG_GRAPHIC_ITEMS_OPTIONS::OnInitDlg(), DIALOG_EDIT_FPTEXT::OnInitDlg(), DIALOG_SET_GRID::OnInitDlg(), DIALOG_PCB_TEXT_PROPERTIES::OnInitDlg(), DIALOG_PRINT_FOR_MODEDIT::OnInitDlg(), DIALOG_FOOTPRINT_FP_EDITOR::OnInitDlg(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_SIM_SETTINGS::onInitDlg(), DIALOG_SPICE_MODEL::onInitDlg(), DIALOG_FOOTPRINT_BOARD_EDITOR::OnInitDlg(), DIALOG_PRINT_USING_PRINTER::OnInitDlg(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnInitDlg(), TARGET_PROPERTIES_DIALOG_EDITOR::TARGET_PROPERTIES_DIALOG_EDITOR(), DIALOG_SIGNAL_LIST::TransferDataToWindow(), and DIALOG_UPDATE_FIELDS::TransferDataToWindow().

105 {
106  // must be called from the constructor of derived classes,
107  // when all widgets are initialized, and therefore their size fixed
108 
109  // SetSizeHints fixes the minimal size of sizers in the dialog
110  // (SetSizeHints calls Fit(), so no need to call it)
111  GetSizer()->SetSizeHints( this );
112 
113  // the default position, when calling the first time the dlg
114  Center();
115 }
PlotFormat DIALOG_PLOT::getPlotFormat ( )
private

Definition at line 389 of file dialog_plot.cpp.

References DIALOG_PLOT_BASE::m_plotFormatOpt, PLOT_FORMAT_DXF, PLOT_FORMAT_GERBER, PLOT_FORMAT_HPGL, PLOT_FORMAT_PDF, PLOT_FORMAT_POST, and PLOT_FORMAT_SVG.

Referenced by applyPlotSettings(), and SetPlotFormat().

390 {
391  // plot format id's are ordered like displayed in m_plotFormatOpt
392  static const PlotFormat plotFmt[] =
393  {
400  };
401 
402  return plotFmt[ m_plotFormatOpt->GetSelection() ];
403 }
PlotFormat
Enum PlotFormat is the set of supported output plot formats.
Definition: plotter.h:50
wxChoice * m_plotFormatOpt
int DIALOG_SHIM::HorizPixelsFromDU ( int  x)
protectedinherited

Convert an integer number of dialog units to pixels, horizontally.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 125 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), and DIALOG_SHIM::IsQuasiModal().

126 {
127  wxSize sz( x, 0 );
128  return ConvertDialogToPixels( sz ).x;
129 }
void DIALOG_PLOT::init_Dialog ( )
private

Definition at line 60 of file dialog_plot.cpp.

References AddUnitSymbol(), CONFIG_PS_FINEWIDTH_ADJ, g_UserUnit, PCB_PLOT_PARAMS::GetA4Output(), PCB_BASE_FRAME::GetBoard(), PCB_PLOT_PARAMS::GetCreateGerberJobFile(), BOARD::GetDesignSettings(), PCB_PLOT_PARAMS::GetDrillMarksType(), PCB_PLOT_PARAMS::GetDXFPlotPolygonMode(), BOARD::GetEnabledLayers(), PCB_PLOT_PARAMS::GetExcludeEdgeLayer(), PCB_PLOT_PARAMS::GetFormat(), PCB_PLOT_PARAMS::GetGerberPrecision(), PCB_PLOT_PARAMS::GetHPGLPenDiameter(), PCB_PLOT_PARAMS::GetIncludeGerberNetlistInfo(), BOARD::GetLayerName(), PCB_PLOT_PARAMS::GetLayerSelection(), PCB_PLOT_PARAMS::GetLineWidth(), PCB_PLOT_PARAMS::GetMirror(), PCB_PLOT_PARAMS::GetNegative(), PCB_PLOT_PARAMS::GetPlotFrameRef(), PCB_PLOT_PARAMS::GetPlotInvisibleText(), PCB_PLOT_PARAMS::GetPlotMode(), PCB_PLOT_PARAMS::GetPlotPadsOnSilkLayer(), PCB_PLOT_PARAMS::GetPlotReference(), PCB_PLOT_PARAMS::GetPlotValue(), PCB_PLOT_PARAMS::GetPlotViaOnMaskLayer(), PCB_PLOT_PARAMS::GetScaleSelection(), BOARD_DESIGN_SETTINGS::GetSmallestClearanceValue(), PCB_PLOT_PARAMS::GetSubtractMaskFromSilk(), PCB_PLOT_PARAMS::GetTextMode(), PCB_PLOT_PARAMS::GetUseGerberAttributes(), PCB_PLOT_PARAMS::GetUseGerberProtelExtensions(), KiBitmap(), KiROUND(), DIALOG_PLOT_BASE::m_browseButton, m_config, DIALOG_PLOT_BASE::m_drillShapeOpt, DIALOG_PLOT_BASE::m_DXF_plotModeOpt, DIALOG_PLOT_BASE::m_DXF_plotTextStrokeFontOpt, DIALOG_PLOT_BASE::m_excludeEdgeLayerOpt, DIALOG_PLOT_BASE::m_excludePadsFromSilkscreen, DIALOG_PLOT_BASE::m_fineAdjustXscaleOpt, DIALOG_PLOT_BASE::m_fineAdjustYscaleOpt, DIALOG_PLOT_BASE::m_forcePSA4OutputOpt, DIALOG_PLOT_BASE::m_generateGerberJobFile, DIALOG_PLOT_BASE::m_HPGLPenSizeOpt, DIALOG_PLOT_BASE::m_layerCheckListBox, m_layerList, DIALOG_PLOT_BASE::m_linesWidth, m_parent, DIALOG_PLOT_BASE::m_plotFormatOpt, DIALOG_PLOT_BASE::m_plotInvisibleText, DIALOG_PLOT_BASE::m_plotMirrorOpt, DIALOG_PLOT_BASE::m_plotModuleRefOpt, DIALOG_PLOT_BASE::m_plotModuleValueOpt, DIALOG_PLOT_BASE::m_plotNoViaOnMaskOpt, m_plotOpts, DIALOG_PLOT_BASE::m_plotPSNegativeOpt, DIALOG_PLOT_BASE::m_plotSheetRef, DIALOG_PLOT_BASE::m_PSFineAdjustWidthOpt, m_PSWidthAdjust, DIALOG_PLOT_BASE::m_rbGerberFormat, DIALOG_PLOT_BASE::m_scaleOpt, BOARD_DESIGN_SETTINGS::m_SolderMaskMargin, DIALOG_PLOT_BASE::m_SolderMaskMarginCurrValue, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, DIALOG_PLOT_BASE::m_SolderMaskMinWidthCurrValue, DIALOG_PLOT_BASE::m_subtractMaskFromSilk, DIALOG_PLOT_BASE::m_textDefaultPenSize, DIALOG_PLOT_BASE::m_textPenSize, DIALOG_PLOT_BASE::m_textPSFineAdjustWidth, BOARD_DESIGN_SETTINGS::m_TrackMinWidth, DIALOG_PLOT_BASE::m_useGerberExtensions, DIALOG_PLOT_BASE::m_useGerberNetAttributes, DIALOG_PLOT_BASE::m_useGerberX2Attributes, m_widthAdjustMaxValue, m_widthAdjustMinValue, m_XScaleAdjust, m_YScaleAdjust, OnSetScaleOpt(), OPTKEY_PLOT_X_FINESCALE_ADJ, OPTKEY_PLOT_Y_FINESCALE_ADJ, PLOT_FORMAT_DXF, PLOT_FORMAT_GERBER, PLOT_FORMAT_HPGL, PLOT_FORMAT_PDF, PLOT_FORMAT_POST, PLOT_FORMAT_SVG, PLOT_MAX_SCALE, PLOT_MIN_SCALE, PLOTTEXTMODE_DEFAULT, reInitDialog(), SetPlotFormat(), setPlotModeChoiceSelection(), StringFromValue(), To_User_Unit(), and LSET::UIOrder().

Referenced by DIALOG_PLOT().

61 {
62  BOARD* board = m_parent->GetBoard();
63  wxString msg;
64  wxFileName fileName;
65 
68 
69  m_browseButton->SetBitmap( KiBitmap( browse_files_xpm ) );
70 
71  // m_PSWidthAdjust is stored in mm in user config
72  double dtmp;
73  m_config->Read( CONFIG_PS_FINEWIDTH_ADJ, &dtmp, 0 );
74  m_PSWidthAdjust = KiROUND( dtmp * IU_PER_MM );
75 
76  // The reasonable width correction value must be in a range of
77  // [-(MinTrackWidth-1), +(MinClearanceValue-1)] decimils.
80 
81  switch( m_plotOpts.GetFormat() )
82  {
83  default:
84  case PLOT_FORMAT_GERBER:
85  m_plotFormatOpt->SetSelection( 0 );
86  break;
87 
88  case PLOT_FORMAT_POST:
89  m_plotFormatOpt->SetSelection( 1 );
90  break;
91 
92  case PLOT_FORMAT_SVG:
93  m_plotFormatOpt->SetSelection( 2 );
94  break;
95 
96  case PLOT_FORMAT_DXF:
97  m_plotFormatOpt->SetSelection( 3 );
98  break;
99 
100  case PLOT_FORMAT_HPGL:
101  m_plotFormatOpt->SetSelection( 4 );
102  break;
103 
104  case PLOT_FORMAT_PDF:
105  m_plotFormatOpt->SetSelection( 5 );
106  break;
107  }
108 
110  m_SolderMaskMarginCurrValue->SetLabel( msg );
112  m_SolderMaskMinWidthCurrValue->SetLabel( msg );
113 
114  // Set units and value for HPGL pen size (this param in in mils).
117  m_plotOpts.GetHPGLPenDiameter() * IU_PER_MILS );
118  m_HPGLPenSizeOpt->AppendText( msg );
119 
122  m_linesWidth->AppendText( msg );
123 
124  // Set units for PS global width correction.
126 
127  // Test for a reasonable scale value. Set to 1 if problem
131 
132  msg.Printf( wxT( "%f" ), m_XScaleAdjust );
133  m_fineAdjustXscaleOpt->AppendText( msg );
134 
135  msg.Printf( wxT( "%f" ), m_YScaleAdjust );
136  m_fineAdjustYscaleOpt->AppendText( msg );
137 
138  // Test for a reasonable PS width correction value. Set to 0 if problem.
139  if( m_PSWidthAdjust < m_widthAdjustMinValue || m_PSWidthAdjust > m_widthAdjustMaxValue )
140  m_PSWidthAdjust = 0.;
141 
142  msg.Printf( wxT( "%f" ), To_User_Unit( g_UserUnit, m_PSWidthAdjust ) );
143  m_PSFineAdjustWidthOpt->AppendText( msg );
144 
147 
148  // Could devote a PlotOrder() function in place of UIOrder().
149  m_layerList = board->GetEnabledLayers().UIOrder();
150 
151  // Populate the check list box by all enabled layers names
152  for( LSEQ seq = m_layerList; seq; ++seq )
153  {
154  PCB_LAYER_ID layer = *seq;
155 
156  int checkIndex = m_layerCheckListBox->Append( board->GetLayerName( layer ) );
157 
158  if( m_plotOpts.GetLayerSelection()[layer] )
159  m_layerCheckListBox->Check( checkIndex );
160  }
161 
162  // Option for using proper Gerber extensions
164 
165  // Option for including Gerber attributes (from Gerber X2 format) in the output
167 
168  // Option for including Gerber netlist info (from Gerber X2 format) in the output
170 
171  // Grey out if m_useGerberX2Attributes is not checked
172  m_useGerberNetAttributes->Enable( m_useGerberX2Attributes->GetValue() );
173 
174  // Option to generate a Gerber job file
176 
177  // Gerber precision for coordinates
178  m_rbGerberFormat->SetSelection( m_plotOpts.GetGerberPrecision() == 5 ? 0 : 1 );
179 
180  // Option for excluding contents of "Edges Pcb" layer
182 
183  // Option to exclude pads from silkscreen layers
185 
187 
188  // Option to plot page references:
190 
191  // Options to plot texts on footprints
195 
196  // Options to plot pads and vias holes
197  m_drillShapeOpt->SetSelection( m_plotOpts.GetDrillMarksType() );
198 
199  // Scale option
200  m_scaleOpt->SetSelection( m_plotOpts.GetScaleSelection() );
201 
202  // Plot mode
204 
205  // Plot outline mode
207 
208  // Plot text mode
210 
211  // Plot mirror option
212  m_plotMirrorOpt->SetValue( m_plotOpts.GetMirror() );
213 
214  // Put vias on mask layer
216 
217  // Initialize a few other parameters, which can also be modified
218  // from the drill dialog
219  reInitDialog();
220 
221  // Update options values:
222  wxCommandEvent cmd_event;
223  SetPlotFormat( cmd_event );
224  OnSetScaleOpt( cmd_event );
225 }
bool GetUseGerberProtelExtensions() const
wxStaticText * m_textPSFineAdjustWidth
LSEQ m_layerList
Definition: dialog_plot.h:44
int m_SolderMaskMargin
Solder mask margin.
wxTextCtrl * m_linesWidth
bool GetMirror() const
double m_YScaleAdjust
Definition: dialog_plot.h:47
bool GetSubtractMaskFromSilk() const
wxTextCtrl * m_fineAdjustYscaleOpt
int GetHPGLPenDiameter() const
wxCheckBox * m_useGerberExtensions
wxStaticText * m_SolderMaskMarginCurrValue
static int KiROUND(double v)
KiROUND rounds a floating point number to an int using "round halfway cases away from zero"...
Definition: common.h:107
#define OPTKEY_PLOT_Y_FINESCALE_ADJ
Definition: pcbplot.h:62
int GetSmallestClearanceValue()
Function GetSmallestClearanceValue.
bool GetUseGerberAttributes() const
wxStaticText * m_textPenSize
wxCheckBox * m_plotPSNegativeOpt
#define PLOT_MIN_SCALE
Definition: pcbplot.h:68
wxRadioBox * m_rbGerberFormat
wxString StringFromValue(EDA_UNITS_T aUnit, int aValue, bool aAddUnitSymbol)
Function StringFromValue returns the string from aValue according to units (inch, mm ...
Definition: base_units.cpp:205
wxCheckBox * m_excludeEdgeLayerOpt
BOARD * GetBoard() const
wxCheckBox * m_plotMirrorOpt
LSET GetLayerSelection() const
wxChoice * m_plotFormatOpt
LSET GetEnabledLayers() const
Function GetEnabledLayers is a proxy function that calls the corresponding function in m_BoardSetting...
bool GetPlotValue() const
wxCheckBox * m_useGerberX2Attributes
double m_XScaleAdjust
Definition: dialog_plot.h:45
wxCheckBox * m_DXF_plotModeOpt
bool GetA4Output() const
bool GetExcludeEdgeLayer() const
wxCheckBox * m_plotSheetRef
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Function KiBitmap constructs a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:78
void SetPlotFormat(wxCommandEvent &event) override
wxTextCtrl * m_PSFineAdjustWidthOpt
DrillMarksType GetDrillMarksType() const
PCB_LAYER_ID
A quick note on layer IDs:
bool GetIncludeGerberNetlistInfo() const
#define OPTKEY_PLOT_X_FINESCALE_ADJ
Definition: pcbplot.h:61
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
int GetLineWidth() const
int m_widthAdjustMaxValue
Definition: dialog_plot.h:54
wxStaticText * m_SolderMaskMinWidthCurrValue
PlotTextMode GetTextMode() const
int m_TrackMinWidth
track min value for width ((min copper size value
#define PLOT_MAX_SCALE
Definition: pcbplot.h:69
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Function GetLayerName returns the name of a layer given by aLayer.
int m_PSWidthAdjust
Definition: dialog_plot.h:49
wxCheckBox * m_forcePSA4OutputOpt
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Function GetDesignSettings.
Definition: class_board.h:532
#define CONFIG_PS_FINEWIDTH_ADJ
Definition: pcbplot.h:63
void setPlotModeChoiceSelection(EDA_DRAW_MODE_T aPlotMode)
Definition: dialog_plot.h:79
bool GetPlotViaOnMaskLayer() const
int GetScaleSelection() const
void OnSetScaleOpt(wxCommandEvent &event) override
bool GetCreateGerberJobFile() const
wxCheckBox * m_useGerberNetAttributes
bool GetPlotReference() const
int m_widthAdjustMinValue
Definition: dialog_plot.h:53
PlotFormat GetFormat() const
wxCheckBox * m_generateGerberJobFile
Class LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
wxCheckBox * m_DXF_plotTextStrokeFontOpt
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
bool GetDXFPlotPolygonMode() const
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:57
wxChoice * m_scaleOpt
void reInitDialog()
wxCheckBox * m_plotModuleRefOpt
wxCheckBox * m_subtractMaskFromSilk
wxCheckBox * m_plotNoViaOnMaskOpt
wxCheckBox * m_plotModuleValueOpt
bool GetPlotInvisibleText() const
wxChoice * m_drillShapeOpt
void AddUnitSymbol(wxStaticText &Stext, EDA_UNITS_T aUnit)
Definition: base_units.cpp:515
wxTextCtrl * m_fineAdjustXscaleOpt
Class BOARD holds information pertinent to a Pcbnew printed circuit board.
Definition: class_board.h:169
bool GetNegative() const
bool GetPlotFrameRef() const
wxTextCtrl * m_HPGLPenSizeOpt
wxCheckBox * m_plotInvisibleText
EDA_DRAW_MODE_T GetPlotMode() const
bool GetPlotPadsOnSilkLayer() const
wxConfigBase * m_config
Definition: dialog_plot.h:43
double To_User_Unit(EDA_UNITS_T aUnit, double aValue)
Function To_User_Unit convert aValue in internal units to the appropriate user units defined by aUnit...
Definition: base_units.cpp:91
wxCheckBox * m_excludePadsFromSilkscreen
wxBitmapButton * m_browseButton
wxStaticText * m_textDefaultPenSize
wxCheckListBox * m_layerCheckListBox
int m_SolderMaskMinWidth
Solder mask min width.
LSEQ UIOrder() const
Definition: lset.cpp:786
int GetGerberPrecision() const
KIWAY& KIWAY_HOLDER::Kiway ( ) const
inlineinherited

Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in.

A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.

Definition at line 60 of file kiway_player.h.

References KIWAY_HOLDER::m_kiway, KIWAY_HOLDER::Prj(), and KIWAY_HOLDER::SetKiway().

Referenced by SCH_EDIT_FRAME::AppendSchematic(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), CVPCB_MAINFRAME::CreateScreenCmp(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_SHIM::DIALOG_SHIM(), EDIT_TOOL::editFootprintInFpEditor(), SCH_EDIT_FRAME::EditSheet(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), LIB_MANAGER::GetBufferedPart(), FOOTPRINT_EDIT_FRAME::GetIconScale(), LIB_MANAGER::getLibraryBuffer(), FOOTPRINT_EDIT_FRAME::GetPlotSettings(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers(), SCH_EDIT_FRAME::KiwayMailIn(), KIWAY_PLAYER::language_change(), CVPCB_MAINFRAME::LoadFootprintFiles(), KIWAY_PLAYER::OnChangeIconsOptions(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_CHOOSE_COMPONENT::OnIdle(), KICAD_MANAGER_FRAME::OnImportEagleFiles(), SCH_EDIT_FRAME::OnLeftClick(), SCH_BASE_FRAME::OnOpenLibraryViewer(), SCH_EDIT_FRAME::OnSimulate(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateReplaceModuleInBoard(), SCH_EDIT_FRAME::OpenProjectFiles(), KIWAY_HOLDER::Prj(), PCB_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Special_Functions(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), FOOTPRINT_WIZARD_FRAME::ReCreateVToolbar(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDIT_FRAME::SaveEEFile(), CVPCB_MAINFRAME::SaveFootprintAssociation(), SCH_BASE_FRAME::SelectComponentFromLibBrowser(), SCH_EDIT_FRAME::SendCrossProbeNetName(), PCB_EDIT_FRAME::SendCrossProbeNetName(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_EDIT_FRAME::SetPlotSettings(), DISPLAY_FOOTPRINTS_FRAME::Show3D_Frame(), FOOTPRINT_EDIT_FRAME::Show3D_Frame(), FOOTPRINT_VIEWER_FRAME::Show3D_Frame(), FOOTPRINT_WIZARD_FRAME::Show3D_Frame(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::UpdatePart(), and DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint().

61  {
62  wxASSERT( m_kiway ); // smoke out bugs in Debug build, then Release runs fine.
63  return *m_kiway;
64  }
KIWAY * m_kiway
Definition: kiway_player.h:85
void DIALOG_PLOT::OnChangeDXFPlotMode ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 330 of file dialog_plot.cpp.

References DIALOG_PLOT_BASE::m_DXF_plotModeOpt, and DIALOG_PLOT_BASE::m_DXF_plotTextStrokeFontOpt.

Referenced by SetPlotFormat().

331 {
332  // m_DXF_plotTextStrokeFontOpt is disabled if m_DXF_plotModeOpt
333  // is checked (plot in DXF polygon mode)
334  m_DXF_plotTextStrokeFontOpt->Enable( !m_DXF_plotModeOpt->GetValue() );
335 
336  // if m_DXF_plotTextStrokeFontOpt option is disabled (plot DXF in polygon mode),
337  // force m_DXF_plotTextStrokeFontOpt to true to use Pcbnew stroke font
338  if( !m_DXF_plotTextStrokeFontOpt->IsEnabled() )
339  m_DXF_plotTextStrokeFontOpt->SetValue( true );
340 }
wxCheckBox * m_DXF_plotModeOpt
wxCheckBox * m_DXF_plotTextStrokeFontOpt
void DIALOG_PLOT::OnClose ( wxCloseEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 248 of file dialog_plot.cpp.

References applyPlotSettings().

249 {
251 
252  // Put an wxID_OK event through the dialog infrastrucutre
253  event.SetId( wxID_OK );
254  event.Skip();
255 }
void applyPlotSettings()
void DIALOG_PLOT::OnGerberX2Checked ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 739 of file dialog_plot.cpp.

References DIALOG_PLOT_BASE::m_useGerberNetAttributes, and DIALOG_PLOT_BASE::m_useGerberX2Attributes.

740 {
741  // m_useGerberNetAttributes is useless if m_useGerberX2Attributes
742  // is not checked. So disabled (greyed out) when Gerber X2 gets unchecked
743  // to make it clear to the user.
744  if( m_useGerberX2Attributes->GetValue() )
745  {
746  m_useGerberNetAttributes->Enable( true );
747  }
748  else
749  {
750  m_useGerberNetAttributes->Enable( false );
751  m_useGerberNetAttributes->SetValue( false );
752  }
753 }
wxCheckBox * m_useGerberX2Attributes
wxCheckBox * m_useGerberNetAttributes
virtual void DIALOG_PLOT_BASE::OnInitDialog ( wxInitDialogEvent &  event)
inlineprotectedvirtualinherited

Definition at line 123 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and DIALOG_PLOT_BASE::~DIALOG_PLOT_BASE().

123 { event.Skip(); }
void DIALOG_PLOT::OnOutputDirectoryBrowseClicked ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 355 of file dialog_plot.cpp.

References PROJECT::AbsolutePath(), PCB_BASE_FRAME::GetBoard(), GetChars(), BOARD::GetFileName(), DIALOG_PLOT_BASE::m_outputDirectoryName, m_parent, and KIWAY_HOLDER::Prj().

356 {
357  // Build the absolute path of current output plot directory
358  // to preselect it when opening the dialog.
359  wxFileName fn( m_outputDirectoryName->GetValue() );
360  wxString path = Prj().AbsolutePath( m_outputDirectoryName->GetValue() );
361 
362  wxDirDialog dirDialog( this, _( "Select Output Directory" ), path );
363 
364  if( dirDialog.ShowModal() == wxID_CANCEL )
365  return;
366 
367  wxFileName dirName = wxFileName::DirName( dirDialog.GetPath() );
368 
369  fn = Prj().AbsolutePath( m_parent->GetBoard()->GetFileName() );
370  wxString defaultPath = fn.GetPathWithSep();
371  wxString msg;
372  msg.Printf( _( "Do you want to use a path relative to\n\"%s\"" ),
373  GetChars( defaultPath ) );
374 
375  wxMessageDialog dialog( this, msg, _( "Plot Output Directory" ),
376  wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
377 
378  if( dialog.ShowModal() == wxID_YES )
379  {
380  if( !dirName.MakeRelativeTo( defaultPath ) )
381  wxMessageBox( _( "Cannot make path relative (target volume different from file volume)!" ),
382  _( "Plot Output Directory" ), wxOK | wxICON_ERROR );
383  }
384 
385  m_outputDirectoryName->SetValue( dirName.GetFullPath() );
386 }
BOARD * GetBoard() const
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
const wxString & GetFileName() const
Definition: class_board.h:234
VTBL_ENTRY const wxString AbsolutePath(const wxString &aFileName) const
Function AbsolutePath fixes up aFileName if it is relative to the project&#39;s directory to be an absolu...
Definition: project.cpp:380
wxTextCtrl * m_outputDirectoryName
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
void DIALOG_SHIM::OnPaint ( wxPaintEvent &  event)
inherited

Definition at line 271 of file dialog_shim.cpp.

References DIALOG_SHIM::m_fixupsRun, and recursiveDescent().

Referenced by DIALOG_SHIM::DIALOG_SHIM(), and DIALOG_SHIM::IsQuasiModal().

272 {
273  if( !m_fixupsRun )
274  {
275 #if DLGSHIM_SELECT_ALL_IN_TEXT_CONTROLS
276  const bool selectAllInTextCtrls = true;
277 #else
278  const bool selectAllInTextCtrls = false;
279 #endif
280  wxWindow* firstTextCtrl = NULL;
281  wxWindow* windowWithFocus = NULL;
282 
283  recursiveDescent( GetChildren(), selectAllInTextCtrls, firstTextCtrl,
284  windowWithFocus );
285 
286 #if DLGSHIM_USE_SETFOCUS
287  // While it would be nice to honour any focus already set (which was
288  // recorded in windowWithFocus), the reality is that it's currently wrong
289  // far more often than it's right.
290  // So just focus on the first text control if we have one; otherwise the
291  // focus on the dialog itself, which will at least allow esc, return, etc.
292  // to function.
293  if( firstTextCtrl )
294  firstTextCtrl->SetFocus();
295  else
296  SetFocus();
297 #endif
298 
299 #ifdef __WXMAC__
300  fixOSXCancelButtonIssue( this );
301 #endif
302 
303  m_fixupsRun = true;
304  }
305 
306  event.Skip();
307 }
static void recursiveDescent(wxWindowList &children, const bool selectTextInTextCtrls, wxWindow *&firstTextCtrl, wxWindow *&windowWithFocus)
bool m_fixupsRun
Definition: dialog_shim.h:149
void DIALOG_PLOT::OnPopUpLayers ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 267 of file dialog_plot.cpp.

References LSET::AllCuMask(), LSET::AllTechMask(), i, DIALOG_PLOT_BASE::ID_DESELECT_ALL_LAYERS, DIALOG_PLOT_BASE::ID_DESELECT_COPPER_LAYERS, DIALOG_PLOT_BASE::ID_LAYER_FAB, DIALOG_PLOT_BASE::ID_SELECT_ALL_LAYERS, DIALOG_PLOT_BASE::ID_SELECT_COPPER_LAYERS, IsCopperLayer(), DIALOG_PLOT_BASE::m_layerCheckListBox, and m_layerList.

268 {
269  unsigned int i;
270 
271  switch( event.GetId() )
272  {
273  case ID_LAYER_FAB: // Select layers usually needed to build a board
274  for( i = 0; i < m_layerList.size(); i++ )
275  {
276  LSET layermask( m_layerList[ i ] );
277 
278  if( ( layermask & ( LSET::AllCuMask() | LSET::AllTechMask() ) ).any() )
279  m_layerCheckListBox->Check( i, true );
280  else
281  m_layerCheckListBox->Check( i, false );
282  }
283  break;
284 
286  for( i = 0; i < m_layerList.size(); i++ )
287  {
288  if( IsCopperLayer( m_layerList[i] ) )
289  m_layerCheckListBox->Check( i, true );
290  }
291  break;
292 
294  for( i = 0; i < m_layerList.size(); i++ )
295  {
296  if( IsCopperLayer( m_layerList[i] ) )
297  m_layerCheckListBox->Check( i, false );
298  }
299  break;
300 
302  for( i = 0; i < m_layerList.size(); i++ )
303  m_layerCheckListBox->Check( i, true );
304  break;
305 
307  for( i = 0; i < m_layerList.size(); i++ )
308  m_layerCheckListBox->Check( i, false );
309  break;
310 
311  default:
312  break;
313  }
314 }
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Function AllCuMask returns a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition: lset.cpp:673
LSEQ m_layerList
Definition: dialog_plot.h:44
static LSET AllTechMask()
Function AllTechMask returns a mask holding all technical layers (no CU layer) on both side...
Definition: lset.cpp:743
Class LSET is a set of PCB_LAYER_IDs.
size_t i
Definition: json11.cpp:597
bool IsCopperLayer(LAYER_NUM aLayerId)
Function IsCopperLayer tests whether a layer is a copper layer.
wxCheckListBox * m_layerCheckListBox
void DIALOG_PLOT::OnQuit ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 240 of file dialog_plot.cpp.

241 {
242  // Put a wxID_CANCEL event through the dialog infrastrucutre
243  event.SetId( wxID_CANCEL );
244  event.Skip();
245 }
void DIALOG_PLOT::OnRightClick ( wxMouseEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 259 of file dialog_plot.cpp.

References DIALOG_PLOT_BASE::m_popMenu.

260 {
261  PopupMenu( m_popMenu );
262 }
void DIALOG_PLOT::onRunDRC ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 903 of file dialog_plot.cpp.

References DRC::DestroyDRCDialog(), PCB_EDIT_FRAME::GetDrcController(), and DRC::ShowDRCDialog().

904 {
905  PCB_EDIT_FRAME* parent = dynamic_cast<PCB_EDIT_FRAME*>( GetParent() );
906 
907  if( parent )
908  {
909  // First close an existing dialog if open
910  // (low probability, but can happen)
911  parent->GetDrcController()->DestroyDRCDialog( wxID_OK );
912 
913  // Open a new drc dialod, with the right parent frame, and in Modal Mode
914  parent->GetDrcController()->ShowDRCDialog( this );
915  }
916 }
void DestroyDRCDialog(int aReason)
Deletes this ui dialog box and zeros out its pointer to remember the state of the dialog&#39;s existence...
Definition: drc.cpp:106
void ShowDRCDialog(wxWindow *aParent=NULL)
Open a dialog and prompts the user, then if a test run button is clicked, runs the test(s) and create...
Definition: drc.cpp:59
DRC * GetDrcController()
void DIALOG_PLOT::OnSetScaleOpt ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 343 of file dialog_plot.cpp.

References DIALOG_PLOT_BASE::m_plotSheetRef, and DIALOG_PLOT_BASE::m_scaleOpt.

Referenced by init_Dialog(), and SetPlotFormat().

344 {
345  /* Disable sheet reference for scale != 1:1 */
346  bool scale1 = ( m_scaleOpt->GetSelection() == 1 );
347 
348  m_plotSheetRef->Enable( scale1 );
349 
350  if( !scale1 )
351  m_plotSheetRef->SetValue( false );
352 }
wxCheckBox * m_plotSheetRef
wxChoice * m_scaleOpt
void DIALOG_PLOT::Plot ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 756 of file dialog_plot.cpp.

References GERBER_JOBFILE_WRITER::AddGbrFile(), LSET::AllCuMask(), applyPlotSettings(), BuildPlotFileName(), GERBER_JOBFILE_WRITER::CreateJobFile(), DisplayError(), DisplayInfoMessage(), dummy(), PLOTTER::EndPlot(), EnsureFileDirectoryExists(), GerberJobFileExtension, PCB_BASE_FRAME::GetBoard(), GetChars(), PCB_PLOT_PARAMS::GetCreateGerberJobFile(), GetDefaultPlotExtension(), BOARD::GetEnabledLayers(), BOARD::GetFileName(), PCB_PLOT_PARAMS::GetFormat(), GetGerberProtelExtension(), BOARD::GetLayerName(), PCB_PLOT_PARAMS::GetLayerSelection(), PCB_PLOT_PARAMS::GetOutputDirectory(), PCB_PLOT_PARAMS::GetScale(), PCB_PLOT_PARAMS::GetScaleSelection(), DIALOG_PLOT_BASE::m_fineAdjustXscaleOpt, DIALOG_PLOT_BASE::m_fineAdjustYscaleOpt, DIALOG_PLOT_BASE::m_messagesPanel, m_parent, m_plotOpts, DIALOG_PLOT_BASE::m_PSFineAdjustWidthOpt, m_PSWidthAdjust, DIALOG_PLOT_BASE::m_useGerberExtensions, m_XScaleAdjust, m_YScaleAdjust, PLOT_FORMAT_GERBER, PLOT_MAX_SCALE, PLOT_MIN_SCALE, PlotOneBoardLayer(), REPORTER::Report(), WX_HTML_REPORT_PANEL::Reporter(), REPORTER::RPT_ACTION, REPORTER::RPT_ERROR, PCB_PLOT_PARAMS::SetAutoScale(), PCB_PLOT_PARAMS::SetFineScaleAdjustX(), PCB_PLOT_PARAMS::SetFineScaleAdjustY(), PCB_BASE_FRAME::SetPlotSettings(), PCB_PLOT_PARAMS::SetScale(), PCB_PLOT_PARAMS::SetWidthAdjust(), StartPlotBoard(), and LSET::UIOrder().

757 {
758  BOARD* board = m_parent->GetBoard();
759 
761 
762  // If no layer selected, we have nothing plotted.
763  // Prompt user if it happens because he could think there is a bug in Pcbnew.
764  if( !m_plotOpts.GetLayerSelection().any() )
765  {
766  DisplayError( this, _( "No layer selected, Nothing to plot" ) );
767  return;
768  }
769 
770  // Create output directory if it does not exist (also transform it in
771  // absolute form). Bail if it fails
772  wxFileName outputDir = wxFileName::DirName( m_plotOpts.GetOutputDirectory() );
773  wxString boardFilename = m_parent->GetBoard()->GetFileName();
774  REPORTER& reporter = m_messagesPanel->Reporter();
775 
776  if( !EnsureFileDirectoryExists( &outputDir, boardFilename, &reporter ) )
777  {
778  wxString msg;
779  msg.Printf( _( "Could not write plot files to folder \"%s\"." ),
780  GetChars( outputDir.GetPath() ) );
781  DisplayError( this, msg );
782  return;
783  }
784 
785  m_plotOpts.SetAutoScale( false );
786  m_plotOpts.SetScale( 1 );
787 
788  switch( m_plotOpts.GetScaleSelection() )
789  {
790  default:
791  break;
792 
793  case 0: // Autoscale option
794  m_plotOpts.SetAutoScale( true );
795  break;
796 
797  case 2: // 3:2 option
798  m_plotOpts.SetScale( 1.5 );
799  break;
800 
801  case 3: // 2:1 option
802  m_plotOpts.SetScale( 2 );
803  break;
804 
805  case 4: // 3:1 option
806  m_plotOpts.SetScale( 3 );
807  break;
808  }
809 
810  /* If the scale factor edit controls are disabled or the scale value
811  * is 0, don't adjust the base scale factor. This fixes a bug when
812  * the default scale adjust is initialized to 0 and saved in program
813  * settings resulting in a divide by zero fault.
814  */
815  if( m_fineAdjustXscaleOpt->IsEnabled() && m_XScaleAdjust != 0.0 )
817 
818  if( m_fineAdjustYscaleOpt->IsEnabled() && m_YScaleAdjust != 0.0 )
820 
821  if( m_PSFineAdjustWidthOpt->IsEnabled() )
823 
824  wxString file_ext( GetDefaultPlotExtension( m_plotOpts.GetFormat() ) );
825 
826  // Test for a reasonable scale value
827  // XXX could this actually happen? isn't it constrained in the apply
828  // function?
830  DisplayInfoMessage( this,
831  _( "Warning: Scale option set to a very small value" ) );
832 
834  DisplayInfoMessage( this,
835  _( "Warning: Scale option set to a very large value" ) );
836 
837  GERBER_JOBFILE_WRITER jobfile_writer( board, &reporter );
838 
839  // Save the current plot options in the board
841 
842  wxBusyCursor dummy;
843 
844  for( LSEQ seq = m_plotOpts.GetLayerSelection().UIOrder(); seq; ++seq )
845  {
846  PCB_LAYER_ID layer = *seq;
847 
848  // All copper layers that are disabled are actually selected
849  // This is due to wonkyness in automatically selecting copper layers
850  // for plotting when adding more than two layers to a board.
851  // If plot options become accessible to the layers setup dialog
852  // please move this functionality there!
853  // This skips a copper layer if it is actually disabled on the board.
854  if( ( LSET::AllCuMask() & ~board->GetEnabledLayers() )[layer] )
855  continue;
856 
857  // Pick the basename from the board file
858  wxFileName fn( boardFilename );
859 
860  // Use Gerber Extensions based on layer number
861  // (See http://en.wikipedia.org/wiki/Gerber_File)
863  file_ext = GetGerberProtelExtension( layer );
864 
865  BuildPlotFileName( &fn, outputDir.GetPath(), board->GetLayerName( layer ), file_ext );
866  wxString fullname = fn.GetFullName();
867  jobfile_writer.AddGbrFile( layer, fullname );
868 
869  LOCALE_IO toggle;
870 
871  PLOTTER* plotter = StartPlotBoard( board, &m_plotOpts, layer, fn.GetFullPath(), wxEmptyString );
872 
873  // Print diags in messages box:
874  wxString msg;
875 
876  if( plotter )
877  {
878  PlotOneBoardLayer( board, plotter, layer, m_plotOpts );
879  plotter->EndPlot();
880  delete plotter;
881 
882  msg.Printf( _( "Plot file \"%s\" created." ), GetChars( fn.GetFullPath() ) );
883  reporter.Report( msg, REPORTER::RPT_ACTION );
884  }
885  else
886  {
887  msg.Printf( _( "Unable to create file \"%s\"." ), GetChars( fn.GetFullPath() ) );
888  reporter.Report( msg, REPORTER::RPT_ERROR );
889  }
890  }
891 
893  {
894  // Pick the basename from the board file
895  wxFileName fn( boardFilename );
896  // Build gerber job file from basename
897  BuildPlotFileName( &fn, outputDir.GetPath(), "job", GerberJobFileExtension );
898  jobfile_writer.CreateJobFile( fn.GetFullPath() );
899  }
900 }
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Function AllCuMask returns a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition: lset.cpp:673
WX_HTML_REPORT_PANEL * m_messagesPanel
double m_YScaleAdjust
Definition: dialog_plot.h:47
wxTextCtrl * m_fineAdjustYscaleOpt
wxCheckBox * m_useGerberExtensions
double GetScale() const
Class LOCALE_IO is a class that can be instantiated within a scope in which you are expecting excepti...
Definition: common.h:166
void PlotOneBoardLayer(BOARD *aBoard, PLOTTER *aPlotter, PCB_LAYER_ID aLayer, const PCB_PLOT_PARAMS &aPlotOpt)
Function PlotOneBoardLayer main function to plot one copper or technical layer.
#define PLOT_MIN_SCALE
Definition: pcbplot.h:68
wxString GetDefaultPlotExtension(PlotFormat aFormat)
Returns the default plot extension for a format.
const wxString GetGerberProtelExtension(LAYER_NUM aLayer)
Function GetGerberProtelExtension.
Definition: pcbplot.cpp:47
BOARD * GetBoard() const
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:61
LSET GetLayerSelection() const
LSET GetEnabledLayers() const
Function GetEnabledLayers is a proxy function that calls the corresponding function in m_BoardSetting...
double m_XScaleAdjust
Definition: dialog_plot.h:45
virtual bool EndPlot()=0
wxString GetOutputDirectory() const
wxTextCtrl * m_PSFineAdjustWidthOpt
PCB_LAYER_ID
A quick note on layer IDs:
GERBER_JOBFILE_WRITER is a class used to create Gerber job file a Gerber job file stores info to make...
PCB_EDIT_FRAME * m_parent
Definition: dialog_plot.h:42
const wxString & GetFileName() const
Definition: class_board.h:234
bool EnsureFileDirectoryExists(wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter)
Helper function EnsureFileDirectoryExists make aTargetFullFileName absolute and creates the path of t...
Definition: common.cpp:282
REPORTER & Reporter()
returns the reporter object that reports to this panel
#define PLOT_MAX_SCALE
Definition: pcbplot.h:69
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Function GetLayerName returns the name of a layer given by aLayer.
int m_PSWidthAdjust
Definition: dialog_plot.h:49
int GetScaleSelection() const
virtual void SetPlotSettings(const PCB_PLOT_PARAMS &aSettings)
bool GetCreateGerberJobFile() const
PlotFormat GetFormat() const
void SetScale(double aVal)
Class LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
const wxString GerberJobFileExtension
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
void SetFineScaleAdjustX(double aVal)
void BuildPlotFileName(wxFileName *aFilename, const wxString &aOutputDir, const wxString &aSuffix, const wxString &aExtension)
Function BuildPlotFileName (helper function) Complete a plot filename: forces the output directory...
Definition: pcbplot.cpp:484
Base plotter engine class.
Definition: plotter.h:96
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
wxTextCtrl * m_fineAdjustXscaleOpt
void applyPlotSettings()
void SetWidthAdjust(int aVal)
static LIB_PART * dummy()
Used when a LIB_PART is not found in library to draw a dummy shape This component is a 400 mils squar...
Class BOARD holds information pertinent to a Pcbnew printed circuit board.
Definition: class_board.h:169
void SetAutoScale(bool aFlag)
void SetFineScaleAdjustY(double aVal)
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_UNDEFINED)=0
Function Report is a pure virtual function to override in the derived object.
PLOTTER * StartPlotBoard(BOARD *aBoard, PCB_PLOT_PARAMS *aPlotOpts, int aLayer, const wxString &aFullFileName, const wxString &aSheetDesc)
Open a new plotfile using the options (and especially the format) specified in the options and prepar...
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Function DisplayInfoMessage displays an informational message box with aMessage.
Definition: confirm.cpp:216
void DisplayError(wxWindow *parent, const wxString &text, int displaytime)
Function DisplayError displays an error or warning message box with aMessage.
Definition: confirm.cpp:185
LSEQ UIOrder() const
Definition: lset.cpp:786
PROJECT & KIWAY_HOLDER::Prj ( ) const
inherited

Function Prj returns a reference to the PROJECT "associated with" this KIWAY.

Definition at line 34 of file kiway_holder.cpp.

References KIWAY_HOLDER::Kiway(), and KIWAY::Prj().

Referenced by SCH_EDIT_FRAME::AppendSchematic(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), DIALOG_SYMBOL_REMAP::backupProject(), LIB_VIEW_FRAME::BestZoom(), DIALOG_FOOTPRINT_FP_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_FOOTPRINT_BOARD_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::BrowseAndSelectDocFile(), DIALOG_SYMBOL_LIB_TABLE::browseLibrariesHandler(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_FOOTPRINT_FP_EDITOR::Cfg3DPath(), DIALOG_FOOTPRINT_BOARD_EDITOR::Cfg3DPath(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::checkNewAlias(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToOptions(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromCurrentLibrary(), DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR(), DIALOG_FOOTPRINT_FP_EDITOR::DIALOG_FOOTPRINT_FP_EDITOR(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP(), LIB_VIEW_FRAME::DisplayLibInfos(), LIB_EDIT_FRAME::DisplayLibInfos(), SCH_BASE_FRAME::DisplayListComponentsInLib(), PCB_EDIT_FRAME::doAutoSave(), DIALOG_FOOTPRINT_FP_EDITOR::Edit3DShapeFileName(), DIALOG_FOOTPRINT_BOARD_EDITOR::Edit3DShapeFileName(), SCH_EDIT_FRAME::EditSheet(), PCB_EDIT_FRAME::Export_IDF3(), PCB_EDIT_FRAME::Files_io_from_id(), NETLIST_DIALOG::GenNetlist(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), FOOTPRINT_EDIT_FRAME::GetCurrentLib(), SCH_BASE_FRAME::GetLibAlias(), SCH_BASE_FRAME::GetLibPart(), FOOTPRINT_EDIT_FRAME::getLibPath(), LIB_EDIT_FRAME::getLibraryFileName(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), DIALOG_BOM::getPluginFileName(), LIB_VIEW_FRAME::getSelectedAlias(), FP_THREAD_IFACE::GetTable(), PCB_EDIT_FRAME::importFile(), SCH_EDIT_FRAME::importFile(), DIALOG_FOOTPRINT_FP_EDITOR::initModeditProperties(), DIALOG_FOOTPRINT_BOARD_EDITOR::InitModeditProperties(), PCB_EDIT_FRAME::InstallNetlistFrame(), SCH_EDIT_FRAME::IsSearchCacheObsolete(), KIWAY_HOLDER::Kiway(), SCH_EDIT_FRAME::Load_Component(), SCH_EDIT_FRAME::LoadCmpToFootprintLinkFile(), LIB_EDIT_FRAME::LoadComponentFromCurrentLib(), CVPCB_MAINFRAME::LoadFootprintFiles(), DIALOG_SPICE_MODEL::loadLibrary(), LIB_EDIT_FRAME::LoadOneSymbol(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), DIALOG_DRC_CONTROL::makeValidFileNameReport(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_GENCAD_EXPORT_OPTIONS::onBrowse(), DIALOG_DRC_CONTROL::OnButtonBrowseRptFileClick(), DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_GENDRILL::OnGenReportFile(), DIALOG_CHOOSE_COMPONENT::OnIdle(), SCH_EDIT_FRAME::OnImportProject(), PCB_EDIT_FRAME::OnLeftClick(), DIALOG_NETLIST::OnOpenNetlistClick(), OnOutputDirectoryBrowseClicked(), DIALOG_SVG_PRINT::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), LIB_EDIT_FRAME::OnPlotCurrentComponent(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), SCH_EDIT_FRAME::OnRightClick(), DIALOG_BOM::OnRunPlugin(), SCH_EDIT_FRAME::OnSaveProject(), DIALOG_CHOOSE_COMPONENT::OnSchViewPaint(), DIALOG_SPICE_MODEL::onSelectLibrary(), LIB_VIEW_FRAME::OnSelectSymbol(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnTestChipName(), FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib(), LIB_EDIT_FRAME::OnViewEntryDoc(), LIB_VIEW_FRAME::onViewSymbolDocument(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::PasteListOfItems(), DIALOG_CHOOSE_COMPONENT::PopulateFootprintSelector(), SCH_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), LIB_VIEW_FRAME::RedrawActiveWindow(), EDA_3D_VIEWER::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), SCH_EDIT_FRAME::SaveEEFile(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), LIB_EDIT_FRAME::saveLibrary(), LIB_EDIT_FRAME::SaveOneSymbol(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), SCH_BASE_FRAME::saveSymbolLibTables(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectComponentFromLibrary(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), LIB_EDIT_FRAME::selectSymLibTable(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), DIALOG_CHOOSE_COMPONENT::ShowFootprintFor(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), LIB_MANAGER::symTable(), EDA_3D_VIEWER::takeScreenshot(), SIM_PLOT_FRAME::updateNetlistExporter(), SCH_SCREEN::UpdateSymbolLinks(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::WriteNetListFile(), DIALOG_FOOTPRINT_BOARD_EDITOR::~DIALOG_FOOTPRINT_BOARD_EDITOR(), and DIALOG_FOOTPRINT_FP_EDITOR::~DIALOG_FOOTPRINT_FP_EDITOR().

35 {
36  return Kiway().Prj();
37 }
KIWAY & Kiway() const
Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in...
Definition: kiway_player.h:60
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:142
void DIALOG_PLOT::reInitDialog ( )
private

Definition at line 228 of file dialog_plot.cpp.

References PCB_PLOT_PARAMS::GetOutputDirectory(), PCB_PLOT_PARAMS::GetUseAuxOrigin(), DIALOG_PLOT_BASE::m_outputDirectoryName, m_plotOpts, and DIALOG_PLOT_BASE::m_useAuxOriginCheckBox.

Referenced by CreateDrillFile(), and init_Dialog().

229 {
230  // after calling drill dialog, some parameters can be modified.
231  // update them
232 
233  // Output directory
235 
236  // Origin of coordinates:
238 }
bool GetUseAuxOrigin() const
wxString GetOutputDirectory() const
wxTextCtrl * m_outputDirectoryName
PCB_PLOT_PARAMS m_plotOpts
Definition: dialog_plot.h:57
wxCheckBox * m_useAuxOriginCheckBox
void KIWAY_HOLDER::SetKiway ( wxWindow *  aDest,
KIWAY aKiway 
)
inherited

Function SetKiway.

Parameters
aDestis the recipient of aKiway pointer. It is only used for debugging, since "this" is not a wxWindow*. "this" is a KIWAY_HOLDER mix-in.
aKiwayis often from a parent window, or from KIFACE::CreateWindow().

Definition at line 41 of file kiway_holder.cpp.

References KIWAY_HOLDER::m_kiway, and name.

Referenced by DIALOG_SHIM::DIALOG_SHIM(), KIWAY_HOLDER::Kiway(), and SIM_PLOT_FRAME::SIM_PLOT_FRAME().

42 {
43 #if defined(DEBUG)
44  // offer a trap point for debugging most any window
45  wxASSERT( aDest );
46  if( !strcmp( typeid(aDest).name(), "DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB" ) )
47  {
48  int breakhere=1;
49  (void) breakhere;
50  }
51 #endif
52 
53  (void) aDest;
54 
55  m_kiway = aKiway;
56 }
KIWAY * m_kiway
Definition: kiway_player.h:85
const char * name
Definition: DXF_plotter.cpp:61
void DIALOG_PLOT::SetPlotFormat ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PLOT_BASE.

Definition at line 408 of file dialog_plot.cpp.

References FILLED, getPlotFormat(), DIALOG_PLOT_BASE::m_drillShapeOpt, DIALOG_PLOT_BASE::m_DXF_plotModeOpt, DIALOG_PLOT_BASE::m_excludeEdgeLayerOpt, DIALOG_PLOT_BASE::m_fineAdjustXscaleOpt, DIALOG_PLOT_BASE::m_fineAdjustYscaleOpt, DIALOG_PLOT_BASE::m_forcePSA4OutputOpt, DIALOG_PLOT_BASE::m_GerberOptionsSizer, DIALOG_PLOT_BASE::m_HPGLOptionsSizer, DIALOG_PLOT_BASE::m_HPGLPenSizeOpt, DIALOG_PLOT_BASE::m_linesWidth, DIALOG_PLOT_BASE::m_MainSizer, DIALOG_PLOT_BASE::m_plotMirrorOpt, DIALOG_PLOT_BASE::m_plotModeOpt, DIALOG_PLOT_BASE::m_PlotOptionsSizer, DIALOG_PLOT_BASE::m_plotPSNegativeOpt, DIALOG_PLOT_BASE::m_PSFineAdjustWidthOpt, DIALOG_PLOT_BASE::m_PSOptionsSizer, DIALOG_PLOT_BASE::m_scaleOpt, DIALOG_PLOT_BASE::m_SizerDXF_options, DIALOG_PLOT_BASE::m_useAuxOriginCheckBox, OnChangeDXFPlotMode(), OnSetScaleOpt(), PLOT_FORMAT_DXF, PLOT_FORMAT_GERBER, PLOT_FORMAT_HPGL, PLOT_FORMAT_PDF, PLOT_FORMAT_POST, PLOT_FORMAT_SVG, and setPlotModeChoiceSelection().

Referenced by init_Dialog().

409 {
410  // this option exist only in DXF format:
412 
413  switch( getPlotFormat() )
414  {
415  case PLOT_FORMAT_PDF:
416  case PLOT_FORMAT_SVG:
417  m_drillShapeOpt->Enable( true );
418  m_plotModeOpt->Enable( false );
420  m_plotMirrorOpt->Enable( true );
421  m_useAuxOriginCheckBox->Enable( false );
422  m_useAuxOriginCheckBox->SetValue( false );
423  m_linesWidth->Enable( true );
424  m_HPGLPenSizeOpt->Enable( false );
425  m_excludeEdgeLayerOpt->Enable( true );
426  m_scaleOpt->Enable( false );
427  m_scaleOpt->SetSelection( 1 );
428  m_fineAdjustXscaleOpt->Enable( false );
429  m_fineAdjustYscaleOpt->Enable( false );
430  m_PSFineAdjustWidthOpt->Enable( false );
431  m_plotPSNegativeOpt->Enable( true );
432  m_forcePSA4OutputOpt->Enable( false );
433  m_forcePSA4OutputOpt->SetValue( false );
434 
439  break;
440 
441  case PLOT_FORMAT_POST:
442  m_drillShapeOpt->Enable( true );
443  m_plotModeOpt->Enable( true );
444  m_plotMirrorOpt->Enable( true );
445  m_useAuxOriginCheckBox->Enable( false );
446  m_useAuxOriginCheckBox->SetValue( false );
447  m_linesWidth->Enable( true );
448  m_HPGLPenSizeOpt->Enable( false );
449  m_excludeEdgeLayerOpt->Enable( true );
450  m_scaleOpt->Enable( true );
451  m_fineAdjustXscaleOpt->Enable( true );
452  m_fineAdjustYscaleOpt->Enable( true );
453  m_PSFineAdjustWidthOpt->Enable( true );
454  m_plotPSNegativeOpt->Enable( true );
455  m_forcePSA4OutputOpt->Enable( true );
456 
461  break;
462 
463  case PLOT_FORMAT_GERBER:
464  m_drillShapeOpt->Enable( false );
465  m_drillShapeOpt->SetSelection( 0 );
466  m_plotModeOpt->Enable( false );
468  m_plotMirrorOpt->Enable( false );
469  m_plotMirrorOpt->SetValue( false );
470  m_useAuxOriginCheckBox->Enable( true );
471  m_linesWidth->Enable( true );
472  m_HPGLPenSizeOpt->Enable( false );
473  m_excludeEdgeLayerOpt->Enable( true );
474  m_scaleOpt->Enable( false );
475  m_scaleOpt->SetSelection( 1 );
476  m_fineAdjustXscaleOpt->Enable( false );
477  m_fineAdjustYscaleOpt->Enable( false );
478  m_PSFineAdjustWidthOpt->Enable( false );
479  m_plotPSNegativeOpt->Enable( false );
480  m_plotPSNegativeOpt->SetValue( false );
481  m_forcePSA4OutputOpt->Enable( false );
482  m_forcePSA4OutputOpt->SetValue( false );
483 
488  break;
489 
490  case PLOT_FORMAT_HPGL:
491  m_drillShapeOpt->Enable( true );
492  m_plotModeOpt->Enable( true );
493  m_plotMirrorOpt->Enable( true );
494  m_useAuxOriginCheckBox->Enable( false );
495  m_useAuxOriginCheckBox->SetValue( false );
496  m_linesWidth->Enable( false );
497  m_HPGLPenSizeOpt->Enable( true );
498  m_excludeEdgeLayerOpt->Enable( true );
499  m_scaleOpt->Enable( true );
500  m_fineAdjustXscaleOpt->Enable( false );
501  m_fineAdjustYscaleOpt->Enable( false );
502  m_PSFineAdjustWidthOpt->Enable( false );
503  m_plotPSNegativeOpt->SetValue( false );
504  m_plotPSNegativeOpt->Enable( false );
505  m_forcePSA4OutputOpt->Enable( true );
506 
511  break;
512 
513  case PLOT_FORMAT_DXF:
514  m_drillShapeOpt->Enable( true );
515  m_plotModeOpt->Enable( false );
517  m_plotMirrorOpt->Enable( false );
518  m_plotMirrorOpt->SetValue( false );
519  m_useAuxOriginCheckBox->Enable( true );
520  m_linesWidth->Enable( false );
521  m_HPGLPenSizeOpt->Enable( false );
522  m_excludeEdgeLayerOpt->Enable( true );
523  m_scaleOpt->Enable( false );
524  m_scaleOpt->SetSelection( 1 );
525  m_fineAdjustXscaleOpt->Enable( false );
526  m_fineAdjustYscaleOpt->Enable( false );
527  m_PSFineAdjustWidthOpt->Enable( false );
528  m_plotPSNegativeOpt->Enable( false );
529  m_plotPSNegativeOpt->SetValue( false );
530  m_forcePSA4OutputOpt->Enable( false );
531  m_forcePSA4OutputOpt->SetValue( false );
532 
537 
538  OnChangeDXFPlotMode( event );
539  break;
540  }
541 
542  /* Update the interlock between scale and frame reference
543  * (scaling would mess up the frame border...) */
544  OnSetScaleOpt( event );
545 
546  Layout();
547  m_MainSizer->SetSizeHints( this );
548 }
wxStaticBoxSizer * m_HPGLOptionsSizer
wxTextCtrl * m_linesWidth
wxTextCtrl * m_fineAdjustYscaleOpt
void OnChangeDXFPlotMode(wxCommandEvent &event) override
wxCheckBox * m_plotPSNegativeOpt
PlotFormat getPlotFormat()
wxCheckBox * m_excludeEdgeLayerOpt
wxCheckBox * m_plotMirrorOpt
wxStaticBoxSizer * m_SizerDXF_options
wxCheckBox * m_DXF_plotModeOpt
wxTextCtrl * m_PSFineAdjustWidthOpt
wxCheckBox * m_forcePSA4OutputOpt
void setPlotModeChoiceSelection(EDA_DRAW_MODE_T aPlotMode)
Definition: dialog_plot.h:79
void OnSetScaleOpt(wxCommandEvent &event) override
wxStaticBoxSizer * m_GerberOptionsSizer
wxChoice * m_scaleOpt
wxChoice * m_drillShapeOpt
wxTextCtrl * m_fineAdjustXscaleOpt
wxTextCtrl * m_HPGLPenSizeOpt
wxCheckBox * m_useAuxOriginCheckBox
wxChoice * m_plotModeOpt
wxBoxSizer * m_MainSizer
wxStaticBoxSizer * m_PSOptionsSizer
wxBoxSizer * m_PlotOptionsSizer
void DIALOG_PLOT::setPlotModeChoiceSelection ( EDA_DRAW_MODE_T  aPlotMode)
inlineprivate

Definition at line 79 of file dialog_plot.h.

References DIALOG_PLOT_BASE::m_plotModeOpt, and SKETCH.

Referenced by init_Dialog(), and SetPlotFormat().

80  {
81  m_plotModeOpt->SetSelection( aPlotMode == SKETCH ? 1 : 0 );
82  }
wxChoice * m_plotModeOpt
void DIALOG_SHIM::SetSizeInDU ( int  x,
int  y 
)
protectedinherited

Set the dialog to the given dimensions in "dialog units".

These are units equivalent to 4* the average character width and 8* the average character height, allowing a dialog to be sized in a way that scales it with the system font.

Definition at line 118 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), HOTKEYS_EDITOR_DIALOG::HOTKEYS_EDITOR_DIALOG(), HTML_MESSAGE_BOX::HTML_MESSAGE_BOX(), DIALOG_SHIM::IsQuasiModal(), DIALOG_LAYERS_SETUP::OnInitDialog(), and HTML_MESSAGE_BOX::SetDialogSizeInDU().

119 {
120  wxSize sz( x, y );
121  SetSize( ConvertDialogToPixels( sz ) );
122 }
bool DIALOG_SHIM::Show ( bool  show)
overrideinherited

Definition at line 146 of file dialog_shim.cpp.

References class_map, EDA_RECT::GetPosition(), EDA_RECT::GetSize(), DIALOG_SHIM::m_hash_key, max, wxPoint::x, and wxPoint::y.

Referenced by DisplayHotkeyList(), DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), DIALOG_SHIM::IsQuasiModal(), DIALOG_SCH_FIND::OnCancel(), DIALOG_DRC_CONTROL::OnLeftDClickClearance(), DIALOG_DRC_CONTROL::OnLeftDClickUnconnected(), DIALOG_DRC_CONTROL::OnPopupMenu(), DIALOG_EXCHANGE_FOOTPRINTS::OnQuit(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), SCH_COMPONENT::SetPosition(), DRC::ShowDRCDialog(), and DIALOG_SHIM::ShowQuasiModal().

147 {
148  bool ret;
149  const char* hash_key;
150 
151  if( m_hash_key.size() )
152  {
153  // a special case like EDA_LIST_DIALOG, which has multiple uses.
154  hash_key = m_hash_key.c_str();
155  }
156  else
157  {
158  hash_key = typeid(*this).name();
159  }
160 
161  // Show or hide the window. If hiding, save current position and size.
162  // If showing, use previous position and size.
163  if( show )
164  {
165 #ifndef __WINDOWS__
166  wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
167 #endif
168  ret = wxDialog::Show( show );
169 
170  // classname is key, returns a zeroed out default EDA_RECT if none existed before.
171  EDA_RECT savedDialogRect = class_map[ hash_key ];
172 
173  if( savedDialogRect.GetSize().x != 0 && savedDialogRect.GetSize().y != 0 )
174  {
175  SetSize( savedDialogRect.GetPosition().x,
176  savedDialogRect.GetPosition().y,
177  std::max( wxDialog::GetSize().x, savedDialogRect.GetSize().x ),
178  std::max( wxDialog::GetSize().y, savedDialogRect.GetSize().y ),
179  0 );
180  }
181 
182  // Be sure that the dialog appears in a visible area
183  // (the dialog position might have been stored at the time when it was
184  // shown on another display)
185  if( wxDisplay::GetFromWindow( this ) == wxNOT_FOUND )
186  Centre();
187  }
188  else
189  {
190  // Save the dialog's position & size before hiding, using classname as key
191  class_map[ hash_key ] = EDA_RECT( wxDialog::GetPosition(), wxDialog::GetSize() );
192 
193 #ifdef __WXMAC__
194  if ( m_eventLoop )
195  m_eventLoop->Exit( GetReturnCode() ); // Needed for APP-MODAL dlgs on OSX
196 #endif
197 
198  ret = wxDialog::Show( show );
199  }
200 
201  return ret;
202 }
const wxSize GetSize() const
Definition: eda_rect.h:101
std::string m_hash_key
Definition: dialog_shim.h:151
static RECT_MAP class_map
const wxPoint GetPosition() const
Definition: eda_rect.h:113
#define max(a, b)
Definition: auxiliary.h:86
Class EDA_RECT handles the component boundary box.
Definition: eda_rect.h:44
int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 558 of file dialog_shim.cpp.

References DBG, DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by SCH_EDIT_FRAME::EditComponent(), SCH_EDIT_FRAME::EditComponentFieldText(), LIB_EDIT_FRAME::EditField(), EDIT_TOOL::ExchangeFootprints(), PCB_EDIT_FRAME::InstallExchangeModuleFrame(), LIB_EDIT_FRAME::InstallFieldsEditorDialog(), SCH_EDIT_FRAME::InstallHierarchyFrame(), InvokeDialogCreateBOMEditor(), InvokeDialogEditComponentsLibId(), InvokeDialogUpdateFields(), SCH_EDIT_FRAME::OnRemapSymbols(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OpenProjectFiles(), and SCH_BASE_FRAME::SelectComponentFromLibrary().

559 {
560  // This is an exception safe way to zero a pointer before returning.
561  // Yes, even though DismissModal() clears this first normally, this is
562  // here in case there's an exception before the dialog is dismissed.
563  struct NULLER
564  {
565  void*& m_what;
566  NULLER( void*& aPtr ) : m_what( aPtr ) {}
567  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
568  } clear_this( (void*&) m_qmodal_loop );
569 
570  // release the mouse if it's currently captured as the window having it
571  // will be disabled when this dialog is shown -- but will still keep the
572  // capture making it impossible to do anything in the modal dialog itself
573  wxWindow* win = wxWindow::GetCapture();
574  if( win )
575  win->ReleaseMouse();
576 
577  // Get the optimal parent
578  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
579 
580  // Show the optimal parent
581  DBG( if( parent ) printf( "%s: optimal parent: %s\n", __func__, typeid(*parent).name() );)
582 
583  wxASSERT_MSG( !m_qmodal_parent_disabler,
584  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
585 
586  // quasi-modal: disable only my "optimal" parent
588 
589 #ifdef __WXMAC__
590  // Apple in its infinite wisdom will raise a disabled window before even passing
591  // us the event, so we have no way to stop it. Instead, we must set an order on
592  // the windows so that the quasi-modal will be pushed in front of the disabled
593  // window when it is raised.
594  ReparentQuasiModal();
595 #endif
596  Show( true );
597 
598  m_qmodal_showing = true;
599 
600  EVENT_LOOP event_loop;
601 
602  m_qmodal_loop = &event_loop;
603 
604  event_loop.Run();
605 
606  return GetReturnCode();
607 }
bool m_qmodal_showing
Definition: dialog_shim.h:155
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:154
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:156
Toggle a window&#39;s "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:33
#define DBG(x)
Definition: fctsys.h:33
int DIALOG_SHIM::VertPixelsFromDU ( int  y)
protectedinherited

Convert an integer number of dialog units to pixels, vertically.

See SetSizeInDU or wxDialog documentation for more information.

Definition at line 132 of file dialog_shim.cpp.

Referenced by DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(), DIALOG_EDIT_COMPONENTS_LIBID::DIALOG_EDIT_COMPONENTS_LIBID(), DIALOG_SHIM::IsQuasiModal(), and DIALOG_LAYERS_SETUP::OnInitDialog().

133 {
134  wxSize sz( 0, y );
135  return ConvertDialogToPixels( sz ).y;
136 }

Member Data Documentation

wxBitmapButton* DIALOG_PLOT_BASE::m_browseButton
protectedinherited
wxButton* DIALOG_PLOT_BASE::m_buttonDRC
protectedinherited
wxButton* DIALOG_PLOT_BASE::m_buttonDrill
protectedinherited
wxButton* DIALOG_PLOT_BASE::m_buttonQuit
protectedinherited
wxConfigBase* DIALOG_PLOT::m_config
private

Definition at line 43 of file dialog_plot.h.

Referenced by applyPlotSettings(), DIALOG_PLOT(), and init_Dialog().

wxChoice* DIALOG_PLOT_BASE::m_drillShapeOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_DXF_plotModeOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_DXF_plotTextStrokeFontOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_excludeEdgeLayerOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_excludePadsFromSilkscreen
protectedinherited
wxTextCtrl* DIALOG_PLOT_BASE::m_fineAdjustXscaleOpt
protectedinherited
wxTextCtrl* DIALOG_PLOT_BASE::m_fineAdjustYscaleOpt
protectedinherited
bool DIALOG_SHIM::m_fixupsRun
protectedinherited

Definition at line 149 of file dialog_shim.h.

Referenced by DIALOG_SHIM::OnPaint().

wxCheckBox* DIALOG_PLOT_BASE::m_forcePSA4OutputOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_generateGerberJobFile
protectedinherited
wxStaticBoxSizer* DIALOG_PLOT_BASE::m_GerberOptionsSizer
protectedinherited

Definition at line 93 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

std::string DIALOG_SHIM::m_hash_key
protectedinherited
wxStaticBoxSizer* DIALOG_PLOT_BASE::m_HPGLOptionsSizer
protectedinherited

Definition at line 100 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

wxTextCtrl* DIALOG_PLOT_BASE::m_HPGLPenSizeOpt
protectedinherited
wxCheckListBox* DIALOG_PLOT_BASE::m_layerCheckListBox
protectedinherited
LSEQ DIALOG_PLOT::m_layerList
private

Definition at line 44 of file dialog_plot.h.

Referenced by applyPlotSettings(), init_Dialog(), and OnPopUpLayers().

wxStaticBoxSizer* DIALOG_PLOT_BASE::m_LayersSizer
protectedinherited

Definition at line 68 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxTextCtrl* DIALOG_PLOT_BASE::m_linesWidth
protectedinherited
wxBoxSizer* DIALOG_PLOT_BASE::m_MainSizer
protectedinherited

Definition at line 62 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

WX_HTML_REPORT_PANEL* DIALOG_PLOT_BASE::m_messagesPanel
protectedinherited

Definition at line 114 of file dialog_plot_base.h.

Referenced by applyPlotSettings(), DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and Plot().

wxTextCtrl* DIALOG_PLOT_BASE::m_outputDirectoryName
protectedinherited
PCB_EDIT_FRAME* DIALOG_PLOT::m_parent
private
wxButton* DIALOG_PLOT_BASE::m_plotButton
protectedinherited
wxChoice* DIALOG_PLOT_BASE::m_plotFormatOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotInvisibleText
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotMirrorOpt
protectedinherited
wxChoice* DIALOG_PLOT_BASE::m_plotModeOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotModuleRefOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotModuleValueOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotNoViaOnMaskOpt
protectedinherited
wxBoxSizer* DIALOG_PLOT_BASE::m_PlotOptionsSizer
protectedinherited

Definition at line 70 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

PCB_PLOT_PARAMS DIALOG_PLOT::m_plotOpts
private
wxCheckBox* DIALOG_PLOT_BASE::m_plotPSNegativeOpt
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_plotSheetRef
protectedinherited
wxMenu* DIALOG_PLOT_BASE::m_popMenu
protectedinherited
wxTextCtrl* DIALOG_PLOT_BASE::m_PSFineAdjustWidthOpt
protectedinherited
wxStaticBoxSizer* DIALOG_PLOT_BASE::m_PSOptionsSizer
protectedinherited

Definition at line 103 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

int DIALOG_PLOT::m_PSWidthAdjust
private

Definition at line 49 of file dialog_plot.h.

Referenced by applyPlotSettings(), init_Dialog(), and Plot().

EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 154 of file dialog_shim.h.

Referenced by DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().

WDO_ENABLE_DISABLE* DIALOG_SHIM::m_qmodal_parent_disabler
protectedinherited
bool DIALOG_SHIM::m_qmodal_showing
protectedinherited
wxRadioBox* DIALOG_PLOT_BASE::m_rbGerberFormat
protectedinherited
wxChoice* DIALOG_PLOT_BASE::m_scaleOpt
protectedinherited
wxStaticBoxSizer* DIALOG_PLOT_BASE::m_SizerDXF_options
protectedinherited

Definition at line 111 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and SetPlotFormat().

wxStaticText* DIALOG_PLOT_BASE::m_SolderMaskMarginCurrValue
protectedinherited

Definition at line 90 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and init_Dialog().

wxStaticText* DIALOG_PLOT_BASE::m_SolderMaskMarginLabel
protectedinherited

Definition at line 89 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_SolderMaskMinWidthCurrValue
protectedinherited

Definition at line 92 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and init_Dialog().

wxStaticText* DIALOG_PLOT_BASE::m_solderMaskMinWidthLabel
protectedinherited

Definition at line 91 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticText11
protectedinherited

Definition at line 81 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticText12
protectedinherited

Definition at line 83 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticText13
protectedinherited

Definition at line 85 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticText7
protectedinherited

Definition at line 104 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticText8
protectedinherited

Definition at line 106 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticTextDir
protectedinherited

Definition at line 65 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxStaticText* DIALOG_PLOT_BASE::m_staticTextPlotFmt
protectedinherited

Definition at line 63 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE().

wxCheckBox* DIALOG_PLOT_BASE::m_subtractMaskFromSilk
protectedinherited
wxStaticText* DIALOG_PLOT_BASE::m_textDefaultPenSize
protectedinherited

Definition at line 87 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and init_Dialog().

wxStaticText* DIALOG_PLOT_BASE::m_textPenSize
protectedinherited

Definition at line 101 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and init_Dialog().

wxStaticText* DIALOG_PLOT_BASE::m_textPSFineAdjustWidth
protectedinherited

Definition at line 108 of file dialog_plot_base.h.

Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), and init_Dialog().

wxCheckBox* DIALOG_PLOT_BASE::m_useAuxOriginCheckBox
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_useGerberExtensions
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_useGerberNetAttributes
protectedinherited
wxCheckBox* DIALOG_PLOT_BASE::m_useGerberX2Attributes
protectedinherited
int DIALOG_PLOT::m_widthAdjustMaxValue
private

Definition at line 54 of file dialog_plot.h.

Referenced by applyPlotSettings(), and init_Dialog().

int DIALOG_PLOT::m_widthAdjustMinValue
private

Definition at line 53 of file dialog_plot.h.

Referenced by applyPlotSettings(), and init_Dialog().

double DIALOG_PLOT::m_XScaleAdjust
private

Definition at line 45 of file dialog_plot.h.

Referenced by applyPlotSettings(), init_Dialog(), and Plot().

double DIALOG_PLOT::m_YScaleAdjust
private

Definition at line 47 of file dialog_plot.h.

Referenced by applyPlotSettings(), init_Dialog(), and Plot().


The documentation for this class was generated from the following files: