jean-pierre charras
a8c29c47cf
pagelayout_editor: minor fix and minor code cleanup
4 years ago
Seth Hillbrand
faa3829ad4
Add MRU to image placement tools
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Jeff Young
9ee28ea8f5
Flatten out some more preferences.
4 years ago
Jeff Young
d28714167c
All the preferences, all the time.
Fixes https://gitlab.com/kicad/code/kicad/issues/7877
Fixes https://gitlab.com/kicad/code/kicad/issues/5153
4 years ago
Jeff Young
696619fdb6
Larger set (and larger default) of grid sizes for drawing sheet editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/9494
4 years ago
Jeff Young
e4ccff1d93
Fix drawing sheet editor for status bar constraints message
Also makes the spacers font-size-relative.
4 years ago
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago
Jeff Young
a1dfc36233
More error message regularization.
4 years ago
Jeff Young
5c21f93803
Consistency in progress and error messages.
4 years ago
Jeff Young
685ee31c35
Workaround a few more OSX printf problems.
Also regularizes the frame title processing.
Also fixes a type where the library name wasn't processed for
variable expansion.
Fixes https://gitlab.com/kicad/code/kicad/issues/7742
4 years ago
jean-pierre charras
2f9ce63623
Fix incorrect (not updated) canvas_type saved in config
4 years ago
Wayne Stambaugh
6b5d512b9f
More header clean up.
5 years ago
Marek Roszko
b1c9083743
Remove the wx/docview.h include
5 years ago
Wayne Stambaugh
7c14e4e967
Common widget header housekeeping.
5 years ago
Marek Roszko
7faee5eda5
Stop salt the eart with wxhtml.h
5 years ago
Ian McInerney
3ab69939f9
Remove wx.h from many files
5 years ago
Jeff Young
c4cabb38d5
More worksheet -> drawing sheet cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8516
5 years ago
Marek Roszko
1b94534451
Revert "Use lambdas to fix paste conditions"
This reverts commit 65c7c77c3d .
5 years ago
Marek Roszko
65c7c77c3d
Use lambdas to fix paste conditions
`SELECTION_CONDITIONS::Idle && ` was evaluating as always true because this was referencing the function pointer
5 years ago
Seth Hillbrand
752ae4d519
Rename modification flag routines
Differentiates better between the EDA_ITEM IsModified(), referring to
items themselves changing and the EDA_SCREEN IsContentModified(),
referring to whether we have made any unsaved changes.
5 years ago
Seth Hillbrand
d7f219e98f
Unify IsSave and IsModify
The flags and calls were used identically, leading to potential
confusion/bugs. Testing for modification should go through
IsContentModified()
5 years ago
Ian McInerney
0a0935e0f3
Remove ACTIONS::TranslateLegacyId and TOOL_DISPATCHER::DispatchWxCommand
After commit 9535153f9e there were no more IDs inside the legacy ID
system. Therefore the entire system for dispatching and looking up
the legacy ideas and handling those events can now be removed and
the tool dispatcher simplified (it no longer needs to know about
the ACTIONS class).
5 years ago
Ian McInerney
475ac3697f
Ensure toolbar controls have the correct width on frame creation
Otherwise they could be slightly too small and then look odd.
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
Jeff Young
a3b9e8ddb4
Round 2 of Worksheet -> Drawing Sheet.
5 years ago
Jeff Young
cad5198ab7
Worksheet -> (industry standard) Drawing Sheet.
5 years ago
Jeff Young
2d28ed8eda
Move canvas backend selection to Preferences.
Fixes https://gitlab.com/kicad/code/kicad/issues/7630
5 years ago
Jeff Young
66b33834b5
Always enable save; move dirty bit to asterisk in title bar.
Also unifies PCB Editor and Schematic Editor names with other
locations in the GUI (which were still Pcbnew and Eeschema).
Fixes https://gitlab.com/kicad/code/kicad/issues/7587
Fixes https://gitlab.com/kicad/code/kicad/issues/7594
5 years ago
Seth Hillbrand
505844f68c
Generalize the Ctrl-Q to all frames
Rather than adding our handler to each frame separately, we initialize
the Ctrl-Q quit action at the base frame to be consistent
5 years ago
Mikolaj Wielgus
a6b2fb3819
Page layout editor: Fix bitmap bounding box
Fixes https://gitlab.com/kicad/code/kicad/issues/7315
5 years ago
Dominik Wernberger
bb2881a5ab
Make RENDER_SETTINGS argument const
5 years ago
Seth Hillbrand
61ac9c8d90
Add multiple size icons for programs
In theory, the WM should now choose the closest size icon for its
purpose, making it easier to distinguish in space-constrained settings
Fixes https://gitlab.com/kicad/code/kicad/issues/6798
5 years ago
Jeff Young
47ea51ec34
Allow both aui-manager-based infobars and window overlay infobars.
5 years ago
Wayne Stambaugh
08cf9a1e20
Move headers from common folders to appropriate include folders round 1.
5 years ago
Jeff Young
73b7b104cd
Fix some issues with Infobar sizing.
This also commits to the new strategy as it wasn't really compatible
with if-def-ing anymore.
5 years ago
Marek Roszko
809149d747
Add opt toolbar to pl editor
5 years ago
Marek Roszko
5a2ef73d66
Fix the pleditor status bar text
5 years ago
jean-pierre charras
64f555079a
Code cleanup related to zoom:
- remove outdated code or comment coming from old drawing code using wxDC
- move zoom values lists to zoom_defines.h
- fix incorrect zoom max and min values (gal scaling factor limits).
5 years ago
jean-pierre charras
fcce62f0a4
cleanup related to zoom definitions
5 years ago
jean-pierre charras
71ab42e60a
Minor fixes and cleanup related to zoom definitions.
Mainly move 2 define relative to Zoom from convert_to_biu.h to zoom_defines.h.
Will make some changes/fixes in zoom code more easy.
5 years ago
Jeff Young
f57cd91cb3
Formatting.
5 years ago
jean-pierre charras
005c3b84ad
Better fix for incorrect page preview in Page Settings when the worksheet contains a bitmap
The actual size of pixels was incorrectly set.
Fix also bad names for a few vars and methods in BITMAP_BASE.
5 years ago
Marek Roszko
16e3e59495
Split out arrayDim and MIRROR templates from macros.h
These were not macros
5 years ago
Jeff Young
a207bd97bb
Naming conventions.
5 years ago
Marek Roszko
6e9ddd9c93
Enable canvas switching in pl_editor
5 years ago
Marek Roszko
14c18b7e64
Move ui functions out of common and into ui_common
5 years ago
Marek Roszko
a785f70ea1
msgpanel is a widget, shove it to the right folder.
5 years ago
Seth Hillbrand
4085757aeb
Remove beginning/ending spaces in translations
Adding space padding makes translations more difficult by increasing
string counts
5 years ago
Wayne Stambaugh
8ff51d8899
Eeschema: add schematic sheet page number.
The groundwork has now been laid for per sheet instance data. Initially
this only supports sheet page numbers but could be expanded to include
other per sheet instance information.
ADDED: Support for user defined schematic page numbers.
5 years ago