jean-pierre charras
00d77f624a
Gerbview: fix coding style (better names for variable members is some classes).
(no actual change in code)
3 years ago
Jon Evans
c530bdb5a1
Rename GetSelectMenuText to GetItemDescription
This descriptive text is used for many more things than
just the select menu these days.
3 years ago
Jeff Young
30c9deb9d5
Flat(er) look for paged dialogs.
3 years ago
Wayne Stambaugh
f28ea5e784
Remove standard dialog button static line separators.
For the sake of consistency across all dialogs and window that behave
like dialogs, remove the static line that separates the main part of
the dialog from the standard buttons. This only applies to windows
that have the standard button on the bottom of the frame.
This covers the 3D viewer, CvPcb, common, GerbView and KiCad dialogs.
3 years ago
Gary Kim
8e8a3c7bdc
Do not translate name in version info
Leave the application name in version info untranslated when
viewed, copied, or used in a bug report.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13298
3 years ago
Jeff Young
4c63b4e061
Class name <-> file name sync.
3 years ago
jean-pierre charras
157b93c4ae
Gerbview and Pl_editor: fix missing transfer from preference dialog to Gal options.
Some settings (cursor shape, grid options) were not taken in account after
closing the preferences dialog.
3 years ago
Daniil Nikolaev
605d177810
Gerbview: Check RS274X AD command's template parameters
If user opens a specially crafted gerber file, this check prevents Gerbview from infinitely consuming memory.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13235
3 years ago
Mike Williams
1f178e2b93
Gerbview: fix broken XOR mode
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10122
3 years ago
Jon Evans
5abf73e3c9
Never call ReCreateMenuBar inside a menu event handler
As of wxWidgets 3.2, the wxWidgets event handler runs code after the
the client event handler that depends on the menu still existing.
Because there are potentially many paths to call ReCreateMenuBar from
within a menu event handler, let's just wrap this action in a CallAfter
to make sure it happens after the wx handler call completes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13149
3 years ago
Jeff Young
366cad1f01
Uniformly translate "<no net>" message.
3 years ago
Alexander Dewing
02325130fa
Initial arm64 work
4 years ago
Jeff Young
96819f6c01
Better cache invalidation for text objects with references.
Fixes https://gitlab.com/kicad/code/kicad/issues/13059
3 years ago
jean-pierre charras
f0527fac67
Gerbview, read zip archive: do not generate a error message for directory names.
A directory is not a file, and is now just skipped.
3 years ago
Jeff Young
b09a106880
Split gerbview diff and xor into two separate view modes.
Fixes https://gitlab.com/kicad/code/kicad/issues/10122
3 years ago
Alex
53b9baa5ba
Some refactoring around Gerber files extension checking.
Fixes a case where most Protel inner layer files couldn't be drag and dropped.
3 years ago
Jeff Young
13f5c78e89
More tightening of group parent lifecycles.
Fixes https://gitlab.com/kicad/code/kicad/issues/12908
3 years ago
jean-pierre charras
9501f4303d
Rename CreateWindow to CreateKiWindow to avoid a collision name with a windows header
No code change, but it fix an issue specific to msys2 that bother me when
trying to fix issues with wx 3.0.x version
3 years ago
jean-pierre charras
504adb3467
Eeschema Back annotation: fix broken handling of full sheet paths of symbols.
Fixes #12767
https://gitlab.com/kicad/code/kicad/issues/12767
3 years ago
Bevan Weiss
38b54b62e0
Fixes ability for Export to PCB new to handle plain Gerber drill files (gbr).
In addition to Excellon.
Also fixes issue with layer mapping dialogue text colors not updating on selection.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
3 years ago
jean-pierre charras
8963e4187a
Gerbview,export_to_pcbnew: fix a crash and incorrect export of some shapes
3 years ago
Marek Roszko
d6f8ca9a2e
Patch out the install for argparse
3 years ago
Mark Roszko
fb8a4c10f7
Shove kicad2step into pcbnew itself with a new cli
3 years ago
Ian McInerney
40ff7cb9bd
Fix some UI element spacing in settings panels
3 years ago
Ian McInerney
6b218ff764
Remove uneeded file pointer in gerbview code
3 years ago
Ian McInerney
eb2ea5bcd6
gerbview: Cleanup some unsigned comparisons that were extraneous
3 years ago
Jeff Young
7f34586c7e
Allow text variable resolution through properties in drawing sheet text.
Fixes https://gitlab.com/kicad/code/kicad/issues/12473
3 years ago
Jeff Young
30a4d3d2de
Coverity fixes.
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Mike Williams
9304607624
TOOL_EVENT: make command string non-optional
We're getting segfaults in places where this isn't checked. Also, add
some asserts so we can catch bad tool push/pop.
Removes all uses of GetCommandStr() and makes it private.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Marek Roszko
f26a6f76e4
IUToMils should return int
It was already truncating even in old code...lets just clean this up
3 years ago
Marek Roszko
ece23d434b
Split up Double2Str to a format function to make its use case clear
3 years ago
Marek Roszko
3d5913c825
Remove convert_to_biu.h, merge contents to base_units.h
3 years ago
Marek Roszko
66e8931405
Remove IU_PER_MM thats standalone
3 years ago
Marek Roszko
7a5829f8d6
Move IU2Mils
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Marek Roszko
ade5178c8c
Remove two common source files from gerbview
These are strangely already part of common but redeclared here
3 years ago
Seth Hillbrand
524b129c64
ADDED: Support for explicit DNP field
Dims elements shown as DNP. Adds property `dnp` to explicitly denote
parts that should not be populated. These parts are not included in X/Y
files
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
lulu731
0180bcf90a
ADDED: Implement Drag and Drop
dropping files to Kicad manager :
*.kicad_pro, *.pro -> open project;
gerber and job files -> open in Gerbview editor;
Eagle and Cadstar files -> open project.
dropping file to schematic editor -> append schematic;
dropping library file to Symbol editor -> add library;
dropping board file to PCB editor -> append board;
dropping library or footprint file to Footprint editor -> add library or import footprint;
dropping ZIP file or gerber files to Gerbview editor -> open files;
dropping sheet file to Drawing Sheet editor -> open sheet.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11638
3 years ago
jean-pierre charras
babffb230d
Revert "Gerber viewer: move layer colors with layers"
This reverts commit 75ed6b3ce7 .
It was a not really tested feature: It has a serious side effect: the color
settings are modified each time a .gbrjob is loaded (or loaded layers are sorted)
3 years ago
jean-pierre charras
a0d859c324
Gerbview: fix some issues related to color settings.
Now colors can be set both from the Layer manager and the
color settings panel, without loss of settings.
3 years ago
jean-pierre charras
6eb7c176a7
Gerbview: fix some issues (not all) related to color settings.
Some are old issues, probably related to Kicad code change.
3 years ago
Jeff Young
b95d9d660d
Move gerbview colors to preferences dialog.
3 years ago
jean-pierre charras
9626f0b66c
Gerbview: fix a minor but annoying issue about the drawing sheet color.
The color was not always the selected color but sometimes the default color.
3 years ago
jean-pierre charras
0b233d593a
Gerbview: fix missing pad shapes when exporting to Pcbnew.
3 years ago
Jeff Young
c30a557810
ADDED netclass assignment from PCB canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/5975
3 years ago
Jeff Young
9188838e50
RIP EDA_RECT.
3 years ago