Browse Source

Remember mirror setting in print dialog.

Fixes https://gitlab.com/kicad/code/kicad/issues/5909
6.0.7
Jeff Young 5 years ago
parent
commit
9c6977a994
  1. 2
      pcbnew/pcbnew_printout.cpp
  2. 3
      pcbnew/pcbnew_settings.cpp
  3. 1
      pcbnew/pcbnew_settings.h
  4. 1
      pcbnew/tools/drawing_tool.cpp

2
pcbnew/pcbnew_printout.cpp

@ -51,6 +51,7 @@ void PCBNEW_PRINTOUT_SETTINGS::Load( APP_SETTINGS_BASE* aConfig )
{
m_drillMarks = static_cast<DRILL_MARK_SHAPE_T>( cfg->m_Plot.pads_drill_mode );
m_pagination = static_cast<PAGINATION_T>( cfg->m_Plot.one_page_per_layer );
m_mirror = cfg->m_Plot.mirror;
}
}
@ -63,6 +64,7 @@ void PCBNEW_PRINTOUT_SETTINGS::Save( APP_SETTINGS_BASE* aConfig )
{
cfg->m_Plot.pads_drill_mode = m_drillMarks;
cfg->m_Plot.one_page_per_layer = m_pagination;
cfg->m_Plot.mirror = m_mirror;
}
}

3
pcbnew/pcbnew_settings.cpp

@ -385,6 +385,9 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
m_params.emplace_back( new PARAM<bool>( "plot.check_zones_before_plotting",
&m_Plot.check_zones_before_plotting, true ) );
m_params.emplace_back( new PARAM<bool>( "plot.mirror",
&m_Plot.mirror, false ) );
m_params.emplace_back( new PARAM<wxString>( "window.footprint_text_shown_columns",
&m_FootprintTextShownColumns, "0 1 2 3 4 5 6" ) );

1
pcbnew/pcbnew_settings.h

@ -187,6 +187,7 @@ public:
double fine_scale_y;
double ps_fine_width_adjust;
bool check_zones_before_plotting;
bool mirror;
};
struct DIALOG_REANNOTATE

1
pcbnew/tools/drawing_tool.cpp

@ -620,7 +620,6 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
return 0;
TOOL_EVENT originalEvent = aEvent;
POINT_EDITOR* pointEditor = m_toolMgr->GetTool<POINT_EDITOR>();
DIMENSION* dimension = nullptr;
BOARD_COMMIT commit( m_frame );
GRID_HELPER grid( m_toolMgr, m_frame->GetMagneticItemsSettings() );

Loading…
Cancel
Save