summaryrefslogtreecommitdiff
path: root/FL/mac.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-02-02 11:05:39 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-02-02 11:05:53 +0100
commit935074ba0b5acc99f0bf82e73be1f002eab07157 (patch)
treeb8475bce216b3b90a681a76d749208fda0d669ea /FL/mac.H
parentec98dc113f7622cd9701ac2303f384cf59c8af77 (diff)
macOS: add "Toggle printing of titlebar" to application menu.
Diffstat (limited to 'FL/mac.H')
-rw-r--r--FL/mac.H12
1 files changed, 8 insertions, 4 deletions
diff --git a/FL/mac.H b/FL/mac.H
index 588afcfc7..48aea6842 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -140,10 +140,14 @@ public:
/** Localizable text for the "About xxx" application menu item */
static const char *about;
/** Localizable text for the "Print Front Window" application menu item.
- This menu item won't be displayed if Fl_Mac_App_Menu::print
+ This menu item and next one won't be displayed if Fl_Mac_App_Menu::print
is set to an empty string.
*/
- static const char *print;
+ static const char *print_with_titlebar;
+ /** Localizable text for the "Print Front Window" application menu item. */
+ static const char *print_no_titlebar;
+ /** Localizable text for the "Toggle print titlebar" application menu item. */
+ static const char *toggle_print_titlebar;
/** Localizable text for the "Services" application menu item */
static const char *services;
/** Localizable text for the "Hide xxx" application menu item */
@@ -155,8 +159,8 @@ public:
/** Localizable text for the "Quit xxx" application menu item */
static const char *quit;
/** Adds custom menu item(s) to the application menu of the system menu bar.
- They are positioned after the "Print Front Window" item, or at its place
- if it was removed with <tt>Fl_Mac_App_Menu::print = ""</tt>.
+ They are positioned after the "Print Front Window / Toggle printing of titlebar" items, or at their place
+ if they were removed with <tt>Fl_Mac_App_Menu::print = ""</tt>.
\param m zero-ending array of Fl_Menu_Item 's.
*/
static void custom_application_menu_items(const Fl_Menu_Item *m);