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.
5 years ago
Jeff Young
1722bc03b0
Consistent terminology and punctuation.
5 years ago
Marek Roszko
f9769dba13
Kick wx.h out of gerbview
5 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
6 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.
7 years ago
Jeff Young
c2662b0e11
Retire EDA_DRAW_PANEL and legacy_wx/EDA_DRAW_FRAME.
7 years ago
Jeff Young
d2daab808c
Remove some legacy cursor handling stuff.
7 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
Wayne Stambaugh
f20a1314ff
GerbView: remember last open gerber file dialog wildcard.
This is only for the current GerbView session. When GerbView is closed,
the last open gerber file dialog wildcard setting is lost.
7 years ago
jean-pierre charras
ff73f69d3e
Gerbview: fix crash when reading a .gbrjob, and when a file given by the .gbrjob is not found.
A incorrect gerber image was created, creating crash on exit or when enable the layer view.
7 years ago
John Beard
658cc8fd96
Wildcards: unify handling of all files wildcards
Use the AddFileExtListToFilter() to also generate the
wildcard for "all files". This is because:
* Users can use AddFileExtListToFilter for the all files WC
with the same interface as for any other extensions.
* Users do not need to worry about wxGetTranslation, as the
_() is applied in the same way as the other *Wildcard() helpers,
and it is a function just like the others, so it is consistent
* There is a testable interface to document the expected result.
The test is added.
7 years ago
jean-pierre charras
d546fce7c4
Gerbview: drill file dialog selector: add .nc and .xnc to drill file extension list.
Therefore file extension list is ".drl .nc .xnc" for NC (Excellon) drill files.
7 years ago
jean-pierre charras
3e2f8bcb1d
Gerbview: fix broken behavior of "Reload file" tool.
Previous code was unable to reload drill files: they were reloaded as gerber files.
7 years ago
jean-pierre charras
542c57ff27
Gerbview, Excellon (NC) drill files reader: routing mode: better handling of malformed files.
Routing mode starts by M15 (or G01, G02, G03) and ends by M16 or M17.
Accept now a end routing if a G00 (start move) G05 (switch to drill mode) or M30 (end of file) is encountered.
7 years ago
Nabeel Ahmad
664fb234ff
GerbView: Add actions to reload files
NEW: Adds new items in File Menu and Toolbar to reload the Gerber files
for all layers.
Fixes: lp:1794004
* https://bugs.launchpad.net/kicad/+bug/1794004
7 years ago
Carsten Schoenert
a11714b1a4
fix misspelled 'an other' -> 'another'
8 years ago
Jon Evans
213b600b54
Revert active layer behavior so gerber/drill load behavior matches
Fixes: lp:1755713
* https://bugs.launchpad.net/kicad/+bug/1755713
8 years ago
Clemens Koller
f7ef010fe1
GerbView: Minor cleanup of Menus + Toolbar for consistency.
replace: File -> File(s) when wxFD_MULTIPLE
replace: Load -> Open
replace: Erase -> Clear
add Excellon / Gerber where it makes sense
re-sort File menu
8 years ago
Jon Evans
2da7199a37
GerbView: Fix active layer synchronization
8 years ago
Jon Evans
2c54f6fe32
GerbView: Fix DCode reordering; ensure loaded layers are visible
8 years ago
Jon Evans
de483ac1aa
GerbView: only erase current layer if a new file is chosen
8 years ago
jean-pierre charras
eb94d2fcd0
Gerbview: fix an issue when loading files: Layer filenames order in right tab view modified each time a new file is loaded.
It creates strange issues (inconsistent layer filenames order, inconsistent items colors) especially with non X2 files.
8 years ago
Jon Evans
0c9d11c180
Add progress reporting for GerbView file loading
8 years ago
Jeff Young
7e0ff6fe8d
Fix current directory issue loading Gerbers.
Fixes: lp:1750361
* https://bugs.launchpad.net/kicad/+bug/1750361
8 years ago
jean-pierre charras
a0ac1a48c2
Gerbview: fix code after renaming files
8 years ago