Jeff Young
47e002a33d
Add font to status bar for text objects.
4 years ago
Roberto Fernandez Bautista
0015574a60
${SHEETNAME} represents the sheet name + introduce ${SHEETPATH}
CHANGED: The text variable ${SHEETNAME} now always represents the name of the
sheet when used anywhere in the schematic editor, including the title block
ADDED: A new text variable ${SHEETPATH} which is replaced with the path to the
current sheet - e.g. "/Sheet 1/Sheet 2".
To ensure backward compatibility, the default drawing sheet now uses
${SHEETPATH}. Custom drawing sheets will need to be manually edited.
4 years ago
Seth Hillbrand
49c48e2fe0
Consistently handle env/prj variables
User-defined variables cannot be used for internally-reserved variables
Fixes https://gitlab.com/kicad/code/kicad/issues/11232
(cherry picked from commit c23679d9bd
)
4 years ago
Jeff Young
e8a543f1ea
Colors for text in PL_Editor and Eeschema.
Fixes https://gitlab.com/kicad/code/kicad/issues/1952
4 years ago
Jeff Young
92a229eec7
ADDED separate user-defined color for page limits.
Fixes https://gitlab.com/kicad/code/kicad/issues/5271
4 years ago
Jeff Young
65185f53a1
Rotate fp zones before comparing with library versions.
Also includes some performance fixes to not copy around triangulation
data when it's not needed.
Fixes https://gitlab.com/kicad/code/kicad/issues/10143
4 years ago
Jeff Young
b55bda8d6f
Font support for drawing sheet editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/10306
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
fbab335128
Retire DPOINT and DSIZE.
4 years ago
Jeff Young
67eb3116ce
Remove DPOINT from drawing sheet stuff. (Use VECTOR2D instead.)
4 years ago
jean-pierre charras
8d5eba7649
DRAWING_SHEET_PARSER: fix missing parse of "T_comment" case for DS_DATA_ITEM_BITMAP.
Fixes #10477
https://gitlab.com/kicad/code/kicad/issues/10477
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
1b19ff5f42
More EDA_ANGLE changes.
4 years ago
Jeff Young
89c0f8e297
Move to new font engine.
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
ceceda37cc
No more long-lived parsers.
We've had too many bugs from improper re-initialization.
Fixes https://gitlab.com/kicad/code/kicad/issues/9429
4 years ago
Jeff Young
b2fa2f81b2
Paste code expects a fully formed worksheet.
(And we may need the version later, so it's better to have it than
to not.)
Fixes https://gitlab.com/kicad/code/kicad/issues/9590
4 years ago
Jeff Young
574bef2237
Normalize drawing sheet path to env vars & prj, not just prj.
Also cleans up the dialog a bit.
Also changes the workings of NormalizePath to return the input if
it couldn't be shortened which saves open coding that behaviour in
all its callers.
Fixes https://gitlab.com/kicad/code/kicad/issues/9036
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
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago
Seth Hillbrand
e7905b05e7
Fix formatting error in datasheet formatting
4 years ago
Jeff Young
f6287053e5
Naming conventions.
4 years ago
Albin Dennevi
cfea39f967
Updated worksheet templates using v5.99 Drawing Sheet Editor
4 years ago
Albin Dennevi
e631dd087b
Drawing Sheet Templates corrected
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Jeff Young
f221220fe2
Rename layer ids file.
It hasn't had anything to do with colors or visibility for some time
now.
4 years ago
Jeff Young
2739cdbd43
Add error message logging to opening of drawing sheet.
4 years ago
Jeff Young
a1dfc36233
More error message regularization.
4 years ago
Mikolaj Wielgus
63c263090f
Add versioning to page layout editor worksheets
4 years ago
jean-pierre charras
5cce3f6e18
Fix a few Coverity warnings (not initialized vars) and a minor compil warning
4 years ago
Jeff Young
9411d301a0
Repair recent pass-by-reference cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8576
4 years ago
Marek Roszko
6e01ce84b9
Break out eda_item_flags.h, fix the typedef to std::uint32_t, fix some signed vars
4 years ago
Wayne Stambaugh
e6346e3103
Pass objects by reference instead of on the stack part 2.
4 years ago
Marek Roszko
cf2bb5692a
Remove the wxLog calls from math/util.h for now
This was leaking windows headers and partial wx headers to 1084 compilation units......
This also means math/util.h is leaking to 1084 compilation units which seems a bit high too.
4 years ago
Jeff Young
c4cabb38d5
More worksheet -> drawing sheet cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8516
4 years ago
jean-pierre charras
6b9e44e59c
pl_editor: save comment associated to DS_DATA_ITEM graphic items.
The editor has an entry to set a comment associated to a graphic item.
It is only for the designer, but the code to save it in .wks file when not empty was missing.
The code to read it exists since the beginning, so no change in file format
5 years ago
Marek Roszko
0dd746548a
DS_DATA_MODEL::LoadDrawingSheet actually was meant to accept blank filenames as a good thing
It was there...if you stared at it long enough
5 years ago
Marek Roszko
cc1bfd4c18
Harden drawing sheet loading slightly...
The fact it blindly assumed it would always work makes me sad :( So this is just ducktape
5 years ago
Jon Evans
433e148e08
Move some string formatting functions out of base_units
Keeping them in base_units means that we can't introduce
any dependence on these functions to anything that needs to
compile without one of the unit defines (EESCHEMA, PCBNEW, etc)
5 years ago
Jonathan Haas
55679be2e3
Fix some typos across the codebase
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
Jonathan Haas
3d563af758
Make drawing sheet editor item names translatable.
5 years ago
Jonathan Haas
a4b1f9187d
Drawing Sheet Editor: Assign a line width before drawing page border
5 years ago
Jeff Young
a3b9e8ddb4
Round 2 of Worksheet -> Drawing Sheet.
5 years ago