Jeff Young
753d385473
Reduce dependency on dynamic_cast.
Also switches to checking __clang__ instead of __WXMAC__.
11 months ago
jean-pierre charras
b6bf7d6f44
Revert "Gerbview: Add build option do enable/disable the 3Dconnexion support."
This reverts commit 336532303e
.
A better fix for the link issue on MSYS2 will be committed
1 year ago
jean-pierre charras
336532303e
Gerbview: Add build option do enable/disable the 3Dconnexion support.
On msys2 a link issue (3 undefined symbols) prevent Gerbview to be built.
So I added this option (KICAD_ENABLE_3DMOUSE_GERBVIEW, enabled by default)
to disable 3Dconnexion support on request.
1 year ago
Kamil Galik
2068ed31a4
ADDED: 3D Mouse support in Gerber Viewer and Drawing Sheet Editor
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13306
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
6fc662188f
Gerbview: fix a minor issue.
When the option "always hide all layers but active" is set, the active layer
changed using hotkeys or Toolbar layer selector did not update the visible
selection.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18059
1 year ago
jean-pierre charras
93bd2c73ff
Gerbview: rename diff mode by forced opacity display mode and make opacity adjustable.
The diff mode (option in left toolbar) was never a differential display mode.
It is actually an option to force the alpha channel (opacity) of layer colors
to a given value.
So change the name and tool tips to force opacity mode, and make the opacity
parameter adjustable in preferences.
Gerbview: cleanup: remove a old and dead code.
1 year ago
jean-pierre charras
68c0be1097
Gerbview: cleanup: remove a old and dead code.
1 year ago
Alex Shvartzkop
16e3692e71
Build time optimizations.
2 years 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
jean-pierre charras
7944803f8c
GERBVIEW_FRAME::RemapLayers(), fix incorrect handling of layers visibility
When modifying the gerber layers visibility, other (non gerber) layers must
be not modified.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17282
2 years ago
Jeff Young
9ff66d0e71
Don't capture references to local variables for CallAfter.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16934
(cherry picked from commit 9d40374baf
)
2 years ago
jean-pierre charras
d91e744f0f
Gerbview: fix incorrect layer visibility settings after removing the current layer
2 years ago
Marek Roszko
b4bfdf95d3
Explicitly add 48, 128, 256 to icon bundles for each app
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Jeff Young
d5d07e64c9
Use IsShownOnScreen(), not IsShown(), if you really want to know if its visible.
4 years ago
Jeff Young
f58c0c370c
Re-arrange visibility flags only.
Colors are owned by the slot, not the layer objects.
2 years ago
Jeff Young
d9f1aaa8e3
Keep colors & visibility with layer objects, not layer number.
Also fixes a bug where the Layers manager would keep getting wider
each time the longest item was moved
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15790
2 years ago
Marek Roszko
22b733209d
Fail GAL on its header leaking audit
Maybe we should rethink directly accessing GAL so much, but at least 600 files didn't need GAL leaked into them due to view_overlay.h
2 years ago
jean-pierre charras
efdead2008
Gerbview: added (in Layers Manager) a new setting to adjust draw offset
and rotation of the active layer. This is a draw option only.
2 years ago
Mike Williams
b1a388ca69
Grids: Support X and Y for all grids, add optional names
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
Jeff Young
782c73300b
Move drawing sheet datastructures to EDA_IU_SCALE.
Or mostly, at least. Plotters still define their own mils-to-iu scale.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14934
2 years ago
Marek Roszko
aacc9746e3
Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
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
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
Mike Williams
1f178e2b93
Gerbview: fix broken XOR mode
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10122
3 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
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
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
45d6b4a9fc
Readability improvements.
3 years ago
Marek Roszko
e6ed275c25
Repoint IU_PER_MILS
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
Marek Roszko
bf964d8678
Commonize page_info by simply making the Iu scale a parameter on call.
3 years ago
Mike Williams
aea89a632b
Gerber Viewer: fix high contrast mode, respect high cycle shortcut
3 years ago
Mike Williams
75ed6b3ce7
Gerber viewer: move layer colors with layers
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10600
3 years ago
Jeff Young
92a229eec7
ADDED separate user-defined color for page limits.
Fixes https://gitlab.com/kicad/code/kicad/issues/5271
4 years ago
jean-pierre charras
3a5530d441
Gerbview: fix typo that prevent lo load a .gbrjob file from command line
Fixes #10921
https://gitlab.com/kicad/code/kicad/issues/10921
4 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
c83f1ea1cd
Gerbview: support more filetypes from the command line, e.g. zip
Also parse other extensions, and use new heuristics to guess if we don't
know the extension.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/5680
4 years ago
Mike Williams
2612b94519
Gerbview: always search for the first available layer
4 years ago
Mike Williams
3c1a6e95d8
Gerbview: Don't show unused layers
4 years ago
Mike Williams
a9379ecf39
Gerbview: Add ability to sort layers by file extension
4 years ago
Mike Williams
d827f06a74
Gerbview: fix borked cleanup of layer remapping
Happened in 4ba3937f8a
4 years ago