KiCad PCB EDA Suite
dialog_print_using_printer.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
5 * Copyright (C) 2015-2022 KiCad Developers, see AUTHORS.TXT for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#include <pgm_base.h>
26#include <confirm.h>
27#include <sch_screen.h>
28#include <sch_edit_frame.h>
29#include <base_units.h>
32#include <sch_sheet.h>
33#include <schematic.h>
34#include <sch_sheet_path.h>
36#include <sch_painter.h>
37#include <wx/print.h>
38#include <wx/printdlg.h>
39
40
42{
43public:
46
47protected:
48 void OnMonochromeChecked( wxCommandEvent& event ) override;
49 void OnUseColorThemeChecked( wxCommandEvent& event ) override;
50
51private:
52 bool TransferDataToWindow() override;
53 bool TransferDataFromWindow() override;
54
55 void OnPageSetup( wxCommandEvent& event ) override;
56 void OnPrintPreview( wxCommandEvent& event ) override;
57
58 void SavePrintOptions();
59
61};
62
63
64
68class SCH_PRINTOUT : public wxPrintout
69{
70public:
71 SCH_PRINTOUT( SCH_EDIT_FRAME* aParent, const wxString& aTitle ) :
72 wxPrintout( aTitle )
73 {
74 wxASSERT( aParent != nullptr );
75 m_parent = aParent;
76 }
77
78 bool OnPrintPage( int page ) override;
79 bool HasPage( int page ) override;
80 bool OnBeginDocument( int startPage, int endPage ) override;
81 void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo ) override;
82 void PrintPage( SCH_SCREEN* aScreen );
83
84private:
86};
87
88
93class SCH_PREVIEW_FRAME : public wxPreviewFrame
94{
95public:
96 SCH_PREVIEW_FRAME( wxPrintPreview* aPreview, wxWindow* aParent,
97 const wxString& aTitle, const wxPoint& aPos = wxDefaultPosition,
98 const wxSize& aSize = wxDefaultSize ) :
99 wxPreviewFrame( aPreview, aParent, aTitle, aPos, aSize )
100 {
101 }
102
103 bool Show( bool show ) override
104 {
105 bool ret;
106
107 // Show or hide the window. If hiding, save current position and size.
108 // If showing, use previous position and size.
109 if( show )
110 {
111 ret = wxPreviewFrame::Show( show );
112
113 if( s_size.x != 0 && s_size.y != 0 )
114 SetSize( s_pos.x, s_pos.y, s_size.x, s_size.y, 0 );
115 }
116 else
117 {
118 // Save the dialog's position & size before hiding
119 s_size = GetSize();
120 s_pos = GetPosition();
121
122 ret = wxPreviewFrame::Show( show );
123 }
124
125 return ret;
126 }
127
128private:
129 static wxPoint s_pos;
130 static wxSize s_size;
131};
132
133
136
137
140 m_parent( aParent )
141{
142 wxASSERT( aParent );
143
144 SetupStandardButtons( { { wxID_OK, _( "Print" ) },
145 { wxID_APPLY, _( "Print Preview" ) },
146 { wxID_CANCEL, _( "Close" ) } } );
147
148#ifdef __WXMAC__
149 // Problems with modal on wx-2.9 - Anyway preview is standard for OSX
150 m_sdbSizer1Apply->Hide();
151#endif
152
153 m_sdbSizer1OK->SetFocus();
154
156}
157
158
160{
162}
163
164
166{
168
169 if( cfg->m_Printing.monochrome )
170 {
171 m_checkBackgroundColor->SetValue( false );
172 m_checkBackgroundColor->Enable( false );
173 }
174
175 m_checkReference->SetValue( cfg->m_Printing.title_block );
176 m_checkMonochrome->SetValue( cfg->m_Printing.monochrome );
178 m_checkUseColorTheme->SetValue( cfg->m_Printing.use_theme );
179
180 m_colorTheme->Clear();
181
182 int width = 0;
183 int height = 0;
184 int minwidth = width;
185
186 wxString target = cfg->m_Printing.use_theme ? cfg->m_Printing.color_theme : cfg->m_ColorTheme;
187
188 for( COLOR_SETTINGS* settings : Pgm().GetSettingsManager().GetColorSettingsList() )
189 {
190 int pos = m_colorTheme->Append( settings->GetName(), static_cast<void*>( settings ) );
191
192 if( settings->GetFilename() == target )
193 m_colorTheme->SetSelection( pos );
194
195 m_colorTheme->GetTextExtent( settings->GetName(), &width, &height );
196 minwidth = std::max( minwidth, width );
197 }
198
199 m_colorTheme->SetMinSize( wxSize( minwidth + 50, -1 ) );
200
201 m_colorTheme->Enable( cfg->m_Printing.use_theme );
202
203 // Initialize page specific print setup dialog settings.
204 const PAGE_INFO& pageInfo = m_parent->GetScreen()->GetPageSettings();
205 wxPageSetupDialogData& pageSetupDialogData = m_parent->GetPageSetupData();
206
207 pageSetupDialogData.SetPaperId( pageInfo.GetPaperId() );
208
209 if( pageInfo.IsCustom() )
210 {
211 if( pageInfo.IsPortrait() )
212 pageSetupDialogData.SetPaperSize( wxSize( EDA_UNIT_UTILS::Mils2mm( pageInfo.GetWidthMils() ),
213 EDA_UNIT_UTILS::Mils2mm( pageInfo.GetHeightMils() ) ) );
214 else
215 pageSetupDialogData.SetPaperSize( wxSize( EDA_UNIT_UTILS::Mils2mm( pageInfo.GetHeightMils() ),
216 EDA_UNIT_UTILS::Mils2mm( pageInfo.GetWidthMils() ) ) );
217 }
218
219 pageSetupDialogData.GetPrintData().SetOrientation( pageInfo.GetWxOrientation() );
220
221 Layout();
222
223 return true;
224}
225
226
228{
229 m_colorTheme->Enable( m_checkUseColorTheme->GetValue() );
230}
231
232
234{
235 m_checkBackgroundColor->Enable( !m_checkMonochrome->GetValue() );
236
237 if( m_checkMonochrome->GetValue() )
238 m_checkBackgroundColor->SetValue( false );
239 else
241}
242
243
245{
247
248 cfg->m_Printing.monochrome = m_checkMonochrome->IsChecked();
249 cfg->m_Printing.title_block = m_checkReference->IsChecked();
250
251 if( m_checkBackgroundColor->IsEnabled() )
252 cfg->m_Printing.background = m_checkBackgroundColor->IsChecked();
253 else
254 cfg->m_Printing.background = false;
255
256 cfg->m_Printing.use_theme = m_checkUseColorTheme->IsChecked();
257
258 COLOR_SETTINGS* theme = static_cast<COLOR_SETTINGS*>(
259 m_colorTheme->GetClientData( m_colorTheme->GetSelection() ) );
260
261 if( theme && m_checkUseColorTheme->IsChecked() )
262 cfg->m_Printing.color_theme = theme->GetFilename();
263}
264
265
266void DIALOG_PRINT_USING_PRINTER::OnPageSetup( wxCommandEvent& event )
267{
268 wxPageSetupDialog pageSetupDialog( this, &m_parent->GetPageSetupData() );
269 pageSetupDialog.ShowModal();
270
271 m_parent->GetPageSetupData() = pageSetupDialog.GetPageSetupDialogData();
272}
273
274
276{
278
279 // Pass two printout objects: for preview, and possible printing.
280 wxString title = _( "Preview" );
281 wxPrintPreview* preview = new wxPrintPreview( new SCH_PRINTOUT( m_parent, title ),
282 new SCH_PRINTOUT( m_parent, title ),
283 &m_parent->GetPageSetupData().GetPrintData() );
284
285 preview->SetZoom( 100 );
286
287 SCH_PREVIEW_FRAME* frame = new SCH_PREVIEW_FRAME( preview, this, title );
288
289 // On wxGTK, set the flag wxTOPLEVEL_EX_DIALOG is mandatory, if we want
290 // close the frame using the X box in caption, when the preview frame is run
291 // from a dialog
292 frame->SetExtraStyle( frame->GetExtraStyle() | wxTOPLEVEL_EX_DIALOG );
293
294 // We use here wxPreviewFrame_WindowModal option to make the wxPrintPreview frame
295 // modal for its caller only.
296 // another reason is the fact when closing the frame without this option,
297 // all top level frames are reenabled.
298 // With this option, only the parent is reenabled.
299 // Reenabling all top level frames should be made by the parent dialog.
300 frame->InitializeWithModality( wxPreviewFrame_WindowModal );
301
302 // on first invocation in this runtime session, set to 3/4 size of parent,
303 // but will be changed in Show() if not first time as will position.
304 // Must be called after InitializeWithModality because otherwise in some wxWidget
305 // versions it is not always taken in account
306 frame->SetMinSize( wxSize( 650, 500 ) );
307 frame->SetSize( (m_parent->GetSize() * 3) / 4 );
308
309 frame->Raise(); // Needed on Ubuntu/Unity to display the frame
310 frame->Show( true );
311}
312
313
315{
316 if( Pgm().m_Printing )
317 {
318 DisplayError( this, _( "Previous print job not yet complete." ) );
319 return false;
320 }
321
323
324 int sheet_count = m_parent->Schematic().Root().CountSheets();
325
326 wxPrintDialogData printDialogData( m_parent->GetPageSetupData().GetPrintData() );
327 printDialogData.SetMaxPage( sheet_count );
328
329 if( sheet_count > 1 )
330 printDialogData.EnablePageNumbers( true );
331
332 wxPrinter printer( &printDialogData );
333 SCH_PRINTOUT printout( m_parent, _( "Print Schematic" ) );
334
335 Pgm().m_Printing = true;
336 {
337 if( !printer.Print( this, &printout, true ) )
338 {
339 if( wxPrinter::GetLastError() == wxPRINTER_ERROR )
340 DisplayError( this, _( "An error occurred attempting to print the schematic." ) );
341 }
342 else
343 {
344 m_parent->GetPageSetupData() = printer.GetPrintDialogData().GetPrintData();
345 }
346 }
347
348 Pgm().m_Printing = false;
349
350 return true;
351}
352
353
355{
357
358 wxCHECK_MSG( page >= 1 && page <= (int)sheetList.size(), false,
359 wxT( "Cannot print invalid page number." ) );
360
361 wxCHECK_MSG( sheetList[ page - 1].LastScreen() != nullptr, false,
362 wxT( "Cannot print page with NULL screen." ) );
363
364 wxString msg;
365 msg.Printf( _( "Print page %d" ), page );
366 m_parent->SetMsgPanel( msg, wxEmptyString );
367
368 SCH_SCREEN* screen = m_parent->GetScreen();
369 SCH_SHEET_PATH oldsheetpath = m_parent->GetCurrentSheet();
370 m_parent->SetCurrentSheet( sheetList[ page - 1 ] );
373 screen = m_parent->GetCurrentSheet().LastScreen();
374 PrintPage( screen );
375 m_parent->SetCurrentSheet( oldsheetpath );
378
379 return true;
380}
381
382
383void SCH_PRINTOUT::GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo )
384{
385 *minPage = *selPageFrom = 1;
386 *maxPage = *selPageTo = m_parent->Schematic().Root().CountSheets();
387}
388
389
390bool SCH_PRINTOUT::HasPage( int pageNum )
391{
392 return m_parent->Schematic().Root().CountSheets() >= pageNum;
393}
394
395
396bool SCH_PRINTOUT::OnBeginDocument( int startPage, int endPage )
397{
398 if( !wxPrintout::OnBeginDocument( startPage, endPage ) )
399 return false;
400
401 return true;
402}
403
404
405/*
406 * This is the real print function: print the active screen
407 */
409{
410 // Warning:
411 // When printing many pages, changes in the current wxDC will affect all next printings
412 // because all prints are using the same wxPrinterDC after creation
413 // So be careful and reinit parameters, especially when using offsets.
414
415 VECTOR2I tmp_startvisu;
416 wxSize pageSizeIU; // Page size in internal units
417 VECTOR2I old_org;
418 wxRect fitRect;
419 wxDC* dc = GetDC();
420
421 wxBusyCursor dummy;
422
423 // Save current offsets and clip box.
424 tmp_startvisu = aScreen->m_StartVisu;
425 old_org = aScreen->m_DrawOrg;
426
427 SETTINGS_MANAGER& mgr = Pgm().GetSettingsManager();
430
431 // Change scale factor and offset to print the whole page.
432 bool printReference = cfg->m_Printing.title_block;
433
434 pageSizeIU = aScreen->GetPageSettings().GetSizeIU( schIUScale.IU_PER_MILS );
435 FitThisSizeToPaper( pageSizeIU );
436
437 fitRect = GetLogicalPaperRect();
438
439 // When is the actual paper size does not match the schematic page size, the drawing will
440 // not be centered on X or Y axis. Give a draw offset to center the schematic page on the
441 // paper draw area.
442 int xoffset = ( fitRect.width - pageSizeIU.x ) / 2;
443 int yoffset = ( fitRect.height - pageSizeIU.y ) / 2;
444
445 // Using a wxAffineMatrix2D has a big advantage: it handles different pages orientations
446 //(PORTRAIT/LANDSCAPE), but the affine matrix is not always supported
447 if( dc->CanUseTransformMatrix() )
448 {
449 wxAffineMatrix2D matrix; // starts from a unity matrix (the current wxDC default)
450
451 // Check for portrait/landscape mismatch:
452 if( ( fitRect.width > fitRect.height ) != ( pageSizeIU.x > pageSizeIU.y ) )
453 {
454 // Rotate the coordinates, and keep the draw coordinates inside the page
455 matrix.Rotate( M_PI_2 );
456 matrix.Translate( 0, -pageSizeIU.y );
457
458 // Recalculate the offsets and page sizes according to the page rotation
459 std::swap( pageSizeIU.x, pageSizeIU.y );
460 FitThisSizeToPaper( pageSizeIU );
461 fitRect = GetLogicalPaperRect();
462
463 xoffset = ( fitRect.width - pageSizeIU.x ) / 2;
464 yoffset = ( fitRect.height - pageSizeIU.y ) / 2;
465
466 // All the coordinates will be rotated 90 deg when printing,
467 // so the X,Y offset vector must be rotated -90 deg before printing
468 std::swap( xoffset, yoffset );
469 yoffset = -yoffset;
470 }
471
472 matrix.Translate( xoffset, yoffset );
473 dc->SetTransformMatrix( matrix );
474 }
475 else
476 {
477 SetLogicalOrigin( 0, 0 ); // Reset all offset settings made previously.
478 // When printing previous pages (all prints are using the same wxDC)
479 OffsetLogicalOrigin( xoffset, yoffset );
480 }
481
482 dc->SetLogicalFunction( wxCOPY );
483 GRResetPenAndBrush( dc );
484
485 COLOR4D savedBgColor = m_parent->GetDrawBgColor();
487
488 if( cfg->m_Printing.background )
489 {
490 if( cfg->m_Printing.use_theme && theme )
491 bgColor = theme->GetColor( LAYER_SCHEMATIC_BACKGROUND );
492 }
493 else
494 {
495 bgColor = COLOR4D::WHITE;
496 }
497
498 m_parent->SetDrawBgColor( bgColor );
499
500 GRSFilledRect( dc, fitRect.GetX(), fitRect.GetY(), fitRect.GetRight(), fitRect.GetBottom(), 0,
501 bgColor, bgColor );
502
503 if( cfg->m_Printing.monochrome )
504 GRForceBlackPen( true );
505
507 renderSettings.SetPrintDC( dc );
508
509 if( cfg->m_Printing.use_theme && theme )
510 renderSettings.LoadColors( theme );
511
512 renderSettings.SetBackgroundColor( bgColor );
513
514 // The drawing-sheet-item print code is shared between PCBNew and Eeschema, so it's easier
515 // if they just use the PCB layer.
516 renderSettings.SetLayerColor( LAYER_DRAWINGSHEET,
518
519 renderSettings.SetDefaultFont( cfg->m_Appearance.default_font );
520
521 if( printReference )
522 {
523 m_parent->PrintDrawingSheet( &renderSettings, aScreen, aScreen->Schematic()->GetProperties(),
524 schIUScale.IU_PER_MILS, aScreen->GetFileName(), wxEmptyString );
525 }
526
527 renderSettings.SetIsPrinting( true );
528
529 aScreen->Print( &renderSettings );
530
531 m_parent->SetDrawBgColor( savedBgColor );
532
533 GRForceBlackPen( false );
534
535 aScreen->m_StartVisu = tmp_startvisu;
536 aScreen->m_DrawOrg = old_org;
537}
538
539
541{
542 DIALOG_PRINT_USING_PRINTER dlg( aCaller );
543
544 return dlg.ShowModal();
545}
constexpr EDA_IU_SCALE schIUScale
Definition: base_units.h:111
wxString m_ColorTheme
Active color theme name.
Definition: app_settings.h:187
VECTOR2I m_DrawOrg
offsets for drawing the circuit on the screen
Definition: base_screen.h:88
VECTOR2I m_StartVisu
Coordinates in drawing units of the current view position (upper left corner of device)
Definition: base_screen.h:93
Color settings are a bit different than most of the settings objects in that there can be more than o...
COLOR4D GetColor(int aLayer) const
Class DIALOG_PRINT_USING_PRINTER_BASE.
void OnPrintPreview(wxCommandEvent &event) override
DIALOG_PRINT_USING_PRINTER(SCH_EDIT_FRAME *aParent)
void OnUseColorThemeChecked(wxCommandEvent &event) override
void OnMonochromeChecked(wxCommandEvent &event) override
void OnPageSetup(wxCommandEvent &event) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
virtual void SetDrawBgColor(const COLOR4D &aColor)
void PrintDrawingSheet(const RENDER_SETTINGS *aSettings, BASE_SCREEN *aScreen, const std::map< wxString, wxString > *aProperties, double aMils2Iu, const wxString &aFilename, const wxString &aSheetLayer=wxEmptyString)
Prints the drawing-sheet (frame and title block).
wxString GetFilename() const
Definition: json_settings.h:73
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
void SetLayerColor(int aLayer, const COLOR4D &aColor)
Change the color used to draw a layer.
void SetDefaultFont(const wxString &aFont)
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void SetPrintDC(wxDC *aDC)
void SetIsPrinting(bool isPrinting)
Store schematic specific render settings.
Definition: sch_painter.h:71
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
Definition: sch_painter.h:94
void LoadColors(const COLOR_SETTINGS *aSettings) override
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:54
wxPrintOrientation GetWxOrientation() const
Definition: page_info.h:122
int GetHeightMils() const
Definition: page_info.h:133
wxPaperSize GetPaperId() const
Definition: page_info.h:127
int GetWidthMils() const
Definition: page_info.h:130
bool IsCustom() const
Definition: page_info.cpp:181
bool IsPortrait() const
Definition: page_info.h:117
const wxSize GetSizeIU(double aIUScale) const
Gets the page size in internal units.
Definition: page_info.h:162
SCH_SHEET_LIST GetSheets() const override
Builds and returns an updated schematic hierarchy TODO: can this be cached?
Definition: schematic.h:86
const std::map< wxString, wxString > * GetProperties()
Definition: schematic.h:79
SCH_SHEET & Root() const
Definition: schematic.h:91
EESCHEMA_SETTINGS * eeconfig() const
KIGFX::SCH_RENDER_SETTINGS * GetRenderSettings()
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
COLOR4D GetDrawBgColor() const override
Schematic editor (Eeschema) main window.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
wxPageSetupDialogData & GetPageSetupData()
SCH_SHEET_PATH & GetCurrentSheet() const
SCHEMATIC & Schematic() const
void SetSheetNumberAndCount()
Set the m_ScreenNumber and m_NumberOfScreens members for screens.
void SetCurrentSheet(const SCH_SHEET_PATH &aSheet)
Custom schematic print preview frame.
bool Show(bool show) override
SCH_PREVIEW_FRAME(wxPrintPreview *aPreview, wxWindow *aParent, const wxString &aTitle, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize)
Custom print out for printing schematics.
bool HasPage(int page) override
bool OnPrintPage(int page) override
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
SCH_PRINTOUT(SCH_EDIT_FRAME *aParent, const wxString &aTitle)
SCH_EDIT_FRAME * m_parent
void PrintPage(SCH_SCREEN *aScreen)
bool OnBeginDocument(int startPage, int endPage) override
const PAGE_INFO & GetPageSettings() const
Definition: sch_screen.h:131
void Print(const RENDER_SETTINGS *aSettings)
Print all the items in the screen to aDC.
const wxString & GetFileName() const
Definition: sch_screen.h:144
SCHEMATIC * Schematic() const
Definition: sch_screen.cpp:88
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void UpdateAllScreenReferences() const
Update all the symbol references for this sheet path.
SCH_SCREEN * LastScreen()
int CountSheets() const
Count the number of sheets found in "this" sheet including all of the subsheets.
Definition: sch_sheet.cpp:767
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
@ WHITE
Definition: color4d.h:48
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:280
This file is part of the common library.
int InvokeDialogPrintUsingPrinter(SCH_EDIT_FRAME *aCaller)
Create and show DIALOG_PRINT_USING_PRINTER and return whatever DIALOG_PRINT_USING_PRINTER::ShowModal(...
#define _(s)
void GRForceBlackPen(bool flagforce)
Definition: gr_basic.cpp:150
void GRResetPenAndBrush(wxDC *DC)
Definition: gr_basic.cpp:72
void GRSFilledRect(wxDC *aDC, int x1, int y1, int x2, int y2, int aWidth, const COLOR4D &aColor, const COLOR4D &aBgColor)
Definition: gr_basic.cpp:413
@ LAYER_DRAWINGSHEET
drawingsheet frame and titleblock
Definition: layer_ids.h:217
@ LAYER_SCHEMATIC_DRAWINGSHEET
Definition: layer_ids.h:382
@ LAYER_SCHEMATIC_BACKGROUND
Definition: layer_ids.h:376
int Mils2mm(double aVal)
Convert mils to mm.
Definition: eda_units.cpp:62
SETTINGS_MANAGER * GetSettingsManager()
see class PGM_BASE
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
static LIB_SYMBOL * dummy()
Used to draw a dummy shape when a LIB_SYMBOL is not found in library.
Definition: sch_symbol.cpp:74
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
Definition: single_top.cpp:111
bool monochrome
Whether or not to print in monochrome.
Definition: app_settings.h:137
bool background
Whether or not to print background color.
Definition: app_settings.h:136
wxString color_theme
Color theme to use for printing.
Definition: app_settings.h:140
bool title_block
Whether or not to print title block.
Definition: app_settings.h:141
bool use_theme
If false, display color theme will be used.
Definition: app_settings.h:139
const double IU_PER_MILS
Definition: base_units.h:78
#define M_PI_2
Definition: transline.cpp:40