Jeff Young
38e5faf21b
Overhaul bitmap text for performance.
Also adjusts metrics to better match stroke font.
Also removes text-halo highlighting as it's too expensive to re-render
when the zoom changes.
Fixes https://gitlab.com/kicad/code/kicad/issues/11460
3 years ago
jean-pierre charras
20d1d0705e
Fix a few issues related to field names and their translation. - Do not use translated field names outside strings displayed in dialogs. - fix code that does not work well with default locale. - fix some (not all) I18n issues in DIALOG_UPDATE_SYMBOL_FIELDS.
3 years ago
Jeff Young
f9f0f6fe24
Implement cross-references for labels.
Fixes https://gitlab.com/kicad/code/kicad/issues/11564
4 years ago
Jeff Young
3589eb33f0
Handle text color when printing and plotting.
Fixes https://gitlab.com/kicad/code/kicad/issues/11491
4 years ago
Jeff Young
47e002a33d
Add font to status bar for text objects.
4 years ago
Jeff Young
63b5ad7df1
Fix some issues with global-label fields' bounding boxes.
4 years ago
jean-pierre charras
2cb719f0cf
Fix crash in SCH_LABEL_BASE::IsType() when the item is not living in a schematic.
It happens for instance when copying the item from the clipboard.
Fixes #11128
https://gitlab.com/kicad/code/kicad/issues/11128
4 years ago
Seth Hillbrand
5b5c7d41b4
Break up buildConnectionGraph for debugging
Needed to find bottlenecks in fns, so break out individual sections of
the massive function for easier understanding.
buildItemSubgraphs (one section of the previous function) would build
millions of connections that were never used as stacked pins created X!
connections. Also tested using sets instead of lists and keeping unique
lists to avoid flagging but none of these were as performant as using
flags to remember which items had already been processed.
Fixes https://gitlab.com/kicad/code/kicad/issues/10974
(cherry picked from commit 17b1b68ac7
)
4 years ago
Seth Hillbrand
8fd87e1f04
Change connectivity item group from set to vector
Reserve space for new items to speed construction of connectivity graph
Fixes https://gitlab.com/kicad/code/kicad/issues/10974
(cherry picked from commit 7aebc4b11f
)
4 years ago
jean-pierre charras
a0d68b8426
SCH_DIRECTIVE_LABEL: add missing virtual SwapData.
Fixes #11027
https://gitlab.com/kicad/code/kicad/issues/11027
4 years ago
Jeff Young
082c6f5bd6
Make sure plotter uses default font when specified.
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
60bcfd1bf1
Bug fixes in arc & textbox printing.
Also removal of the no-longer-used clipping code from GR*.
4 years ago
Jeff Young
3409783d9f
Break sch_text.h/.cpp into sch_text and sch_label.
Also moves SCH_NETCLASS_FLAG to SCH_DIRECTIVE_LABEL, and remaps Altium
harnesses from SCH_TEXT to SCH_DIRECTIVE_LABEL.
4 years ago
Jeff Young
dcaec78cc5
A bit more angle cleanup.
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
e048e51f5d
Improve SNR of EDA_ANGLE stuff.
4 years ago
jean-pierre charras
a709d97a32
SCH_LABEL_BASE::Plot(): Plot fields.
4 years ago
Jeff Young
04c76f10e9
Performance enhancements for fonts.
4 years ago
Jeff Young
438c63f587
Fix outline font boundingbox issues.
4 years ago
Jeff Young
aef2a3fca4
Default font for eeschema.
4 years ago
Jeff Young
89c0f8e297
Move to new font engine.
4 years ago
jean-pierre charras
c108d25897
Fix mirroring tests issues in qa tests for eeschema
4 years ago
jean-pierre charras
e6087f361a
Add forgotten fix
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Marek Roszko
347e03363a
Convert wxPoint/wxSize starting from EDA_RECT usages
4 years ago
Ian McInerney
0e9cfd0af2
Add missing initialization values to variables
Flagged by Coverity.
4 years ago
Jeff Young
dd6cd7d184
Pull some more improvements in from rockola/kicad-strokefont.
This one is primarily about pushing TEXT_ATTRIBUTES in to the GAL
API, but it also includes adding EDA_ANGLE signatures to some trig
routines to ease integration.
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
889970a449
SCH_NETCLASS_FLAGs and SCH_FIELDs for labels.
ADDED: a new label type for netclass flags.
ADDED: the ability to define fields on labels.
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
Jeff Young
c4336de868
Bug fixes in new dangling symbol drawing code.
4 years ago
Jeff Young
2e342ed8c9
Draw dangling symbols on a separate layer.
This allows us to draw them in front of wires, pins, and most
importantly, junction dots.
Fixes https://gitlab.com/kicad/code/kicad/issues/9667
4 years ago
Wayne Stambaugh
a03e6e4926
Revert "Eeschema: fix broken page numbers when renaming a sheet file name."
This reverts commit a468a79948
.
4 years ago
Mikolaj Wielgus
10be483430
Make an exception for SCH_TEXT in SELECTION::GetCenter()
And undo the previous changes in SCH_TEXT::Rotate().
We continue hitting this with a wrench until it gets fixed or becomes
broken beyond any recognition.
4 years ago
Mikolaj Wielgus
83162364e7
Restore old rotation behavior for SCH_LABEL
Fixes https://gitlab.com/kicad/code/kicad/issues/9861
4 years ago
Mikolaj Wielgus
4ba110e1ec
Restore original SCH_TEXT::GetBoundingBox()
Didn't intend to commit this, it was a mistake.
4 years ago
Mikolaj Wielgus
bb08ef2f41
Fix SCH_TEXT rotation around a reference point
Fixes https://gitlab.com/kicad/code/kicad/issues/9690
4 years ago
kliment
9f568d3658
Eeschema: Add support for leading zeroes when auto-incrementing names ( fixes #9831 )
4 years ago
Wayne Stambaugh
a468a79948
Eeschema: fix broken page numbers when renaming a sheet file name.
Remove duplicate instance data saved in both root SCH_SCREEN and SCH_SHEET
objects that was causing them to be out of sync. All sheet instance data
is stored in the SCH_SHEET object itself and rebuilt on the fly so it is
always current.
Remove Get/SetPageNumber from SCH_SHEET_PATH object so it doesn't obfuscate
where the actual sheet page number information exists.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9782
4 years ago
Mikolaj Wielgus
f35b0446e6
Properly initialize SCH_TEXT spin style
4 years ago
Jeff Young
7fc04c3cf2
Fixes for realtime connectivity being off.
Fixes https://gitlab.com/kicad/code/kicad/issues/9628
4 years ago
Jeff Young
016a98df86
Increment numbers which have suffixes too.
Fixes https://gitlab.com/kicad/code/kicad/issues/9706
4 years ago
Seth Hillbrand
cd3ecdfc78
Fix sort to be irreflexive
Switching the order of the parameters must switch the sort order (no <=)
otherwise the sort is non-determinant and fails std::sort preconditions
4 years ago
Ian McInerney
5817a8b5f4
Remove unused m_host variable
This variable isn't needed anymore after 5f53019290
pushed dark mode handling into the HTML window itself.
4 years ago
Jeff Young
b52529521e
Replace individual LIB_* shapes with LIB_SHAPE (based on EDA_SHAPE).
Also moves to more capable FILL_T model that can be shared.
4 years ago
Jeff Young
f606679164
Proper numeric sorting for intersheet refs.
Also expunges the horrifically named std::remove and std::remove_if
(neither of which remove anything).
4 years ago
Jeff Young
5d579d14c1
Give intersheet refs a bit more breathing room.
4 years ago
Jeff Young
f73042fe24
Some minor performance enhancements.
4 years ago
Jeff Young
5f3c67bd2b
Fill in some missing GetMsgPanelItems and make some others consistent.
Also expunges a std::vector<MSG_PANEL_ITEM> cover type.
4 years ago