summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-27macOS: Window menu of system menubar follows changes in active windowManoloFLTK
2024-02-27Stop GUI scaling when window is maximized or full screen (#919)ManoloFLTK
Don't rescale when any top window on same screen as focus window is fullscreen or maximized
2024-02-26Allow FL_COMMAND+'+' as macOS system menu shortcuts - cont'dManoloFLTK
2024-02-26Fix: Fl_Window::fullscreen() does not work correctly on Mac (#920)ManoloFLTK
2024-02-26Don't rescale when top window is fullscreen or maximized (#919)ManoloFLTK
2024-02-26Allow FL_COMMAND+'+' and FL_CTRL+'0' as menu shortcutsManoloFLTK
2024-02-24CMake/macOS/X11: fix "FINK" search directoriesAlbrecht Schlosser
note: use only if found. Todo: check if we can get rid of explicit directory names like /opt/sw, /sw, /opt/X11, ...
2024-02-24Remove reference to automake which is not requiredAlbrecht Schlosser
2024-02-23Fix Fl_Group::resize() for groups w/o resizable() (#917)Albrecht Schlosser
Improve code comments to clarify which cases are handled in a code block and why this is done. Subwindows have some special needs.
2024-02-22Fix CMake code that should only be evaluated on macOSAlbrecht Schlosser
Too much simplified code when introducing modern CMake and renaming some build options caused this issue. It's hopefully fixed nor, or at least improved. Todo: the code in question needs to be revised anyway.
2024-02-21 Fix: fl_height(int, int) decreases the font size after each call (#915)ManoloFLTK
2024-02-20 Add scale_handler first so it has least priority of all handlersManoloFLTK
2024-02-20FL_MENU_TOGGLE/RADIO items do not update in macOS menu bar (#916)ManoloFLTK
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.
2024-02-20Remove unused FLUID documentation refs in CMake configMatthias Melcher
2024-02-20Remove unfinished FLUID documentation.Matthias Melcher
A copy of the docs exists in my repo clone and will be merged back when the docs are useful and part of the CMake setup.
2024-02-20TypoMatthias Melcher
2024-02-18Fix Terminal character position and add word selection (#906)Matthias Melcher
* Improve horizontal interactive selection * Using half-character positions to implement selection similar to Fl_Input. * Add word and line selection * Fix vertical position of text
2024-02-17Clear screen also clears attributes/xterm modes (#911)Greg Ercolano
Clear was setting characters to a space using the current style, but if the style left Dim/Bold/Inverse (etc) enabled, that was being used to affect the clear character, and thus affected clearing screen. Seems weird tho; what if one wants to do a cleol (\033[K) on a screen that is all inverted text; is there no way to use inverse mode for clearing to the end of line? Or to delete a character?
2024-02-17Update bundled libjpeg to version 9fManoloFLTK
2024-02-17Update bundled libpng to version 1.6.42ManoloFLTK
2024-02-17Update bundled zlib to version 1.3.1ManoloFLTK
2024-02-16Added attribute checks to test/terminal for recent changes.Greg Ercolano
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.