Jeff Young
74cefecaac
Add legacy empty-string token handling to EDA_TEXT.
5 years ago
Wayne Stambaugh
9ebabb222c
Pass objects by reference instead of on the stack.
5 years ago
Dominik Wernberger
07635d2fc7
Minor adjustments
5 years ago
Dominik Wernberger
ec0af24f13
Make wxFindReplaceData argument const
5 years ago
Dominik Wernberger
bb2881a5ab
Make RENDER_SETTINGS argument const
5 years ago
Wayne Stambaugh
bf00ebee3b
Header clean up round 1.
5 years ago
qu1ck
b32c2a6c90
Refactor EDA_TEXT::TransformToSegmentList() to return a vector of points
This allows reading text object as it is rendered through python API.
5 years ago
Werni
a7d5d1f091
Add more consts all over the place
5 years ago
Marek Roszko
dbcb1ecdb7
Move TEXT_ANGLE defines to eda_text.
5 years ago
Marek Roszko
b9f1601418
Rename PLOT_MODE to OUTLINE_MODE
5 years ago
Marek Roszko
eb33c33f15
Rename EDA_DRAW_MODE_T to PLOT_MODE
5 years ago
Marek Roszko
ed968ebd2c
Split EDA_DRAW_MODE_T to its own header
5 years ago
Thomas Pointhuber
b8453d1b6b
Fix compilation issues
5 years ago
Marek Roszko
3bbc4f6cf8
Remove common.h from eda_text.h
5 years ago
Marek Roszko
f59551d6ad
Remove painter.h from eda_text.h
5 years ago
Marek Roszko
5302f7ce73
Remove kicad_string.h from eda_text.h
5 years ago
Marek Roszko
12d21e34e2
Remove trigo.h from eda_text.h
5 years ago
Marek Roszko
9656bd310b
Remove eda_item and gr_basic from eda_text.h
5 years ago
Marek Roszko
b2e9f6987d
Split base_struct into eda_item and eda_rect
5 years ago
Tomasz Wlostowski
9b470b6c09
EDA_TEXT: Use actual draw rotation angle to generate the effective shape.
Fixes : #5814
5 years ago
Jeff Young
d402d93487
Implement shape routines for DIMENSION_Ts.
This allows them to participate in DRC and PNS.
Fixes https://gitlab.com/kicad/code/kicad/issues/5712
5 years ago
Tomasz Wlostowski
6358995ff8
EDA_TEXT: rename GetEffectiveShape() to GetEffectiveTextShape() to avoid name aliasing with BOARD_ITEM inteface
5 years ago
Tomasz Wlostowski
7dbd8ef802
EDA_TEXT: implement GetEffectiveShape()
6 years ago
jean-pierre charras
687c2f3e82
eeschema: fix a readability issue for small texts.
Texts were drawn with a minimal line thickness = GetDefaultPenWidth().
The default pen width can be to large for small texts.
So the actual text thickness is now always clamped.
6 years ago
Jeff Young
2fb2eac4d5
Performance enhancements.
6 years ago
Jeff Young
2b6089240a
Change super/subscript syntax to ^{foo} and _{foo}.
6 years ago
Jeff Young
9c8941e040
Remove a bunch of globals.
6 years ago
Jeff Young
6e800bddae
Rationalize penWidth processing as first step in removing some globals.
6 years ago
Jeff Young
aba0fa7bf8
Allow cross-referencing text substitutions.
6 years ago
Mark Roszko
ca34ade00c
Make global labels have the same spin style as net/hierarchical labels
For legacy reasons, it stored left and right "spin" as flipped integers in the file format.
But the code handled the flip in multiple locations rather than just doing it on file io.
This change unifies the internal code and does the mapping in the file I/O.
6 years ago
Wayne Stambaugh
4bab82e149
Eeschema: fix text limit bug due to internal units scaling.
Change default text size and anchor positions back to mils. Internal
units need to be converted at the source, otherwise the size will get
converted twice in the schematic editor configuration code which will
result in the default text size being off by the conversion factor.
Fixes #3730
https://gitlab.com/kicad/code/kicad/issues/3730#
6 years ago
Jon Evans
4a65e9e515
Fix a few size issues after the internal units change
6 years ago
Jeff Young
35c8d64f98
Add super- and subscript support to Eeschema.
Note that since the markup might exist for other reasons, it has
to be turned on with a preference setting. (It goes through a set
of bitflags so the same architecture can be used for other markup
structures that we might want to support in the future.)
Note also that this is more about engineering nomenclature than
visual formatting. In that respect it's more similar to overbar
than italic or bold.
6 years ago
Jeff Young
58b9d5f69e
Map orientation when converting text types.
Also fixes up dangling state when converting.
Fixes: lp:1844716
* https://bugs.launchpad.net/kicad/+bug/1844716
6 years ago
Jeff Young
4bf2b6a9f7
Performance enhancements for cross-probing.
While found when profiling cross-probing, many of these will also
improve other things.
6 years ago
Jeff Young
5503727d3d
Fix some placement bugs with selection haloes on text.
Fixes: lp:1838841
* https://bugs.launchpad.net/kicad/+bug/1838841
7 years ago
Jeff Young
937e3c2d48
Make m_Text private so we don't keep getting bugs where m_shown_text fails to get updated.
Fixes: lp:1838655
* https://bugs.launchpad.net/kicad/+bug/1838655
7 years ago
Jeff Young
ad26ece8d4
Add Global Edit Text and Graphics Properties to Eeschema.
Fixes: lp:1801150
* https://bugs.launchpad.net/kicad/+bug/1801150
7 years ago
Jeff Young
6fab7cc025
Remove a bunch of ugly mutex hacks now that we don't use wxString's UTF8 mode anymore.
7 years ago
Jeff Young
d6e9bdf07b
Convert remaining legacy drawing code to print code.
7 years ago
Jeff Young
053c26c96e
Refresh shown_text cache when incrementing label name.
Fixes: lp:1828874
* https://bugs.launchpad.net/kicad/+bug/1828874
7 years ago
Jeff Young
ea0941cab3
Implement modern tools for LibEdit.
7 years ago
Jeff Young
fd546da640
Homogenize hit testing and selection return types.
Prep work for sharing SCH_SELECTION_TOOL with LibEdit.
7 years ago
Jon Evans
3bfe5fb84b
Cache unescaped text to boost connectivity performance
7 years ago
Jeff Young
684bb62fd8
Escape slashes in labels and netnames.
Also re-allows spaces, as they can already come in through sheet
names.
Fixes: lp:1798621
* https://bugs.launchpad.net/kicad/+bug/1798621
7 years ago
Jeff Young
5ac96c6127
More mutex locking for SCH_FIELDs.
Fixes: lp:1822678
* https://bugs.launchpad.net/kicad/+bug/1822678
7 years ago
Jeff Young
a67d8c60df
Fix text size measurement.
5.0 doesn't set the GAL's line width. It gets away with this since
it's using the same GAL to measure as to set up the drawing, so
the width happens to be set correctly for other reasons. 5.1 uses
a separate GAL and so isn't so lucky.
7 years ago
Tomasz Wlostowski
32d262b0fe
EDA_TEXT: add missing header
7 years ago
Jeff Young
020c7b5cb8
Fix non-OSX compile issue (includes).
7 years ago
Jeff Young
0e3919e7aa
Fix DRC & zone filling for copper text in footprints.
Also improves handling of copper edges in footprints and of text
and track locations in DRC markers.
Also adds DRC for tracks & zones.
Fixes: lp:1762474
* https://bugs.launchpad.net/kicad/+bug/1762474
Fixes: lp:1788268
* https://bugs.launchpad.net/kicad/+bug/1788268
7 years ago