Matthias Melcher
f4978a0149
Adding the FL_MENU_CHATTY flag to Fl_Menu_Item.
...
If set, menu items will also call the callback when highlighting changes.
The reason is given with Fl::callback_reason(). #941
2025-04-01 17:00:56 +02:00
ManoloFLTK
b3a6838128
Fix Mac: "Merge All Windows" fails if focused window is borderless ( #1100 )
2024-11-02 07:37:43 +01:00
dannye
5c6ec56b33
Submenus with no callback enter their submenu instead of closing the whole menu ( #1043 )
...
Thanks for those nice changes.
2024-10-06 19:19:54 +02:00
Albrecht Schlosser
d9c8cebfbe
Remove trailing whitespace
...
no code changes
2024-06-21 18:10:33 +02:00
ManoloFLTK
642ec5b74b
Slightly reorganize code of Fl_MacOS_Sys_Menu_Bar_Driver::play_menu()
2024-05-18 12:09:49 +02:00
ManoloFLTK
9df6dc2aeb
Fix uses of isupper() and isprint() - STR #3436
2024-05-15 14:59:13 +02:00
ManoloFLTK
a9085c3b11
Change member function args to Fl_Menu_Bar::play_menu(const Fl_Menu_Item *)
2024-05-15 11:50:32 +02:00
ManoloFLTK
79c3db48cf
New member function Fl_Menu_Bar::play_menu(const char *title)
2024-05-14 17:46:25 +02:00
Albrecht Schlosser
af90841fbc
Update dependencies, whitespace, and Fl_File_Chooser.cxx
...
Rewrite src/Fl_File_Chooser.cxx from its .fl source file
2024-03-19 15:39:18 +01:00
ManoloFLTK
483729f4f8
macOS: Fullscreen window loses sys menu bar if 2nd window is opened ( #924 )
2024-03-11 15:18:59 +01:00
ManoloFLTK
ad7d1dc1c6
Fullscreen window loses sys menu bar if 2nd window is opened ( #924 )
2024-03-04 19:43:17 +01:00
ManoloFLTK
a76229972e
macOS: remove test that became useless after 5f20698
2024-03-02 08:12:54 +01:00
ManoloFLTK
746cbf861a
Minor optimization of macOS automatic Window menu
2024-02-27 13:46:41 +01:00
ManoloFLTK
3f794d3abe
Allow FL_COMMAND+'+' as macOS system menu shortcuts - cont'd
2024-02-26 17:48:18 +01:00
ManoloFLTK
ba5ed296e9
Improve implementation of the macOS Window menu
...
The macOS Window menu is connected to the item array of the macOS menubar
via FL_SUBMENU_POINTER. This facilitates memorization of pointers
to items of the macOS menubar because the item array no longer changes
each time a window opens of gets closed.
2024-02-20 16:00:01 +01:00
ManoloFLTK
bb7e1635ad
macOS: remove a bunch of deprecation warnings
2023-10-09 11:16:36 +02:00
Matthias Melcher
a63ad76603
FLUID refactor and macOS warnings removed ( #623 )
...
P renamed to g_project
class Project renamed to class Fluid_Project
fixes macOS type cast warnings
2023-01-01 20:05:42 +01:00
ManoloFLTK
63a7942a66
macOS: support 5 more keys as Fl_Sys_Menu_Bar item shortcuts.
2022-10-01 13:28:52 +02:00
ManoloFLTK
63dcdcec0a
macOS: support FL_Up,FL_Down,FL_Left,FL_Right system menu item shortcuts
2022-09-30 07:36:07 +02:00
ManoloFLTK
d6832f210c
Fl_Sys_Menu_Bar: allow use of more keys as menu shortcuts.
2022-07-27 00:52:09 +02:00
ManoloFLTK
f582e06224
Fl_Sys_Menu_Bar: allow use of escape and tab as menu shortcuts.
2022-07-26 19:01:41 +02:00
ManoloFLTK
2ef4a81d18
Minor improvement in Fl_Mac_App_Menu::custom_application_menu_items().
2022-02-05 09:01:51 +01:00
ManoloFLTK
895ac51c69
macOS: add "Toggle printing of titlebar" to application menu - cont'd.
2022-02-02 11:19:09 +01:00
ManoloFLTK
935074ba0b
macOS: add "Toggle printing of titlebar" to application menu.
2022-02-02 11:05:53 +01:00
Albrecht Schlosser
92e9181a0a
Rename FL/fl_string.h to FL/fl_string_functions.h
...
This is part 1 of the final fix for a previous name clash on case
insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-16 19:47:16 +01:00
ManoloFLTK
1298bf00f5
Remove FL_CFG_WIN_COCOA preprocessor variable from Fl_Sys_Menu_Bar.cxx
2021-02-16 15:50:15 +01:00
Greg Ercolano
2141c63628
Implement + deploy fl_strdup()
2020-08-01 14:19:40 -07:00
Albrecht Schlosser
f09e17c3c5
Remove $Id$ tags, update URL's, and more
...
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org ' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
2020-07-06 20:28:20 +02:00
ManoloFLTK
87b73723ed
macOS Window menu: select in menu new top window after window deletion
2020-06-17 20:09:15 +02:00
ManoloFLTK
87c994e2f8
Fl_Sys_Menu_Bar: make it strict equivalent of Fl_Menu_Bar outside macOS
2020-02-28 16:47:44 +01:00
ManoloFLTK
58119f412d
Simplifies memory allocation of system menu items for FL_SUBMENU_POINTER
2019-02-27 13:16:47 +01:00
ManoloFLTK
a9a482b1cc
Remove statement that became unnecessary.
2019-02-24 11:12:38 +01:00
ManoloFLTK
6838814f9e
Simplify code for the FLMenuItem class
2019-02-24 10:59:10 +01:00
Matthias Melcher
452a410a3e
STR #2714 : remove new shadow lint for MacOS
2019-02-02 17:47:55 +01:00
Manolo Gouy
82c7a1baa7
Move Fl_Sys_Menu_Bar_Driver.H from FL/ to src/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26 07:38:54 +00:00
Manolo Gouy
a0863e393a
Document that fl_mac_set_about() is deprecated, MacOS-specific and replaced by cross-platform Fl_Sys_Menu_Bar::about().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-22 17:04:37 +00:00
Manolo Gouy
838168defc
Restore documentation of function Fl_Mac_App_Menu::custom_application_menu_items()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-12 09:16:04 +00:00
Albrecht Schlosser
42d8aba117
Replace FL/x.H with FL/platform.H - step 2 (STR #3435 ).
...
This second step replaces FL/x.H with FL/platform.H in all source files.
Dependencies have been adjusted as well.
This commit completes the replacement of FL/x.H with FL/platform.H.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31 21:17:17 +00:00
Manolo Gouy
b47dc05909
Fl_Sys_Menu_Bar under MacOS: prevent the FLTK object from receiving events.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-09 21:12:35 +00:00
Manolo Gouy
d361de4d0d
STR#3437 : Support display of windows in tabbed form as in MacOS 10.12 Sierra
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-18 15:19:15 +00:00
Manolo Gouy
eb763ae432
Further simpler code to initialise the MacOS-specific implementation of Fl_Sys_Menu_Bar_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-07 16:10:21 +00:00
Manolo Gouy
2da4cf8b9f
Simpler code to initialise the MacOS-specific implementation of Fl_Sys_Menu_Bar_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-07 15:35:07 +00:00
Manolo Gouy
dc569ef8fb
Make sure GUI is updated after activation of a menu item from Fl_Sys_Menu_Bar
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-07 08:43:37 +00:00
Manolo Gouy
0a26b0dd68
Some code simplification for class Fl_Sys_Menu_Bar
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-05 16:05:35 +00:00
Manolo Gouy
8612fea277
Make Fl_Sys_Menu_Bar class usable in static initializers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-04 17:39:19 +00:00
Manolo Gouy
34dd1b15fb
Converted class Fl_Sys_Menu_Bar to the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-02 16:20:30 +00:00