Remember mirror setting in print dialog.
Fixes https://gitlab.com/kicad/code/kicad/issues/5909
This commit is contained in:
parent
d305e9c715
commit
9c6977a994
|
@ -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_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_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.pads_drill_mode = m_drillMarks;
|
||||||
cfg->m_Plot.one_page_per_layer = m_pagination;
|
cfg->m_Plot.one_page_per_layer = m_pagination;
|
||||||
|
cfg->m_Plot.mirror = m_mirror;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -385,6 +385,9 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
|
||||||
m_params.emplace_back( new PARAM<bool>( "plot.check_zones_before_plotting",
|
m_params.emplace_back( new PARAM<bool>( "plot.check_zones_before_plotting",
|
||||||
&m_Plot.check_zones_before_plotting, true ) );
|
&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_params.emplace_back( new PARAM<wxString>( "window.footprint_text_shown_columns",
|
||||||
&m_FootprintTextShownColumns, "0 1 2 3 4 5 6" ) );
|
&m_FootprintTextShownColumns, "0 1 2 3 4 5 6" ) );
|
||||||
|
|
||||||
|
|
|
@ -187,6 +187,7 @@ public:
|
||||||
double fine_scale_y;
|
double fine_scale_y;
|
||||||
double ps_fine_width_adjust;
|
double ps_fine_width_adjust;
|
||||||
bool check_zones_before_plotting;
|
bool check_zones_before_plotting;
|
||||||
|
bool mirror;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DIALOG_REANNOTATE
|
struct DIALOG_REANNOTATE
|
||||||
|
|
|
@ -620,7 +620,6 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
TOOL_EVENT originalEvent = aEvent;
|
TOOL_EVENT originalEvent = aEvent;
|
||||||
POINT_EDITOR* pointEditor = m_toolMgr->GetTool<POINT_EDITOR>();
|
|
||||||
DIMENSION* dimension = nullptr;
|
DIMENSION* dimension = nullptr;
|
||||||
BOARD_COMMIT commit( m_frame );
|
BOARD_COMMIT commit( m_frame );
|
||||||
GRID_HELPER grid( m_toolMgr, m_frame->GetMagneticItemsSettings() );
|
GRID_HELPER grid( m_toolMgr, m_frame->GetMagneticItemsSettings() );
|
||||||
|
|
Loading…
Reference in New Issue