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
Wayne Stambaugh
46b959c3e3
Move plotter headers into include folder.
4 years ago
Wayne Stambaugh
cb72da294a
More NULL expunging.
4 years ago
Wayne Stambaugh
71c183d7bb
Rename LIB_PART to LIB_SYMBOL.
5 years ago
Wayne Stambaugh
9ebabb222c
Pass objects by reference instead of on the stack.
5 years ago
Jon Evans
18037e2f65
Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.
Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz
The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.
Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.
Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
5 years ago
Dominik Wernberger
e2aa7be4b3
Added a lot of consts and refactored a few lines
5 years ago
Jeff Young
0dd65d9cd1
Naming conventions and file order.
5 years ago
Dominik Wernberger
bb2881a5ab
Make RENDER_SETTINGS argument const
5 years ago
Jeff Young
c1d1c12b41
Simplify message panel code.
We've had the colours turned off for two releases now without any
screaming or gnashing of teeth, so it's time to clean up the code.
5 years ago
Jeff Young
b227d2b910
More component -> symbol.
5 years ago
Jeff Young
7bd31d5237
Naming conventions.
5 years ago
Jeff Young
bddc97df30
LibEdit -> SymbolEditor
5 years ago
Marek Roszko
a785f70ea1
msgpanel is a widget, shove it to the right folder.
5 years ago
Marek Roszko
e928b2d8fd
Split EDA_UNITS out from common.
5 years ago
Mikolaj Wielgus
400c15b8eb
Add mils to units, remove useMils variables
5 years ago
jean-pierre charras
7865d8de43
more cleanup about removing useless include
5 years ago
Jeff Young
13f1de8e73
Forgot a bunch of files from last commit.
5 years ago
Jeff Young
f347118ce3
Add a min pin width advanced config for plotting.
Fixes https://gitlab.com/kicad/code/kicad/issues/5546
5 years ago
Jeff Young
1535c83b88
Lay some groundwork for adding distances to DRC errors.
modified: eeschema/lib_rectangle.cpp
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
jean-pierre charras
952e7a5fb4
Eeschema: move some default values to default_values.h.
These default values are used in many files, and some files were using
magic numbers.
6 years ago
jean-pierre charras
6148461484
Eeschema plot: fix (temporary) line 0 thickness.
Plotting lines having 0 thickness is not acceptable and create issues.
6 years ago
Jeff Young
6e800bddae
Rationalize penWidth processing as first step in removing some globals.
6 years ago
Jeff Young
591428b0d9
Remove some problematic global variables.
Fixes https://gitlab.com/kicad/code/kicad/issues/4121
6 years ago
Jon Evans
643c97a2f4
ADDED: Schematic plotting can use a dedicated color theme
ADDED: PDF, PS, and SVG plots can optionally include the page background color
Fixes #1830
6 years ago
Wayne Stambaugh
e1900161a7
Eeschema: implement new symbol library file s-expression formatter.
CHANGES: Symbol library file format has been converted to s-expressions.
Add support code for picking apart symbols at some future junction that
will allow full inheritance conversion of existing symbol libraries. For
now, symbols arranged by unit and body style numbers are nested for round
robin testing of symbol libraries once the parser is complete.
6 years ago
Jeff Young
2507f985ad
Adjust justified text for mirroring and rotation.
Fixes https://gitlab.com/kicad/code/kicad/issues/3737
6 years ago
Wayne Stambaugh
aeb3281e27
Convert Schematic Internal Units to 100nm
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
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
b4c8657904
Fix non-visible-part or conversion items from getting selected.
Also renames lib_draw_item to lib_item to match the class.
Fixes: lp:1840170
* https://bugs.launchpad.net/kicad/+bug/1840170
6 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
6 years ago
Jeff Young
6bf1ac45e3
New selection highlighting model for eeschema.
6 years ago
jean-pierre charras
b74bccbb13
Eeschema: fix a bug in LIB_TEXT::Plot, that plotted an empty text.
Fixes: lp:1827124
https://bugs.launchpad.net/kicad/+bug/1827124
6 years ago
Jeff Young
d03041b565
Cleanup.
6 years ago
Jeff Young
d6e9bdf07b
Convert remaining legacy drawing code to print code.
7 years ago
Jeff Young
323bb0f8e1
Moving PageLayout editor to GAL canvas and modern toolset.
7 years ago
Jeff Young
f6e07f575a
Rename for clarity.
SetOffset() didn't set anything; it performed an action.
Move() suggests a delta, when it in fact does a SetPosition().
7 years ago
Jeff Young
ea0941cab3
Implement modern tools for LibEdit.
7 years ago
Jeff Young
40f41133b3
Move Circle, Arc, Rectangle and PolyLine tools to modern toolset.
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
Jeff Young
2aad4a5e57
Remove dead code from removal of eeschema legacy canvas.
7 years ago
Jeff Young
a8c7bb0c92
Move library text items to LAYER_DEVICE. Only sch text items belong on LAYER_NOTES.
Fixes: lp:1800350
* https://bugs.launchpad.net/kicad/+bug/1800350
7 years ago
Jeff Young
f17c18bcce
Remove AdvanceDepth() hacks in favour of proper layers.
Also removes the bounding-box cache since the last big merge
should have sorted out the Update(GEOMETRY) calls.
Fixes: lp:1797271
* https://bugs.launchpad.net/kicad/+bug/1797271
Fixes: lp:1797268
* https://bugs.launchpad.net/kicad/+bug/1797268
Fixes: lp:1797075
* https://bugs.launchpad.net/kicad/+bug/1797075
7 years ago
Seth Hillbrand
bfa7f16b44
Wrap printfs in DBG defines
This places the remaining printf statements behind DBG() macros to
suppress their output on release builds. We should remove these prior
to 5.1
7 years ago
Tomasz Wlostowski
90c7c60471
eeschema-gal: initial GALified version. Lots of stuff still to do!
7 years ago
Jeff Young
eacaa39aa2
Remove global units usage from GetSelectionText...
... and GetMsgPanelInfo.
Step 4 in the g_UserUnit eradication effort.
Also removes a couple of conversion routines that were close
enough to extinction.
(cherry picked from commit c75da51)
8 years ago