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
jean-pierre charras
04aa5519d0
Gerbview: code cleanup. Remove many include, now useless.
5 years ago
jean-pierre charras
ef0ae8a8ee
Gerbview: show a message instead of an error when trying to open a job file as plot file.
Fixes #4844
https://gitlab.com/kicad/code/kicad/issues/4844
5 years ago
jean-pierre charras
54caebb04a
Fix translation issues and a typo
6 years ago
Jeff Young
ed3e366715
Actionize Gerber file commands.
Fixes https://gitlab.com/kicad/code/kicad/issues/2408
6 years ago
jean-pierre charras
b7cd0c54c2
Fix compil issues, especially on Windows:
Replace SEVERITY_ERROR by RPT_SEVERITY_ERROR to avoid collision with a system definition.
Replace other SEVERITY_XXX by RPT_SEVERITY_XX for consistency.
Fix compil warnings and some other compil issues.
6 years ago
Jeff Young
85c2e0d23a
Add user-defined severities, exclusions and colors to DRC markers.
Exclusions are currently persisted in the project file.
Fixes https://gitlab.com/kicad/code/kicad/issues/1989
6 years ago
Ian McInerney
879a8f4efb
Rework the file history menus to not need references to the file history
Keeping a pointer to the actual file history inside a special
file history menu led to many cases of use after free crashes,
so instead rework the actual file history to add the menu
items.
Fixes https://gitlab.com/kicad/code/kicad/issues/3741
6 years ago
Jon Evans
0748ec16ed
Fix assertions in progress bar on MSW64
6 years ago
John Beard
44a6a61ff9
Gerbview: fix formatting assert
In GERBVIEW_FRAME::loadListOfGerberAndDrillFiles, the variables
ii and aFilenameList.GetCount() are unsigned and size_t, respectively.
This means the format string must be %u and %lu, respectively.
6 years ago
jean-pierre charras
4f73530c4a
Gerbview: better progress reporter info when loading more than one file
6 years ago
Jeff Young
8f84c3ec4f
Grid rid of GetCanvas/GetGalCanvas distinction now that there's only gal.
6 years ago
Jeff Young
c2662b0e11
Retire EDA_DRAW_PANEL and legacy_wx/EDA_DRAW_FRAME.
6 years ago
Jeff Young
d2daab808c
Remove some legacy cursor handling stuff.
6 years ago
Jeff Young
b7c12b238f
Increase GervView layers to 51.
This also makes its use of LSET consistent with PCBNew.
Fixes: lp:1809019
* https://bugs.launchpad.net/kicad/+bug/1809019
7 years ago