Jeff Young
2f9889ff62
Add settings for plotting PDF property popups.
Fixes https://gitlab.com/kicad/code/kicad/issues/14450
3 years ago
Jeff Young
1c6b765ba5
Formatting and cleanup.
3 years ago
jean-pierre charras
31bad5baaa
Avoid duplicating similar options in print and plot headers
3 years ago
Marek Roszko
b058ef2d87
Add the missing black and white setting to Plot -> SVG
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Marek Roszko
c418b25756
Centralize the parseDouble functions in the parsers and gcc specialcase
3 years ago
Marek Roszko
a070959209
Switch from strtod to std::from_chars for performance
3 years ago
Wayne Stambaugh
0bdbfe1446
Pcbnew: add plot on all layers feature.
ADDED: Any addition board layers can be plotted on all selected board layer
when plotting.
CHANGED: The new plot to all layers feature made the plot edge cuts option
obsolete. Users must now select the edge cuts layer from the list of
plot to all layer selections to include edge cuts on all layers when
plotting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2449
4 years ago
jean-pierre charras
5b8eb8f9ec
SVG plotter rework: use mm as units in file. Remove useless inch option.
Use 4 digits in mantissa as default and when exporting SVG.
Allow 0 as line width: this is the right value to draw filled shapes with no outline thickness.
4 years ago
Jeff Young
933b82495d
Use ISO 128-2 values for dashed line defaults.
4 years ago
Jeff Young
f1410f0240
Line styles for PCBNew shapes.
Fixes https://gitlab.com/kicad/code/kicad/issues/2150
4 years ago
Wayne Stambaugh
46b959c3e3
Move plotter headers into include folder.
4 years ago
Jeff Young
f221220fe2
Rename layer ids file.
It hasn't had anything to do with colors or visibility for some time
now.
4 years ago
Wayne Stambaugh
cf00319c85
More NULL expunging.
4 years ago
Seth Hillbrand
624a231cc0
Remove unused line width option
You had to set the line width in the SVG export dialog in order to
change the displayed line width in the 3d viewer. The line width did
not affect the SVG export. Removing in favor of the Board design
settings for line widths
5 years ago
Jeff Young
491fc2c8f2
Save DXF plot params to file and remove some dead code.
Fixes https://gitlab.com/kicad/code/kicad/issues/6720
5 years ago
jean-pierre charras
c87faad344
Python compatibility: move DXF_PLOTTER::DXF_UNITS to DXF_UNITS in pcb_plot_params.h
Fixes #6034
https://gitlab.com/kicad/code/kicad/issues/6034
5 years ago
jean-pierre charras
213a74cbe6
Gerber, Dialog plot: add option to disable Aperture Macro use.
Some broken Gerber readers cannot handle Aperture Macros without errors
although this feature exists since the beginning of RS274X format.
5 years ago
Jeff Young
d305e9c715
Line width safety for PSLIKE plotter and some cleanup.
5 years ago
Jon Evans
2cbae18598
Remove PCBNEW_SETTINGS dependence from PCB_PLOT_PARAMS
6 years ago
jean-pierre charras
eae0c142fe
Eeschema, DIALOG_PLOT_SCHEMATIC: fix incorrect unit of default pen width.
The default line width used to set the default pen width is given in mils,
and the conversion to iu was missing.
Fix also a minor Coverity warning.
Fixes #4594
https://gitlab.com/kicad/code/kicad/issues/4594
6 years ago
Jeff Young
10614a9ebc
Implement changes for Sketch Pads to Fab Layers.
Includes adding Fab Layers to default text & graphic settings.
Fixes https://gitlab.com/kicad/code/kicad/issues/1885
Fixes https://gitlab.com/kicad/code/kicad/issues/2274
6 years ago
Jon Evans
2d95270a31
Add color theme settings to pcbnew
6 years ago
jean-pierre charras
fd59660ec8
Save new svg plot options in the board plot parameters section.
6 years ago
Johannes Pfister
e5042a46ba
Add ability to set SVG plot units and precision
ADDED: Ability to set SVG to metric or imperial units
and made it possible to change the size of a step
6 years ago
Jon Evans
34aee50ae1
Rework plotting colors to ensure color settings are always available
6 years ago
jean-pierre charras
259d7a47d4
Pcbnew: enhancements:
Plot Gerber format default values: X2 attributes enabled.
Gerber job file: use a trick to truncate floating values to 4 digits in mantissa.
It gives a much better readability and 0.1 micron is enough for
mechanical dimensions
6 years ago
Jon Evans
4f555e7794
Fix QA crash: Pgm is null in test suite
6 years ago
Jon Evans
e59a3d981e
Implement a new settings framework across all of KiCad
CHANGED: Settings are now stored in versioned sub-directories
ADDED: First-run dialog for migrating settings from a previous version
CHANGED: Settings are now stored as JSON files instead of wxConfig-style INI files
CHANGED: Color settings are now all stored in a separate settings file
CHANGED: The symbol editor and footprint editor now have their own settings files
CHANGED: Color settings are no longer exposed through BOARD object
CHANGED: Page layout editor now uses Eeschema's color scheme
Settings are now managed through a central SETTINGS_MANAGER held by PGM_BASE.
Existing settings will be migrated from the wxConfig format on first run of each application.
Per-application settings are now stored in one class for each application.
6 years ago
Ian McInerney
13b6028e1b
Refactor all math into a new kimath library
* Split up the thirdparty code into the thirdparty folder (#3637 )
* Create a new kimath static library containing all the math functions
This is part of cleaning the build system for #1906 .
6 years ago
jean-pierre charras
cd1f3acf49
Fix compil warnings
6 years ago
Mark Roszko
19ceb11ae7
Change more enums over to scoped enums
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
6 years ago
jean-pierre charras
f3f0e20a67
Pcbnew: add a board layer stack manager
This is a new feature.
6 years ago
Ian McInerney
ff9d899ae0
pcbnew: Clean up warnings with unit handling in the DXF export
6 years ago
Ian McInerney
d5f680ecd2
Allow DXF to be exported in either inches or millimeters
Fixes: lp:1832188
* https://bugs.launchpad.net/kicad/+bug/1832188
7 years ago
jean-pierre charras
7f20c55ed6
Pcbnew, Plot dialog, Gerber format: Enable or disable adding net metadata both in X1 and X2 format. Previously, this option was existing only in X2 format. Should be existing in both formats.
A bit of cleaning code related to this option.
7 years ago
Seth Hillbrand
1828e8cb0f
pcbnew: Use Default width define instead of nums
The board design settings file keeps our default values for various
thicknesses. We use this to replace a number of magic numbers with the
defined value to help self-document the code.
7 years ago
jean-pierre charras
f634b75652
Pcbnew, plot parameters: fix an issue for the "outputdirectory" parameter.
When the outputdirectory string was similar to a number, the .kicad_pcb file was no longer loadable.
Fixes: lp:1777957
https://bugs.launchpad.net/kicad/+bug/1777957
8 years ago
jean-pierre charras
7db88126c5
hpgl plot parameters: use double instead of int to store the pen diameter to avoid truncation.
This parameter, always in mm in a hpgl file, is for historical reasons stored in mils,
and using a int to store it created annoying rounding errors.
8 years ago
jean-pierre charras
e499d337d8
rename files: update filenames in sources
8 years ago
jean-pierre charras
59e5d3b762
pcbnew: plot dialog: Add advanced X2 features and Create job file options incorrectly saved in .kicad_pcb files (always saved ON)
Fixes: lp:1733876
https://bugs.launchpad.net/kicad/+bug/1733876
8 years ago
jean-pierre charras
bdc6a5950b
rename plot_common.h to class_plotter.h, a better name, consistent with other class definitions.
8 years ago
José Ignacio Romero
73c88bd0fe
Add more layers in default layers selection plot parameter.
8 years ago
jean-pierre charras
50164e9968
Add Gerber job file writer in Pcbnew, and a basic reader in Gerbview. Currently disabled
Fix also very minor issues in Gerbview
8 years ago
jean-pierre charras
816307e500
Pcbnew plot: fix a few minor issues:
- SVG export: fix color of PCB texts.
- Avoid marking board as modified after plotting layers, when options not saved in board are modified.
8 years ago
jean-pierre charras
557e69f72a
Fix many minor issues in dialog plot and plot DXF options.
8 years ago
Kristoffer Ödmark
19d5cc7548
Removed all exception specifiers since deprecated.
Exception specifiers are deprecated in cpp11, so went through them all
and removed them from the code.
9 years ago
Eldar Khayrullin
0af5695e51
Pcbnew: add option to plot DXF lines in outline mode.
Add option to plot dialog to plot DXF layers *.Cu, *.Adhes, *.Paste, and
*.Mask in outline mode or line mode.
Fixes lp:1643330
https://bugs.launchpad.net/kicad/+bug/1643330
9 years ago