Johannes Pfister
8e8979e317
Fixed a memory leak in CONDITIONAL_MENU
CONDITIONAL_MENU::ENTRY now owns the wxItem object.
6 years ago
Jeff Young
3cdf88f2c6
CERN copyrights for work packages.
6 years ago
Ian McInerney
8493daf9ff
Unify menu item creation for closing a window
* Push a function into CONDITIONAL_MENU that adds the item
* Modify the tooltip for close and exit items to have the
program name
Fixes: lp:1835454
* https://bugs.launchpad.net/kicad/+bug/1835454
6 years ago
Jeff Young
cc82e59003
Push the Quit/Close menu logic down into common.
6 years ago
Ian McInerney
05429bc39c
Recursively call evaluate on submenus of conditional menus
There seems to be a bug with certain GTK setups that prevents the
submenus from getting sized correctly unless the elements are added
when the main menu is displayed.
Fixes: lp:1835460
* https://bugs.launchpad.net/kicad/+bug/1835460
6 years ago
Jeff Young
19aba615c2
Remove selection condition from conditional menu separators.
We don't allow duplicate separators anyway so all they really do
is complicate the code.
7 years ago
Jeff Young
5610261dce
Immediate-action hotkeys (and context menu actions) for eeschema.
7 years ago
Jeff Young
b9e07f2a70
Attempt to fix un-resolved sub-menus.
While I'm pretty sure this will work, the issues don't appear on OSX
so I can't be positive.
Fixes: lp:1832049
* https://bugs.launchpad.net/kicad/+bug/1832049
7 years ago
Jeff Young
45a9544726
Instantate a default menu from no selection when menu is first built.
This might resolve some of the GTK menu anomalies.
7 years ago
Jeff Young
74e10791ff
Fix some Mac-specific issues with the Preferences... menu item.
7 years ago
Jeff Young
67cc2aac2e
Rework Eeschema find/replace for modern toolset.
Fixes: lp:1827274
* https://bugs.launchpad.net/kicad/+bug/1827274
Fixes: lp:1827240
* https://bugs.launchpad.net/kicad/+bug/1827240
7 years ago
jean-pierre charras
aee1fe45f4
Fix a few issues related to Bitmaps in menus.
- fix missing icons.
- remove duplicate (and incorrect) code to set these icons in wxMenuItems
7 years ago
Jon Evans
95a6fb6ea3
Don't set bitmaps on non-normal menu items under wxGTK
Fixes: lp:1829780
* https://bugs.launchpad.net/kicad/+bug/1829780
7 years ago
jean-pierre charras
d701637eab
Footprint viewer: Fix crash when truing to open the View menu.
7 years ago
jean-pierre charras
97ddefd01a
Cosmetic refinement in conditional menu: avoid adding useless separators in menu.
A useless separator is a separator added when no menuitem was previously added.
7 years ago
Jeff Young
13aa503614
Hack for wxWidgets failure to open menu on MSW.
7 years ago
Jeff Young
69afa27a5f
Implement ACTION_TOOLBAR and update some of the menus to ACTION_MENU.
This gives us better separation of MVC in line with the design of
the modern toolset. It also reduces a whole bunch of duplicated
data.
7 years ago
Jeff Young
f9e4ee1fc9
CONTEXT_MENU -> ACTION_MENU. (Now used for menu-bar menus too.)
7 years ago
Jeff Young
ef5c69167a
Start moving some LibEdit and SchEdit menubar menus to actions.
Also includes a bunch of bug fixes that got intermingled.
Fixes: lp:1828826
* https://bugs.launchpad.net/kicad/+bug/1828826
Fixes: lp:1828826
* https://bugs.launchpad.net/kicad/+bug/1828826
Fixes: lp:1828793
* https://bugs.launchpad.net/kicad/+bug/1828793
7 years ago
Jon Evans
fd4e2b042c
Refactor SELECTION, SELECTION_CONDITIONS, and context menus to common
SELECTION now holds EDA_ITEMs not BOARD_ITEMs so various places had to
change to casting the selected items to BOARD_ITEMs.
Fixed compilation warnings on clang (Tom)
9 years ago
Maciej Suminski
1102eb0d0d
Store menu titles in CONTEXT_MENU
Previously a title had to be provided when a submenu was added,
but this led to storing the same title in many places.
9 years ago
Maciej Suminski
682da70a86
Fixed the issue of creating and event handling in context menus (GAL).
When creating a copy of CONTEXT_MENU, always a CONTEXT_MENU instance was
constructed, whereas an inherited type should be used. Solved with
CONTEXT_MENU::create() that has to be overridden in inheriting classes.
Event & update handlers are now virtual functions, instead of setting
the handlers with Set{Event,Update}Handler().
9 years ago
Simon Richter
b0f9864bc4
Clean up warnings from exception handlers
The exception objects caught are either not referenced at all, or only in
debug builds. This avoids the warnings for the unused variables.
9 years ago
Maciej Suminski
24e7f961b9
Fix a Coverity report (catches an unhandled exception).
10 years ago
Tomasz Wlostowski
9c2bcb2f3c
Fixed crash on right click on zone with GAL mode.
10 years ago
Maciej Suminski
29cbaa206e
Fixed updating of Zoom & Grid context menus.
10 years ago
Maciej Suminski
d6bc33bd42
Removed a few more memory leaks and fixed crash on exit.
10 years ago
Maciej Suminski
83171482b3
Fixed a memleak (CONDITIONAL_MENU).
10 years ago
Maciej Suminski
6788e31a1e
Fixed context menu crash on OS X (GAL).
11 years ago
Maciej Suminski
da75c52665
Hot keys settings are synchronized between GAL & legacy
11 years ago
Maciej Suminski
81ea3ce408
Missing files.
11 years ago