summaryrefslogtreecommitdiff
path: root/test/menubar.cxx
AgeCommit message (Collapse)Author
2 dayswipmaxim nikonov
2025-11-21Additional menu code cleanup.Matthias Melcher
Better variable names, More descriptive integer types.
2025-11-19Add headline menu item style (#1059)Matthias Melcher
A menu item can be designated as a headline. Fully integrated and used in Fluid.
2025-04-01Adding the FL_MENU_CHATTY flag to Fl_Menu_Item.Matthias Melcher
If set, menu items will also call the callback when highlighting changes. The reason is given with Fl::callback_reason(). #941
2025-03-29Adding missing `override`sMatthias Melcher
2025-03-29Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`Matthias Melcher
2024-10-07Add option to test scaling shortcuts in test/menubarAlbrecht Schlosser
Note: if enabled, then the usual global scaling shortcuts don't work and scaling by shortcuts is disabled. This is intended for testing and not for normal usage.
2024-02-20Improve implementation of the macOS Window menuManoloFLTK
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.
2023-11-14Fl_Terminal widget (#800)erco77
Pull Fl_Terminal widget from Greg's fork
2023-10-13test/menubar: use popup menu default boxtypeMatthias Melcher
2023-02-07Avoid "#undef __APPLE__" preprocessor directiveManoloFLTK
2023-02-02Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__ManoloFLTK
2023-01-12Add Fl_Scheme_Choice widget and use it in test programsAlbrecht Schlosser
This widget offers the selection of all known FLTK schemes as a simple widget based on Fl_Choice. Some test and demo programs use Fl_Scheme_Choice to enable the developer or user to switch schemes quickly for comparison. Todo: - add features to add new schemes during runtime (partially done) - update status when the scheme is changed by Fl::scheme("...")
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-02-08Account for presence of terminal panel in the size_range() call.ManoloFLTK
2022-02-05Minor improvement in Fl_Mac_App_Menu::custom_application_menu_items().ManoloFLTK
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
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).
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- 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-01-16Don't include 'src/flstring.h' in menubar demoAlbrecht Schlosser
src/flstring.h should only be used in library code because it includes <config.h>. Document this fact in src/flstring.h.
2019-02-24Add example of call to Fl_Sys_Menu_Bar::about()ManoloFLTK
2018-03-31Added Fl::menu_linespacing() to solve STR# 2927.Greg Ercolano
Method name follows Fl_Tree::linespacing(). Implemented similarly to Fl::scrollbar_size(), since its use crosses Fl_Menu_Item and 'menuwindow' classes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
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
2017-12-18STR#3437 : Support display of windows in tabbed form as in MacOS 10.12 SierraManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17Added Fl_Simple_Terminal widget, and mods to test+example programs (STR #3411).Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26Add necessary #include directive under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-01Mac OS: Show how to localize the "Preferences…" custom application menu itemManolo Gouy
of the menubar test app. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10938 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-26Mac OS only: added the Fl_Mac_App_Menu::custom_application_menu_items() methodManolo Gouy
that allows customization of the application menu on the Mac platform. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03Add missing cast (part of patch for STR #2813).Albrecht Schlosser
Thanks to Csaba for finding this and providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08Allow compilation with -std=c++11Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-18The interface displays Fl_Menu_Bar / Fl_Sys_Menu_Bar class names.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-11Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (Mac ↵Manolo Gouy
OS-specific). Modified the menubar demo program to exercise the Fl_Sys_Menu_Bar class. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17International menu shortcuts working on Mac OS (and probably the other OS's)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-09-17Starting to allow international (unicode) keystrokes as shortcuts.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21Most test demos converted to use Fl_Double_Window Greg Ercolano
to prevent flicker when new users run test/demo programs. For details, see fltk.development thread started 04/16/09, "Subject: browser demo flicker". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Cahngad copyrights in 'test'Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16Doxygen documentation : took the opportunity to update copyright info as we ↵Fabien Costantini
modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. ↵Matthias Melcher
Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus. Of course, poping up a tooltip window does *not* disable further tooltips... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-16STR #1109 re-fix: when fixing 1109, I accidentally enabled clicking on ↵Matthias Melcher
grayed out menu items. This commit should fix that an make the menu ignore grayed out items altogether. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27VC++ 2005 Support, drop old files, add icons for SudokuMichael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16Update source file headers with STR web page.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11Copyright updates and prep for 1.1.5rc1.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30Copyright update for 1.1.3 release (not quite yet, but soon...)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-14Fix size_range() bug under OSX.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-01Fix Fl_Menu_Button focus problems.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01Copyright updates...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28Add check for window callback getting called...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121