Seth Hillbrand
e0453d9bcc
Further cleanup of LSET
Remove duplicative functions. Standardize on C++ stdlib formatting
1 year ago
Seth Hillbrand
cc850d0da0
Split out LSEQ/LSET from LAYER_ID
Separate the layer grouping classes for easier modification
1 year ago
Seth Hillbrand
293075426b
Clean up some LSEQ functions
We are derived from std::vector now. We don't need our own prima donna
increment and dereference overload as these just create bloat and
non-standard coding practices
1 year ago
Seth Hillbrand
c0bf866c58
Speed up shutdown
When shutting down, we shouldn't need to do a lot of things like
resyncing the PNS world multiple times that can really slow down the
process
1 year ago
Jeff Young
16340e6cf4
Support both short and long item descriptions.
1 year ago
Seth Hillbrand
a9ae86eefd
Cleanup geometry functions
Added Distance(VECTOR2) function that returns a double. Removed
superfluous EuclideanNorm, GetLineLength, integer constructor for
EDA_ANGLE (this promotes to double in the CTOR), DistanceLinePoint and
HitTestPoints
Also extended the size for arc calculations that get distances to center
points to avoid overflow
1 year ago
Alex Shvartzkop
139d356065
Fix scale factors of layer box selectors.
1 year ago
Jeff Young
30b5adde17
Fix spacing/scaling of indicators on MacOS.
Also pushes indicator scaling improvements to GerbView.
1 year ago
Alex Shvartzkop
0b4ff7b859
Improve indicator icons in hidpi monitors.
1 year ago
Alex Shvartzkop
cd83666b72
Draw x2 and x3 swatch bitmaps in layer selectors.
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
Alex Shvartzkop
73e0498768
Improve hidpi color swatch sizes in layer selectors on MSW.
1 year ago
Alex Shvartzkop
4e306a7d76
Remove useless method (ResyncBitmapOnly)
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.
1 year ago
Marek Roszko
2a3b597ab9
Strip out no longer needed links on the top executables
Not needed due to kicommon
2 years ago
Marek Roszko
5e3396561d
Fix some layer id enum colliding warnings
C++20 under MSVC does not like seeing enum values between two enums getting operated on.
static cast to int fixes it for what we are trying to do anyway
2 years ago
Marek Roszko
83ef5fd7d6
Move PGM_BASE to kicommon
2 years ago
Jeff Young
1152b0462c
Grid properties for GerbView.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17372
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
Yon Uriarte
464f185387
Performance
Cache VIEW_ITEM's bbox in VIEW_TREE for faster removals.
Fixes https://gitlab.com/kicad/code/kicad/issues/16841
2 years ago
Jeff Young
ca3cd706e5
Show friendly name in toolbar button tooltips.
(Don't require the same text to be put into the tooltip.
It's error-prone and also disallows us from having a separate
tooltip for toolbar buttons.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17009
(cherry picked from commit f4a085575a
)
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
8e6fe0eaf0
Gerbview settings: store option "Page Limits" in gerbview config.
Previously this appearance option in Layer Manager was not stored.
2 years ago
Seth Hillbrand
cd548e392a
Add document type icons
Update Macos script to use doctype icons for icns builds
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14754
2 years ago
jean-pierre charras
d91e744f0f
Gerbview: fix incorrect layer visibility settings after removing the current layer
2 years ago
Jeff Young
7cc663ad77
Schematic parity checking for CLI DRC.
2 years ago
Marek Roszko
b4bfdf95d3
Explicitly add 48, 128, 256 to icon bundles for each app
2 years ago
jean-pierre charras
55b6fdd1c4
Gerbview: fix incorrect rotation of DCode shape type regular polygon.
The rotation was the opposite of the actual rotation, due to the Y axis
direction (top to bottom) coordinate in gerbview/dcode.cpp
Fixes #16480
https://gitlab.com/kicad/code/kicad/-/issues/16480
2 years ago
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Mike Williams
fc903592ed
Hotkeys: fix multiple assignment of N key
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/16376
2 years ago
Wayne Stambaugh
8687d5092f
String and dialog layout fixes.
2 years ago
Wayne Stambaugh
b7dc7e90ac
Minor string fixes.
2 years ago
Marek Roszko
d1ecf3790c
Add generator version
2 years ago
Ian McInerney
dd933b7d0e
Update CERN copyrights
2 years ago
jean-pierre charras
72ce955066
Gerbview: fix some issues related to comments and primitives in macros:
- comments on more than one line were not fully skipped, creating read errors
- in macros, some primitives (not all) were incorrectly rotated: they must be
rotated around the aperture macro origin, not the primitive origin.
- a new test file with rotated primitives in macros is added.
Fixes #16049
https://gitlab.com/kicad/code/kicad/-/issues/16049
2 years ago
Jeff Young
db46b6f925
Show selection before opening menu.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15922
2 years ago
Ian McInerney
171458a27b
Introduce action friendly names
Friendly names can be used to display action information that is clearer
in non-hierarchical contexts (e.g. not in menus).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8075
2 years ago
Jeff Young
435e3fab8d
Support text variables in STEP export filename.
Also fixes some other file browser titles to match Kicad's overall style.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15927
2 years ago
Marek Roszko
bee6e6be01
AddMenuLanguageList should live in EDA_BASE_FRAME, its only user
2 years ago
Marek Roszko
584757f2df
Move the menu helpers to ui_common instead of sitting in bitmap for some reason
2 years ago
Ian McInerney
55caa9c1e8
Fix casing for gerber wildards
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15877
2 years ago
Jeff Young
d5d07e64c9
Use IsShownOnScreen(), not IsShown(), if you really want to know if its visible.
4 years ago
jean-pierre charras
c9d6e79d2d
Fix minor compil warnings.
2 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
37e8a008ab
Remove obsolete config_params.h includes
2 years ago
Marek Roszko
f8e33be07f
Break out the boundary violating parts of gal into common through subclassing
2 years ago