summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-12CMake: set FLTK_VERSION and FLTK_FLUID_EXECUTABLE in the cacheAlbrecht Schlosser
This is useful if FLTK is built as a subproject, for instance by using FetchContent.
2024-02-11Improve recognition of re-scaling shortcuts - cont'dManoloFLTK
2024-02-11Update examples/CMakeLists.txt to modern CMakeAlbrecht Schlosser
Also: set build requirement of OpenGL3 tests to C++11 to enable building in C++98 mode (if the compiler allows C++11). Note: this may be removed in 1.5.0 when FLTK requires C++11 anyway.
2024-02-11Improve recognition of re-scaling shortcuts w/ various keyboard layoutsManoloFLTK
2024-02-11 KDE+X11 keyboard stops working after menu display (#904)ManoloFLTK
2024-02-10CMake: fix some weird internal dependencies (Wayland/X11)Albrecht Schlosser
Improve recognition of Wayland and X11 specific build options and remove duplicates from required dependencies (FLTK_LDLIBS) used in fltk-config. This should also fix the GitLab CI build process. To do: the logic to find the dependencies of Wayland and X11 is currently suboptimal. This will be improved in a later commit.
2024-02-10FLUID: Fix double reverse logic in FL_COMMAND handlingMatthias Melcher
2024-02-10Fixes FLUID shortcut generationMatthias Melcher
and makes the C++ code human readable
2024-02-10Modern CMake: export shared libraries and fltk-optionsAlbrecht Schlosser
2024-02-09Fix Cairo related build issues (missing Cairo lib)Albrecht Schlosser
... particularly for shared libs
2024-02-09Fix cairo_test-shared build as well (#902)Albrecht Schlosser
2024-02-09Move FLTK_USE_SVG from config.h to FL/fl_config.hManoloFLTK
2024-02-09Fix "cairo_test fails to link due to undefined's" (#902)Albrecht Schlosser
Restore "too much optimized" CMake code. The issue would only be visible if neither FLTK_GRAPHICS_CAIRO nor FLTK_BACKEND_WAYLAND was active.
2024-02-09Change parameters of Fl_Wayland_Window_Driver::delete_cursor()ManoloFLTK
2024-02-08CMake cleanup: fix alignmentAlbrecht Schlosser
2024-02-08CMake cleanup: mark two more cache variables "advanced"Albrecht Schlosser
2024-02-08Improve Fl_Wayland_Window_Driver::hide()ManoloFLTK
2024-02-07Fix GitHub CI build and minor CMake issuesAlbrecht Schlosser
- GitHub CI: fix wrong CMake option name - fl_add_library: disable debug output (MSVC), fix formatting
2024-02-07Introduce "Modern CMake" in FLTKAlbrecht Schlosser
This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback.
2024-02-07Fix Fl_Window::default_size_range() (#901)Albrecht Schlosser
Thanks to Manolo for the patch.
2024-02-06Fix typo in function name in editor.Matthias Melcher
2024-02-06Add dynamic title to test/editorMatthias Melcher
2024-02-06Restore 3-way close window dialog (#900)ManoloFLTK
2024-02-06Fix window moving in Fl_Wayland_Window_Driver::resize()ManoloFLTK
2024-02-05Fl_Window_Driver::set_popup_window(), ↵ManoloFLTK
Fl_Screen_Driver::screen_boundaries_known() Fl_Window_Driver::set_popup_window() is to be used to declare a window should be positioned relatively to a previously mapped other window. This allows a platform to process such windows differently from other windows if needed. Menu and tooltip windows are so declared. A call to Fl_Window_Driver::set_popup_window() also allows to distinguish a real menu or tooltip window from a window marked by Fl_Window::set_menu_window() or by Fl_Window::set_tooltip_window() but that's not a real menu or tooltip. New member function bool Fl_Screen_Driver::screen_boundaries_known() returns true by default. A platform where the position of windows inside a screen is hidden (e.g., Wayland) returns false. This allows FLTK to refrain from trying to make sure a computed position is inside a screen.
2024-02-04Shorten parameter list of Fl_Wayland_Window_Driver::delete_cursor_(bool)ManoloFLTK
2024-02-03Wayland: fix setting cursor to FL_NO_CURSORManoloFLTK
2024-01-31Improve documentation of Fl_Native_File_ChooserAlbrecht Schlosser
Document restrictions imposed by the new system file chooser dialogs, particularly by 'kdialog' and 'zenity' (Unix/X11/Wayland only).
2024-01-29Fix cached GL context on all platforms (#737)Matthias Melcher
2024-01-29Fix OpenGL context caching on macOS (#737)Matthias Melcher
2024-01-29RFC: Different approach to Editor tutorial (see #189) (#883)Matthias Melcher
Update test/editor code and tutorial (#189, #883) Different, sequential approach to Editor tutorial Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2024-01-28Fix animated gif reloading (#897)Matthias Melcher
2024-01-27Fix warning for out of range index.Matthias Melcher
2024-01-27Fix inlined animated GIFs with NULL name (#897)Matthias Melcher
2024-01-25Fix mousewheel problem with Fl_Text_Editor (issue #879)Greg Ercolano
When an Fl_Text_Editor ended up under the mouse, it took mousewheel events for itself, freezing navigation of a parent's Fl_Scroll. Patch handles mousewheel events for both up/down and left/right by checking: > If editor has no scrollbar (e.g. no content to scroll to), then mousewheel events for that scrollbar are ignored so the parent can be navigated. > If editor has a scrollbar, it handles wheel events until scroller reaches an extreme position (e.g. top or bottom), it starts ignoring wheel events so the parent can be navigated.
2024-01-24Fix small typos in Anim GIF docsGreg Ercolano
2024-01-23Fix "Wrong tooltip position on Wayland …" - cont'd (#894)ManoloFLTK
2024-01-23Fix "Wrong tooltip position on Wayland with secondary monitor" (#894)ManoloFLTK
2024-01-22Fl_Preferences: fix missing '/' (#891)Albrecht Schlosser
Without the '/' FLTK 1.4 wouldn't fall back to the 1.3 prefs folder even if it existed.
2024-01-22Fix warning.Matthias Melcher
2024-01-22Fixes mouse pointer visibility for popups (#890)Matthias Melcher
2024-01-22Fix wrong path var and typosMatthias Melcher
2024-01-22Fix User Preferences file search order for Unix (#891)Matthias Melcher
2024-01-22Add popup_window() virtual member functions to Fl_Window_DriverManoloFLTK
2024-01-21 Fix Wayland: crash with set_menu_window() - cont'd (#892)ManoloFLTK
2024-01-21 Fix Wayland: crash with set_menu_window() - cont'd (#892)ManoloFLTK
2024-01-21Fix "Wayland: crash with set_menu_window()" - cont'd (#892)ManoloFLTK
2024-01-21Fix "Wayland: crash with set_menu_window()" (#892)ManoloFLTK
Fixes also a similar crash occuring after use of set_tooltip_window(). Two bool member variables are added to class Fl_Window_Driver to indicate true FLTK menu windows (i.e., created by Fl_Menu_Item::pulldown()) and true FLTK tooltip windows (i.e., Fl_Tooltip).
2024-01-19Fix compiler warning [-Wmaybe-uninitialized]Albrecht Schlosser
'buf' could indeed be used uninitialized if the switch statement below was executed with an unknown style (no default case).
2024-01-19Fix crash in Fl_Preferences for deformed group name (#891)Matthias Melcher