Jeff Young
238719184e
Prevent assert (and access violation) in wxWidgets.
(It directly dereferences the ArrayString with the
FilterIndex, without bounds checking it.)
3 months ago
Jeff Young
af1a246e12
Nullptr safety.
4 months ago
Jeff Young
06dcb64ad8
Harden progress reporter API against misuse.
Also, titles are nouns, not verbs. (Messages
*inside* reporters are verbs.)
Also implements progress reporter for Altium
schematic import.
4 months ago
jean-pierre charras
c7e4875505
Gerbview: fix a few issues when loading zip files
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20779
6 months ago
Seth Hillbrand
0b2d4d4879
Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo. Avoids needing to
repeatly update.
Also updates AUTHORS.txt from current repo with contributor names
9 months ago
Alex Shvartzkop
36019314e9
Make simulation reporter warnings non-fatal.
Adds REPORTER::HasMessageOfSeverity for WX_STRING_REPORTER,
which allows us to show simulation warnings and fail only if there's errors.
Also fixes a crash when SPICE_GENERATOR_KIBIS throws an IO_ERROR.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18143
1 year ago
Seth Hillbrand
cc850d0da0
Split out LSEQ/LSET from LAYER_ID
Separate the layer grouping classes for easier modification
1 year ago
jean-pierre charras
36b9ef0dc9
Gerbview: update view items after reordering/modifying view layers.
Previously, after updating the gerber layer order, displayed D_codes where
not always those corresponding to the active layer.
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Ian McInerney
55caa9c1e8
Fix casing for gerber wildards
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15877
2 years ago
Ian McInerney
2fb6f19a84
Separate immediate and delayed action dispatch
Using a boolean argument just leads to a lot of trailing booleans in the
function calls and is not user friendly. Instead, introduce PostAction()
to send an action that runs after the coroutine (equivalent to passing
false or the default argument), and leave RunAction as the immediate
execution function.
2 years ago
Ian McInerney
480223f67c
More RunAction specialization
3 years ago
qu1ck
0c049eccc7
Fix a bunch of compiler warnings
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
30a4d3d2de
Coverity fixes.
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
Jeff Young
4e3109a633
Wide string decls for gerbview.
4 years ago
Mike Williams
6ddd5ec37f
Gerbview: Add menu item to open files with autodetection
Needs an icon at some point
4 years ago
Mike Williams
8692014691
Gerbview: consolidate some dialog code
Preparing also for a third usage where we autodetect the file type
4 years ago
Mike Williams
db407a1c0b
Gerbview: clean up loading files to prepare for more autodetection
4 years ago
Mike Williams
eee20f9f67
Gerbview: reduce redundant file loading code
4 years ago
Mike Williams
4140ab118e
Gerbview: remove extra linebreaks from errors messages
4 years ago
Mike Williams
2612b94519
Gerbview: always search for the first available layer
4 years ago
Mike Williams
9a0d4f5ba4
Gerbview: don't erase current layer before loading files
Since we now load into the next available layer, don't erase our current
layer.
4 years ago
Mike Williams
5767a08008
Gerbview: select first layer of opened archive
4 years ago
Mike Williams
2dd6b98b89
Gerbview: Load files into new layers
4 years ago
Mike Williams
3338745637
Gerbview: auto sort zip files based on X2 or extensions
4 years ago
Mike Williams
da2e7e158b
Gerbview: Attempt to parse unknown files as gerber/drill
Test parsing function transmogrified from gerbv 2.7.0. gEDA suite is GPL
2+ so should be license compatible with our GPL3.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/1848
4 years ago
Mike Williams
21a8dd6302
Gerbview: Better file extension association when opening zips
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/7855
4 years ago
Jeff Young
3aae3c6f65
Dark mode for a bunch of HTML dialogs.
WX_HTML_REPORT_BOX
WX_HTML_REPORT_PANEL
HTML_MESSAGEBOX
DIALOG_DISPLAY_HTML_TEXT
Fixes https://gitlab.com/kicad/code/kicad/issues/9157
Fixes https://gitlab.com/kicad/code/kicad/issues/9156
4 years ago
Seth Hillbrand
d8bc7f1bd4
Fix Gerbview extension display
4 years ago
Mike Williams
30987cebfe
Gerbview: fix cairo negative items and implement real differential mode
Layers with negative objects need to be drawn in a subsurface before
copying so they don't _CLEAR the draw items below them when a negative
object is drawn.
Differential layers are basically the same thing only they use a
different copying operation onto the layers below.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1863
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4495
4 years ago
Seth Hillbrand
db5ce824af
Use wildcard routine for extension matching
Move STEP export dialog wildcard to extension matching
4 years ago
Seth Hillbrand
4cd9278041
Remove most wxFilepicker wildcards from translations
This prevents translation errors from preventing user actions such as
opening the correct file
4 years ago
Jeff Young
41619ebbe2
Decouple PROGRESS_REPORTER interface from implementations.
4 years ago
Pradeepa Senanayake
c006a4f26e
Fixed style warnings
4 years ago
Pradeepa Senanayake
109e40c3a6
Ensure auto zoom is enabled when it's the first file
4 years ago
Pradeepa Senanayake
8f4ff1e954
Disabled zoom-to-fit when loading gerb files
4 years ago
Pradeepa Senanayake
9b7d056563
Moved auto zoom outside of the function which loads the gerbers and drill files
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8849
4 years ago
Jeff Young
5c21f93803
Consistency in progress and error messages.
4 years ago
Jeff Young
1722bc03b0
Consistent terminology and punctuation.
4 years ago
Marek Roszko
f9769dba13
Kick wx.h out of gerbview
4 years ago
Marek Roszko
850a22c3ae
Try/catch gerber file loading in attempt to catch oom
Potentially help with #7444
5 years ago
Jeff Young
34d3218f73
Translation cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/6078
5 years ago
Marek Roszko
4b38bada76
Move the gerbview widgets to their own folder
5 years ago
Marek Roszko
e49ac45b84
HTML_MESSAGE_BOX is a dialog
5 years ago
Marek Roszko
a1c75748a0
Remove GetChars(), a wxWidgets 2.9 compatibility hack
5 years ago
Ian McInerney
4215917834
gerbview: Move more items to actions
5 years ago