Commit Graph

84 Commits

Author SHA1 Message Date
mattias
1c57b8cc78 lcl: cocoa: fixed keyboard navigation in open dialog
git-svn-id: trunk@64571 -
2021-02-13 16:24:45 +00:00
dmitry
a67fb97c5e cocoa: preventing itemSelected event during performKeyEquivalent call. bug #37789
git-svn-id: trunk@64365 -
2021-01-09 18:12:06 +00:00
dmitry
24f5f9b1d9 cocoa: restoring the actual menu state once the system dialog is closed. bug #38182
git-svn-id: trunk@64180 -
2020-12-08 05:37:38 +00:00
dmitry
f490c67b0f cocoa: if app is inactive searching through available windows in order to find one by mouse position. bug #37877
git-svn-id: trunk@64117 -
2020-11-09 00:58:59 +00:00
dmitry
dfd2b9ea65 cocoa: use number of items, of inserting a menu item for the first time
git-svn-id: trunk@62701 -
2020-03-07 03:25:08 +00:00
dmitry
251a2f91f6 cocoa: removing unused function. related to bug #36049
git-svn-id: trunk@62435 -
2019-12-23 17:37:16 +00:00
dmitry
4213fd0677 cocoa: making menu captions resource strings. Patch by Zoë Peterson. bug #35234
git-svn-id: trunk@62355 -
2019-12-08 19:32:57 +00:00
dmitry
3930aa1772 cocoa: adding menu hijack specific handling of quite menu command. bug #36265
git-svn-id: trunk@62215 -
2019-11-07 04:04:38 +00:00
dmitry
facd13195f cocoa: checking if coordinates flip in needed, when showing popup menu. bug #35975
git-svn-id: trunk@61708 -
2019-08-16 19:02:01 +00:00
dmitry
f6181c1d0d cocoa: ultimate fix for modal menus not making clicks. #35929
git-svn-id: trunk@61674 -
2019-08-09 01:32:05 +00:00
dmitry
63e8fd0573 cocoa: recreating menu item handle, if switches between separation caption
git-svn-id: trunk@61595 -
2019-07-16 00:27:31 +00:00
dmitry
544969faaf cocoa: revert changes done with r61262 #006c5d25d5 (menuDidClose handling). #35625
git-svn-id: trunk@61286 -
2019-05-24 12:52:49 +00:00
dmitry
006c5d25d5 cocoa: adding submenu invalidation, so the menuNeedsUpdate is called
git-svn-id: trunk@61262 -
2019-05-21 17:53:06 +00:00
dmitry
473ea12b96 cocoa: restore LM_ACTIVE sending for menus, when menuNeedsUpdate is called. #30808
git-svn-id: trunk@61261 -
2019-05-21 17:40:09 +00:00
dmitry
79e367e184 cocoa: send activate message (Onclick event) whenever a submenu opens up. #30808
git-svn-id: trunk@61260 -
2019-05-21 17:27:58 +00:00
dmitry
130eb4be3b cocoa: updating menu handling. Preventing wrong click call. Preventing parent menus closing
git-svn-id: trunk@61101 -
2019-05-01 19:41:22 +00:00
dmitry
02284c559f cocoa: binding a popup menu to the key window. The window is need to pick up the theme colors
git-svn-id: trunk@61058 -
2019-04-26 12:38:31 +00:00
dmitry
17b5600500 cocoa: correct state image selection depending on type of the menu (radio or not)
git-svn-id: trunk@60989 -
2019-04-16 00:11:37 +00:00
dmitry
360bfc74b1 cocoa: menus - fix cocoa app mem leak for allocated TcocoaMenuItems
git-svn-id: trunk@59754 -
2018-12-07 04:04:18 +00:00
dmitry
480574f3d9 cocoa: update menus to be able to remove separator items
git-svn-id: trunk@59753 -
2018-12-07 03:53:49 +00:00
dmitry
eb70a1aff6 cocoa: update removal of menuItems. Removing an item from parent menu rather than from parentItem's menu. #34602
git-svn-id: trunk@59752 -
2018-12-07 03:29:11 +00:00
dmitry
06fc6ff719 cocoa: update type cocoawsmenu type switching from boolean to LCLObjCBoolean. #34609
git-svn-id: trunk@59750 -
2018-12-07 01:24:56 +00:00
dmitry
c7ae0282b6 cocoa: updating LCL overrides to recognize different boolean types used in FPC headers. #34609
git-svn-id: trunk@59725 -
2018-12-04 04:18:34 +00:00
dmitry
a341d94c64 cocoa: workaround for a problem with 64-bit boolean parameter passing (see fpc issue #34411 for details)
git-svn-id: trunk@59329 -
2018-10-21 03:45:35 +00:00
dmitry
a6d2915670 cocoa: the first oddity of modal sessions. Context Menu would not call an action to indicate the menu item selected #34325
git-svn-id: trunk@59164 -
2018-09-25 04:21:13 +00:00
dmitry
9405a3fe6d cocoa: update attachmenu process, so NSMenu can be added into NSMenuItem as a subitem. #34293
git-svn-id: trunk@59106 -
2018-09-21 00:57:23 +00:00
dmitry
55d94ff91b cocoa: restore radio-menues functionality. #34310
git-svn-id: trunk@59102 -
2018-09-20 23:24:07 +00:00
dmitry
b78d982809 cocoa: support for Services menu
git-svn-id: trunk@59088 -
2018-09-20 04:16:53 +00:00
dmitry
c814ad8b50 cocoa: update mainmenu implementaiton. Added support for Hide Others and Show All menu items
git-svn-id: trunk@59029 -
2018-09-16 05:39:39 +00:00
dmitry
c38c08ac2d cocoa: restore filtering of ampersands in menu titles
git-svn-id: trunk@59023 -
2018-09-16 00:26:17 +00:00
dmitry
b58cc4129e cocoa: fix compilation issue made by the prev commit
git-svn-id: trunk@59022 -
2018-09-16 00:04:00 +00:00
dmitry
8b3eee4076 cocoa: initial support for enabling/disabling menus on ShowModal
git-svn-id: trunk@59021 -
2018-09-16 00:00:10 +00:00
dmitry
a0ce476b68 cocoa: remove lclIsHandle method completetly. Handle use is defined on WS level and stored with the callback object
git-svn-id: trunk@59015 -
2018-09-15 20:56:42 +00:00
dmitry
e145093592 cocoa: correct image assingment during menu item creation
git-svn-id: trunk@58999 -
2018-09-14 23:18:26 +00:00
dmitry
e4164ae839 cocoa: fix GetItemAtXY for CocoaWSListBox. #34265. removed LCLCoordsToCocoa from utils back to menus
git-svn-id: trunk@58966 -
2018-09-12 16:00:51 +00:00
dmitry
cbb9c40974 cocoa: code moving and cleaning up units use
git-svn-id: trunk@58919 -
2018-09-09 04:41:25 +00:00
dmitry
5a3687fe08 cocoa: support for images for MenuItems (mainmenu, popupmenu). #33664
git-svn-id: trunk@58889 -
2018-09-06 04:44:43 +00:00
dmitry
ba497c60ac cocoa: fix invalid string deallocation
git-svn-id: trunk@58590 -
2018-07-21 23:49:59 +00:00
dmitry
74719b3d1d cocoa: menu preventing double release (seen in lazarus ide)
git-svn-id: trunk@58585 -
2018-07-21 15:19:42 +00:00
dmitry
5b97504b36 cocoa: update control title routine. Using the function for CocoaBox titles. fixes #33989
git-svn-id: trunk@58520 -
2018-07-14 18:32:38 +00:00
dmitry
d7376f4066 cocoa: additional check for the presence of menuItemCallback for menuNeedsUpdate handler. (it might be that the menu behaviour changed in 10.13. the problem does not occur in 10.12 at all) #33906
git-svn-id: trunk@58476 -
2018-07-10 04:07:54 +00:00
dmitry
8364a171f3 cocoa: support for the greater combination of menu key short cuts #33502. The patch is provided by user named lks; the patch has been modified to reduce the amount of memory reallocations on string conversion
git-svn-id: trunk@58413 -
2018-06-26 03:16:02 +00:00
dmitry
697151fb2d cocoa: making sure that the proper NSMenu- class is created for a proper LCL item. #32987
git-svn-id: trunk@57019 -
2018-01-09 03:30:31 +00:00
dmitry
56bdf66786 cocoa: handling recration of TCocoaMenuItem, considering that it could be an immediate child of TMenu or TMainMenu, in which case it is a different handle for Cocoa (NSMenu or NSMainMenu)
git-svn-id: trunk@56912 -
2018-01-02 02:42:14 +00:00
dmitry
7e51c62172 cocoa: cleaning up warnings in CocoaWSMenus
git-svn-id: trunk@56756 -
2017-12-16 05:29:56 +00:00
sekelsenmat
0a739a97c9 cocoa: Fixes bug #32042, adds support for custom apple menu
git-svn-id: trunk@55837 -
2017-09-11 17:15:09 +00:00
sekelsenmat
538f648aec cocoa: Fixes bug #32042, lack of Apple menu in TMainMenu when no menu item has apple title, part 2
git-svn-id: trunk@55836 -
2017-09-11 17:08:23 +00:00
sekelsenmat
3df17e4496 cocoa: Fixes bug #32042, lack of Apple menu in TMainMenu when no menu item has apple title
git-svn-id: trunk@55835 -
2017-09-11 16:21:57 +00:00
sekelsenmat
9c4e00108a cocoa: bug #32148 Quit from application menu does not close main form
git-svn-id: trunk@55597 -
2017-07-27 06:28:35 +00:00
juha
7780afbc23 LCL-Cocoa: Insert menu items at correct location. Issue #30827, patch from Zoë Peterson.
git-svn-id: trunk@54644 -
2017-04-19 11:55:18 +00:00