Marek Roszko
b1c9083743
Remove the wx/docview.h include
4 years ago
Wayne Stambaugh
7c14e4e967
Common widget header housekeeping.
4 years ago
Marek Roszko
7faee5eda5
Stop salt the eart with wxhtml.h
4 years ago
Ian McInerney
3ab69939f9
Remove wx.h from many files
4 years ago
jean-pierre charras
0b4075e3a9
French translation update
Fix also a very small difference between 2 strings to translate
4 years ago
Jeff Young
c4cabb38d5
More worksheet -> drawing sheet cleanup.
Fixes https://gitlab.com/kicad/code/kicad/issues/8516
4 years ago
Jeff Young
0598c82972
Terminology (use present tense for flags).
4 years ago
Marek Roszko
1b94534451
Revert "Use lambdas to fix paste conditions"
This reverts commit 65c7c77c3d
.
4 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
4 years ago
jean-pierre charras
81c7fb61f8
Sub-menu "Preferences..." in main menu "Preferences": fix not working accelerator key.
Accelerator keys are disable in our WX_MENUBAR. A common ACTION_MENU is used and
"Preferences..." is now shown in Hotkeys list.
4 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.
4 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()
4 years ago
Jeff Young
7356f9568d
Move grid disable modifier from ALT to CTRL.
Also had to move the H/V/45 disable modifier from CTRL to SHIFT.
Fixes https://gitlab.com/kicad/code/kicad/issues/8124
5 years ago
Ian McInerney
916a15793f
Fix some OSX compiler warnings
5 years ago
jean-pierre charras
0427bda768
Remove useless wx/wx.h include, that create sometimes compil warnings on msys.
wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
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
Ian McInerney
1db5e2bc96
Don't force an entire refresh of toolbars to update sizes
Forcing an entire refresh of the toolbars is wasteful,
so instead just update the sizers directly.
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
Ian McInerney
42c6af4bd8
Cleanup ACTION_MENU creation in some places
The ACTION_MENU constructor now takes the tool as an argument,
so the call to SetTool() immediately following it can be removed
and the tool just passed into the constructor.
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
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
Marek Roszko
3d4ac9af03
Relocate win32 resource files to the central folder for further consolidation
5 years ago
jean-pierre charras
6da25337a9
Pl_editor: Try to fix an issue on wxGTK in PROPERTIES_FRAME
(scroll bars not always shown).
5 years ago
jean-pierre charras
c1003e2ddd
Fix missing call to Layout() in SIM_PLOT_FRAME after adding widgets.
Fix a minor wxWidgets warning.
5 years ago
Jon Evans
720147d272
Remove transitive inclusion of bitmaps.h
5 years ago
jean-pierre charras
70ce53112b
PlEditor: fix a truncation that creates a small size error.
Fixes #7822
https://gitlab.com/kicad/code/kicad/issues/7822
5 years ago
Marek Roszko
8831c5567c
Add win32 version manifest block
5 years ago
jean-pierre charras
9797bc5f25
Left Mouse Button: use same modifiers for Pcbnew, Eeschema and pleditor for selection.
It also means the "force disambiguation menu" uses now Ctrl in Eeschema and pleditor.
5 years ago
Seth Hillbrand
0bab025832
Fixup toolchaining for immediate mode
The move tool can stack on others, so when we re-enter the previous tool
this caused another immediate action. We flag re-entry in the tool
stack to check for this and avoid unexpected tool starts
5 years ago
Seth Hillbrand
0518d9c546
Add more force-immediate tools
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
Marek Roszko
622baa6531
Silence more unused exception var warnings
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
Marek Roszko
32bf88fa8e
Point to the user template path by default in pl editor
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
Wayne Stambaugh
6229b127e2
Page layout editor: fix minor properties panel control layout issues.
5 years ago
Wayne Stambaugh
6a39b81647
Fix the last of broken Doxygen comment specifiers.
5 years ago
Michael Kavanagh
479487ceb1
Tidy up context menus a bit
Try and put the common actions in the same places
5 years ago
jean-pierre charras
e29eefffab
French translation update.
5 years ago
Roberto Fernandez Bautista
ef00e7513a
pl-editor: Activate Point Editor immediately to allow resizing of item just created
5 years ago
Roberto Fernandez Bautista
c7624d2957
pl-editor: Don't update the properties panel while adding a shape item (line or rectangle)
Fixes a bug that caused a crash when editing an item in the properties window before it was fully created
5 years ago
Roberto Fernandez Bautista
c3190627e2
pl-editor: Don't update the properties panel while adding an text item
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7074
5 years ago
Jeff Young
f45c6b4166
Better labels and tooltips for step parameters.
Fixes https://gitlab.com/kicad/code/kicad/issues/7091
5 years ago
Jeff Young
69f8f79a42
Compress space out of pagelayout properties.
This allows the Apply button to appear on a MacBook Pro screen without
scrolling.
5 years ago
Seth Hillbrand
4f4a5ae3cf
Use longer labels
Removing context from labels makes it difficult for translators to
correctly interpret the text.
Fixes https://gitlab.com/kicad/code/kicad/issues/7091
5 years ago
jean-pierre charras
431616981b
pl_editor: fix a typo that copy the end pos Y prm into the end pos X prm
Fixes #7088
https://gitlab.com/kicad/code/kicad/issues/7088
5 years ago