Browse Source
Grid Overrides: support grids-per-type that override the current grid.
Grid Overrides: support grids-per-type that override the current grid.
Schematic only at this point while we test and refine. PCB support is a future addition. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14756newinvert
32 changed files with 2121 additions and 242 deletions
-
2common/bitmap_info.cpp
-
56common/dialogs/dialog_grid_settings.cpp
-
76common/dialogs/dialog_grid_settings_base.cpp
-
1374common/dialogs/dialog_grid_settings_base.fbp
-
20common/dialogs/dialog_grid_settings_base.h
-
16common/eda_draw_frame.cpp
-
53common/settings/app_settings.cpp
-
18common/tool/actions.cpp
-
9common/tool/common_tools.cpp
-
17common/tool/editor_conditions.cpp
-
28common/tool/grid_helper.cpp
-
1eeschema/sch_edit_frame.cpp
-
1eeschema/toolbars_sch_editor.cpp
-
136eeschema/tools/ee_grid_helper.cpp
-
31eeschema/tools/ee_grid_helper.h
-
5eeschema/tools/ee_selection_tool.cpp
-
9eeschema/tools/sch_drawing_tools.cpp
-
4eeschema/tools/sch_line_wire_bus_tool.cpp
-
21eeschema/tools/sch_move_tool.cpp
-
1include/bitmaps/bitmaps_list.h
-
4include/dialogs/dialog_grid_settings.h
-
3include/eda_draw_frame.h
-
10include/settings/app_settings.h
-
1include/tool/actions.h
-
1include/tool/common_tools.h
-
12include/tool/editor_conditions.h
-
7include/tool/grid_helper.h
-
1resources/bitmaps_png/CMakeLists.txt
-
BINresources/bitmaps_png/png/grid_override_24.png
-
BINresources/bitmaps_png/png/grid_override_dark_24.png
-
223resources/bitmaps_png/sources/dark/grid_override.svg
-
223resources/bitmaps_png/sources/light/grid_override.svg
1374
common/dialogs/dialog_grid_settings_base.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
After Width: 24 | Height: 24 | Size: 663 B |
After Width: 24 | Height: 24 | Size: 685 B |
@ -0,0 +1,223 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<svg |
|||
id="Слой_1" |
|||
data-name="Слой 1" |
|||
viewBox="0 0 24 24" |
|||
version="1.1" |
|||
sodipodi:docname="grid_override.svg" |
|||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns="http://www.w3.org/2000/svg" |
|||
xmlns:svg="http://www.w3.org/2000/svg" |
|||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|||
xmlns:cc="http://creativecommons.org/ns#" |
|||
xmlns:dc="http://purl.org/dc/elements/1.1/"> |
|||
<sodipodi:namedview |
|||
pagecolor="#ffffff" |
|||
bordercolor="#666666" |
|||
borderopacity="1" |
|||
objecttolerance="10" |
|||
gridtolerance="10" |
|||
guidetolerance="10" |
|||
inkscape:pageopacity="0" |
|||
inkscape:pageshadow="2" |
|||
inkscape:window-width="1609" |
|||
inkscape:window-height="1049" |
|||
id="namedview30" |
|||
showgrid="true" |
|||
inkscape:zoom="27.961538" |
|||
inkscape:cx="3.3617607" |
|||
inkscape:cy="13.071527" |
|||
inkscape:window-x="0" |
|||
inkscape:window-y="0" |
|||
inkscape:window-maximized="0" |
|||
inkscape:document-rotation="0" |
|||
inkscape:current-layer="Слой_1" |
|||
inkscape:showpageshadow="0" |
|||
inkscape:pagecheckerboard="0" |
|||
inkscape:deskcolor="#d1d1d1"> |
|||
<inkscape:grid |
|||
type="xygrid" |
|||
id="grid_kicad" |
|||
spacingx="0.5" |
|||
spacingy="0.5" |
|||
color="#9999ff" |
|||
opacity="0.13" |
|||
empspacing="2" /> |
|||
</sodipodi:namedview> |
|||
<metadata |
|||
id="metadata43"> |
|||
<rdf:RDF> |
|||
<cc:Work |
|||
rdf:about=""> |
|||
<cc:license |
|||
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type |
|||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title>grid</dc:title> |
|||
</cc:Work> |
|||
<cc:License |
|||
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<defs |
|||
id="defs157368"> |
|||
<style |
|||
id="style157366">.cls-1{fill:#DED3DD;}</style> |
|||
</defs> |
|||
<title |
|||
id="title157370">grid</title> |
|||
<rect |
|||
class="cls-1" |
|||
x="1.416321" |
|||
y="-1.4134227" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157372" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="6.1298695" |
|||
y="-6.1272392" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157374" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.843364" |
|||
y="-10.841041" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157376" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.557203" |
|||
y="-15.55429" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157378" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="6.1338067" |
|||
y="3.3038428" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157380" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.847292" |
|||
y="-1.4098865" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157382" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.560921" |
|||
y="-6.1237044" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157384" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.274595" |
|||
y="-10.836909" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157386" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.851293" |
|||
y="8.0211086" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157388" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.564784" |
|||
y="3.3073959" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157390" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.278406" |
|||
y="-1.4064386" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157392" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="24.991987" |
|||
y="-6.1195278" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157394" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.56885" |
|||
y="12.738305" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157396" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.282276" |
|||
y="8.0246792" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157398" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="24.995892" |
|||
y="3.3108282" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157400" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="29.709381" |
|||
y="-1.4021457" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157402" /> |
|||
<path |
|||
class="cls-1" |
|||
d="M 18,10.445752 H 16 V 5.998451 a 4.0000002,4.0000002 0 0 0 -8,0 v 4.130001 H 6 V 5.998451 a 6.0000002,6.0000002 0 0 1 12,0 z" |
|||
id="path25679" |
|||
style="fill:#f2647e;fill-opacity:1" /> |
|||
<path |
|||
class="cls-1" |
|||
d="M 19,10.104952 H 5 a 2,2 0 0 0 -2,2 v 10 a 2,2 0 0 0 2,2 h 14 a 2,2 0 0 0 2,-2 v -10 a 2,2 0 0 0 -2,-2 z m -6,8.5473 v 1.736 a 1,1 0 0 1 -2,0 v -1.736 a 2,2 0 1 1 2,0 z" |
|||
id="path25681" |
|||
style="fill:#f2647e;fill-opacity:1" /> |
|||
</svg> |
@ -0,0 +1,223 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<svg |
|||
id="Слой_1" |
|||
data-name="Слой 1" |
|||
viewBox="0 0 24 24" |
|||
version="1.1" |
|||
sodipodi:docname="grid_override.svg" |
|||
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns="http://www.w3.org/2000/svg" |
|||
xmlns:svg="http://www.w3.org/2000/svg" |
|||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|||
xmlns:cc="http://creativecommons.org/ns#" |
|||
xmlns:dc="http://purl.org/dc/elements/1.1/"> |
|||
<sodipodi:namedview |
|||
pagecolor="#ffffff" |
|||
bordercolor="#666666" |
|||
borderopacity="1" |
|||
objecttolerance="10" |
|||
gridtolerance="10" |
|||
guidetolerance="10" |
|||
inkscape:pageopacity="0" |
|||
inkscape:pageshadow="2" |
|||
inkscape:window-width="1609" |
|||
inkscape:window-height="1049" |
|||
id="namedview30" |
|||
showgrid="true" |
|||
inkscape:zoom="9.8858966" |
|||
inkscape:cx="17.499677" |
|||
inkscape:cy="19.573338" |
|||
inkscape:window-x="0" |
|||
inkscape:window-y="0" |
|||
inkscape:window-maximized="0" |
|||
inkscape:document-rotation="0" |
|||
inkscape:current-layer="Слой_1" |
|||
inkscape:showpageshadow="0" |
|||
inkscape:pagecheckerboard="0" |
|||
inkscape:deskcolor="#d1d1d1"> |
|||
<inkscape:grid |
|||
type="xygrid" |
|||
id="grid_kicad" |
|||
spacingx="0.5" |
|||
spacingy="0.5" |
|||
color="#9999ff" |
|||
opacity="0.13" |
|||
empspacing="2" /> |
|||
</sodipodi:namedview> |
|||
<metadata |
|||
id="metadata43"> |
|||
<rdf:RDF> |
|||
<cc:Work |
|||
rdf:about=""> |
|||
<cc:license |
|||
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type |
|||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title>grid</dc:title> |
|||
</cc:Work> |
|||
<cc:License |
|||
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits |
|||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires |
|||
rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<defs |
|||
id="defs157368"> |
|||
<style |
|||
id="style157366">.cls-1{fill:#545454;}</style> |
|||
</defs> |
|||
<title |
|||
id="title157370">grid</title> |
|||
<rect |
|||
class="cls-1" |
|||
x="1.416321" |
|||
y="-1.4134227" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157372" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="6.1298695" |
|||
y="-6.1272392" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157374" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.843364" |
|||
y="-10.841041" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157376" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.557203" |
|||
y="-15.55429" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157378" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="6.1338067" |
|||
y="3.3038428" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157380" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.847292" |
|||
y="-1.4098865" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157382" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.560921" |
|||
y="-6.1237044" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157384" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.274595" |
|||
y="-10.836909" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157386" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="10.851293" |
|||
y="8.0211086" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157388" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.564784" |
|||
y="3.3073959" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157390" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.278406" |
|||
y="-1.4064386" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157392" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="24.991987" |
|||
y="-6.1195278" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157394" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="15.56885" |
|||
y="12.738305" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157396" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="20.282276" |
|||
y="8.0246792" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0012)" |
|||
id="rect157398" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="24.995892" |
|||
y="3.3108282" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45.0014)" |
|||
id="rect157400" /> |
|||
<rect |
|||
class="cls-1" |
|||
x="29.709381" |
|||
y="-1.4021457" |
|||
width="2.8297" |
|||
height="2.8297" |
|||
transform="rotate(45)" |
|||
id="rect157402" /> |
|||
<path |
|||
class="cls-1" |
|||
d="M 18,10.445752 H 16 V 5.998451 a 4.0000002,4.0000002 0 0 0 -8,0 v 4.130001 H 6 V 5.998451 a 6.0000002,6.0000002 0 0 1 12,0 z" |
|||
id="path25679" |
|||
style="fill:#bf2642;fill-opacity:1" /> |
|||
<path |
|||
class="cls-1" |
|||
d="M 19,10.104952 H 5 a 2,2 0 0 0 -2,2 v 10 a 2,2 0 0 0 2,2 h 14 a 2,2 0 0 0 2,-2 v -10 a 2,2 0 0 0 -2,-2 z m -6,8.5473 v 1.736 a 1,1 0 0 1 -2,0 v -1.736 a 2,2 0 1 1 2,0 z" |
|||
id="path25681" |
|||
style="fill:#bf2642;fill-opacity:1" /> |
|||
</svg> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue