summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-16Fixed Fl_Terminal xterm color 39/49 handling, and other mods.Greg Ercolano
Fixed a bug in the handling of xterm color 39 + 49, which avoids applying Dim/Bold if default color is the special "see through" color 0xffffff00. A test will be added to test/terminal to excercise this in a follow up commit. Renamed CharStyle::?gcolor_uchar() -> CharStyle::?gcolor_xterm() for a consistent naming convention. Changed fltk_fg_color() from a static func to a CharStyle method because it needs to access the defaultcolor for the special cases for xterm colors 39 and 49. Made CharStyle::attr_color() private, as per Jonathan Griffitts request in issue #909. Improved docs regarding effects of Dim/Bold for xterm and non-xterm color methods. Fl_Terminal::text?gcolor_xterm() methods now use CharStyle::?gcolor_xterm() methods, removing the duplicate code logic.
2024-02-16Fix Fl_Terminal xterm CharStyle charflags (#909)Greg Ercolano
2024-02-15Fix text overflow in fluid widget panel (#908)Greg Ercolano
Made fonts slightly smaller, enlarged/moved some widgets in Alignment: group.
2024-02-14CMake: fix "LIBDECOR_PLUGIN_DIR" undefined errorAlbrecht Schlosser
This could happen on Linux if built with CMake option "-DFLTK_USE_SYSTEM_LIBDECOR=OFF"
2024-02-14CMake: remove unintended debug outputAlbrecht Schlosser
2024-02-14CMake: fix installation on macOSAlbrecht Schlosser
fluid and fltk-options are now installed correctly as bundles and as stand-alone executables side by side in the 'bin' folder relative to CMAKE_INSTALL_PREFIX. This works but the installation folders may be changed in the future. Targets fltk::fluid is now exported correctly so find_package(FLTK CONFIG ...) works with both the build folder and an installed version.
2024-02-13CMake: simplify resources.cmakeAlbrecht Schlosser
Note: CheckIncludeFiles caches the result in an 'internal' variable. Hence mark_as_advanced() is not necessary for these variables.
2024-02-13CMake: improve formatting, remove debug statementsAlbrecht Schlosser
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