ADDED: expand VARIANT and VARIANT_DESC in drawing sheets
* add VARIANT and VARIANT_DESC to the list of known vars in the drawing sheet editor. * cache variant and variant description in respective objects. * expand the respective text variables when building the drawing sheet. * keep the cached variant and its description up-to-date when selecting a variant in the GUI. * pass variant and its description to the plotters. Fixes https://gitlab.com/kicad/code/kicad/-/issues/23430
This commit is contained in:
committed by
Jeff Young
parent
a9f1b41dc2
commit
e3f049f4d9
@@ -51,8 +51,8 @@ wxString GetDefaultPlotExtension( PLOT_FORMAT aFormat )
|
||||
void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BLOCK& aTitleBlock,
|
||||
const PAGE_INFO& aPageInfo, const std::map<wxString, wxString>* aProperties,
|
||||
const wxString& aSheetNumber, int aSheetCount, const wxString& aSheetName,
|
||||
const wxString& aSheetPath, const wxString& aFilename, COLOR4D aColor,
|
||||
bool aIsFirstPage )
|
||||
const wxString& aSheetPath, const wxString& aFilename, COLOR4D aColor, bool aIsFirstPage,
|
||||
const wxString& aVariantName, const wxString& aVariantDesc )
|
||||
{
|
||||
/* Note: Page sizes values are given in mils
|
||||
*/
|
||||
@@ -81,6 +81,8 @@ void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BL
|
||||
drawList.SetProject( aProject );
|
||||
drawList.SetIsFirstPage( aIsFirstPage );
|
||||
drawList.SetProperties( aProperties );
|
||||
drawList.SetVariantName( aVariantName );
|
||||
drawList.SetVariantDesc( aVariantDesc );
|
||||
|
||||
drawList.BuildDrawItemsList( aPageInfo, aTitleBlock );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user