Seth Hillbrand
0775d1364a
Add bezier icon
Fixes https://gitlab.com/kicad/code/kicad/issues/16830
2 years ago
Jeff Young
61876533df
Clean up formatting.
2 years ago
Jeff Young
f5aa2ea8cf
Fix copy/pasta in arc plotting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16531
2 years ago
Jeff Young
1ca82035ae
Update SCH_SHAPE::Plot() to handle all fill styles.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16429
2 years ago
Jeff Young
df83e24eb7
Cleanup.
It's been a long time since line style was specific to plotting.
2 years ago
Alex Shvartzkop
b2825663be
Fix SCH_SHAPE rotation direction.
2 years ago
Jeff Young
f50de028fb
Make plotting of PDF property popups optional.
2 years ago
Seth Hillbrand
d99641be40
ADDED: Git integration support
Adds support for project-based git integration, branch support, commit,
revert and updates
Fixes https://gitlab.com/kicad/code/kicad/issues/10441
2 years ago
Alex Shvartzkop
b0f4adf052
Improve borderless items logic in schematic plotting.
2 years ago
Alex Shvartzkop
10e2e4a12d
Another try at fixing arcs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15471
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15469
2 years ago
jean-pierre charras
a16ab0aae1
Replace SHAPE_T::RECT by SHAPE_T::RECTANGLE: RECT creates a collision name
issue with a Windows header on msys2.
Change very similar to the commit 9a47b344 about class PAD_SHAPE.
No actual code change
2 years ago
Jeff Young
5bca002567
Swap non-temp and non-edit flags for SCH_ITEMs.
This is required to keep selected and brightened state across undo.
It's also probably required for things like IS_SHOWN_AS_BITMAP and
possibly ENTERED. FWIW, most BOARD_ITEMs do a straight swap, including
the temp and edit flags. But that seems like a risky change....
Also removes SyncView() call from Undo/Redo as that does a MODEL_RELOAD
which clears the selection.
2 years ago
Jon Evans
3a0f8214fa
ADDED: Properties panel for schematic editor
Initial infrastructure work; follow-ons will add more
properties for schematic items.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6351
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14105
2 years ago
Jeff Young
03484aedbc
Workaround wxWidgets enforced min pen width by using transparent pen.
Also fixes some bugs in our shape printing code when a border is not
specified but a fill is.
Fixes https://gitlab.com/kicad/code/kicad/issues/13891
3 years ago
Jon Evans
c530bdb5a1
Rename GetSelectMenuText to GetItemDescription
This descriptive text is used for many more things than
just the select menu these days.
3 years ago
Seth Hillbrand
9186be600b
Fix resource leak
3 years ago
Seth Hillbrand
e055302a3c
Allow printing backgrounds prior to foreground
Eeschema shows background fills on a different z-level than the rest of
the symbols/elements. Print the backgrounds prior to the foregrounds in
order to preserve this view for print output
Fixes https://gitlab.com/kicad/code/kicad/issues/12559
3 years ago
jean-pierre charras
78087597cd
Avoid including plotters/plotter.h in many files.
It avoid a large rebuild when modifying the plot code.
3 years ago
jean-pierre charras
f851526c67
Plotters: make virtual void PLOTTER::Arc() using arc angles protected.
Using arc angles to plot an arc is really error prone due to different
options between plotters, and angles defined in Kicad, using this version of
arc plotting from Kicad is no longer allowed in Kicad code.
3 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Marek Roszko
61e11d6896
Strip out Mils2Iu
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Jeff Young
960e913632
Polys aren't automatically closed.
Fixes https://gitlab.com/kicad/code/kicad/issues/12350
3 years ago
Roberto Fernandez Bautista
029cc65b34
EDA_SHAPE: Remove m_upsideDownCoords hack (Fixes hitTest routine)
3 years ago
Jeff Young
dbbdc9d2e6
Don't rely on the penWidth already being set when setting the dash style.
Fixes https://gitlab.com/kicad/code/kicad/issues/11908
3 years ago
Seth Hillbrand
7b9dc1b9f0
Fix Eeschema Arc plotting
The start/end point plotting is not reliable for eeschema. We need to
preconvert to angles to get the correct winding as the default plotter
conversion in the PLOTTER class makes pcbnew-based assumptions
Fixes https://gitlab.com/kicad/code/kicad/issues/11885
3 years ago
Jeff Young
dc1e063b00
Iron out some issues with linestyle handling in SCH printing and plotting.
Fixes https://gitlab.com/kicad/code/kicad/issues/11498
4 years ago
Jeff Young
356d565d48
Normalize rectangular shapes before feeding to point editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/11339
4 years ago
Jeff Young
06df90636b
Rationalize negative line-width handling.
Make "don't stroke" an explicit property in the GUI.
Silently enforce line width to >= 0 when stroking.
Make layouts between dialogs more consistent.
Interpret unspecified fill colour as layer colour.
Fixes https://gitlab.com/kicad/code/kicad/issues/11279
4 years ago
Jeff Young
748cc1a59a
Pay better attention to aPlotter->GetColorMode().
Fixes https://gitlab.com/kicad/code/kicad/issues/11287
4 years ago
Jeff Young
f11b8011cd
Separate plotting into background and foreground.
Fixes https://gitlab.com/kicad/code/kicad/issues/10390
4 years ago
Jeff Young
7b84e0a7d9
Make printing/plotting/drawing of LIB and SCH arcs consistent.
Fixes https://gitlab.com/kicad/code/kicad/issues/10801
4 years ago
Jeff Young
f3cd36d1d7
Bring EEschema textboxes in line with PCBNew's.
Also adds Border checkboxes and fixes a bunch of bugs.
4 years ago
Jeff Young
60bcfd1bf1
Bug fixes in arc & textbox printing.
Also removal of the no-longer-used clipping code from GR*.
4 years ago
Jeff Young
c6a8100d46
Schematic and symbol text boxes.
Also fixes some plot bugs with arcs.
Also moves polygonization of arcs (when required) in plotting code
from 5 degrees to calculated based on ARC_HIGH_DEF.
Fixes https://gitlab.com/kicad/code/kicad/issues/5017
4 years ago
Jeff Young
5cc3368b14
Fix bounding boxes and hittesting for arcs in eeschema.
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
9b661aea10
EDA_ANGLE for plotters.
Also fixes a compile error in the PNS Playground.
4 years ago
Jeff Young
a533d64417
Apply default line style.
Fixes https://gitlab.com/kicad/code/kicad/issues/10388
4 years ago
Jeff Young
062f5e3177
Undo for SCH_SHAPEs.
Fixes https://gitlab.com/kicad/code/kicad/issues/10373
4 years ago
Jeff Young
a23f6e4e92
Handle border colors for SCH_SHAPEs.
Fixes https://gitlab.com/kicad/code/kicad/issues/10361
4 years ago
Jeff Young
184bcf6520
Fix failure of SCH_SHAPE to pick up default line width.
Fixes https://gitlab.com/kicad/code/kicad/issues/10376
4 years ago
Marek Roszko
ea613cf448
Another batch of point changes
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Ian McInerney
0e9cfd0af2
Add missing initialization values to variables
Flagged by Coverity.
4 years ago
Jeff Young
2bc86fa0a8
Shapes for schematic.
ADDED arc, circle and rectangle shapes for schematic. Shapes support
line styles and fill colors.
CHANGED sheet background color in Edit Text & Graphics Properties to
fill color (and it now affects shapes).
Pushed STROKE_PARAMS down into common and moved all shapes to using it
for stroke descriptions.
4 years ago