summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-05-14Fix crash in test/cube under macOS when using Quit menubar itemManoloFLTK
2024-05-10configure-based build: move terminal to fluid-dependent sectionManoloFLTK
2024-05-01CMake: simplify compiler detection for '-Wshadow' testAlbrecht Schlosser
2024-04-30Implement and document new class Fl_PDF_File_SurfaceManoloFLTK
2024-04-22Enable 'shadow_variables' test on macOS using AppleClangAlbrecht Schlosser
The CMake compiler ID on macOS is AppleClang rather than Clang. This commit checks for this compiler ID as well.
2024-04-18Add missing 'x11.H' to exclusion list (STR 2728)Albrecht Schlosser
2024-04-18Test public headers for shadowed variables (STR 2728)Albrecht Schlosser
This program is built only when using CMake and a GNU or Clang compiler to detect shadowed variables in header files. Developers should fix such warnings whenever they see them during the build to avoid user reports.
2024-04-06Rename putchar() to plot_char() (#944)Greg Ercolano
Some old platforms (NetBSD, AIX) implement the common stdio "putchar()" function as a global macro which poisons the global namespace, preventing all C and C++ programs from using "putchar()" as a function or method. There was a long thread about this in fltk.coredev during the period Mar 25 2024 ~ Apr 4 2024, subject "RFC: Fl_Terminal::putchar() in public API" as to why we have no choice but to not use putchar() as a method name.
2024-04-02Move test/fromdos.c to misc/fromdos.c where it belongsAlbrecht Schlosser
This is a test file for developers only. Use with caution.
2024-03-19Update dependencies, whitespace, and Fl_File_Chooser.cxxAlbrecht Schlosser
Rewrite src/Fl_File_Chooser.cxx from its .fl source file
2024-03-18Fix VS compiler warning, write "copied" message to ttyAlbrecht Schlosser
... rather than popping up a message window.
2024-03-18native-filechooser has preview panel with FLTK_USE_X11 and macOSManoloFLTK
2024-03-16Improve linking of test/cairo_test.cxx demo programAlbrecht Schlosser
With modern CMake libcairo doesn't need to linked explicitly in the test/cairo_test.cxx demo program. Either '-lcairo' is implied by linking with fltk::fltk or it is not used at all. This fixes a linker warning on macOS: "ld: warning: ignoring duplicate libraries ..."
2024-03-15Fix a bunch of compiler warnings, particularly for old compilersAlbrecht Schlosser
Works now much better with old C99 and C++98 standard compilers. Fixed: C++ comments in C files and headers included by C files. There are still some warnings with C90 though but these would be hard to fix and left as-is for now. test/fractals.cxx: some arrays were too small by 1, or the compiler warned at least (false positive?). Anyway, it's fixed now.
2024-03-14Update documentation, remove/edit explicit FLTK versionsAlbrecht Schlosser
... to simplify further version updates. Add more deprecation notices concerning autotools/configure to README.Unix.txt.
2024-03-12Improve keyboard event test program: add copy buttonAlbrecht Schlosser
... to copy selected or the full text to the clipboard.
2024-03-12Fix several compiler warningsAlbrecht Schlosser
Three unrelated but only minor warnings.
2024-03-11Add Fl_Terminal to "Scrollbar Size" unittest (#931)Greg Ercolano
This involved enlarging the unittest main window to make room for the additional test. Adding this test revealed a problem in Fl_Terminal's global scrollbar size handling, which is fixed here as well. Also fixed a small issue in the demo's debugging terminal with the horiz scrollbar.
2024-03-11Improve handling of events in test/handle_keys.cxxAlbrecht Schlosser
(1) Ensure that the terminal widgets doesn't use keyboard events. Advantage: keyboard navigation and selection doesn't interfere with the display. Drawback: Contents of the terminal can no longer be copied. This will be addressed in a later update. (2) Thanks to Manolo for his addition of the "GUI scaling" button. Although GUI scaling can be useful, it can also be annoying while testing shortcuts. (3) Changed all light buttons to check buttons.
2024-03-09Add another keyboard event test program test/handle_keys.cxxAlbrecht Schlosser
This program logs all keyboard events to a built-in Fl_Terminal widget. WIP: version 0.80
2024-03-09Use FL_Alt_Gr key definition in test/keyboardAlbrecht Schlosser
... and reformat key definition table
2024-03-09Use fixed font in test/clipboard for text displayAlbrecht Schlosser
This is more like a text editor would display text. Todo: make the font selection optional (later).
2024-03-05Fix shortcut (Esc) handling in test/keyboard.cxxAlbrecht Schlosser
Esc is intentionally consumed by the test program (see comment) but other keystrokes (shortcuts) must pass to allow zooming with ctrl/+/-/0. The old code filtered all shortcuts which turned out to be wrong. Not being able to zoom was caused by a previous commit that lowered the priority of the zoom key handler - which alone was not wrong.
2024-03-04 Fix: Filechooser preview of XML file shows it as a corrupt image (#926)ManoloFLTK
2024-03-03native-filechooser: add call to fl_register_images() and explain whyManoloFLTK
2024-03-02Promote fl_strlcpy to <FL/fl_string_functions.h>Matthias Melcher
2024-03-02Fix test/editor use of strncy to strlcpyMatthias Melcher
2024-02-26Fix: Fl_Window::fullscreen() does not work correctly on Mac (#920)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-16Added attribute checks to test/terminal for recent changes.Greg Ercolano
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-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-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-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-17Synchronize mouse and keyboard callbacks for Fl_Button (#877)Matthias Melcher
Keyboard behavior for button types was not consistent with mouse click behavior. This change avoids callbacks when pressed radio buttons are pressed again.
2024-01-15Restore correct copyright window for checkers demoManoloFLTK
2024-01-10Add Fl_String not-equal testGreg Ercolano
2024-01-06Remove Fl_Simple_Terminal (replaced by Fl_Terminal)Albrecht Schlosser
... as discussed previously.
2024-01-03Limit test/terminal window sizeGreg Ercolano
Prevents window from squishing buttons horizontally. Allows tty height to shrink to no less than a single line.
2023-12-28Adds Fl_Input RMB menu translation to test/preferencesMatthias Melcher
This also updates the RMB menu labels before every popup so that changing the labels after creating the widgets still reflects that change correctly.
2023-12-21Fix a typo, trailing whitespace, and dependenciesAlbrecht Schlosser
2023-12-20Make the 'Forms' compatibility library 'fltk_forms' optionalAlbrecht Schlosser
This library is no longer needed in FLTK itself. There is only one demo program (test/forms.cxx) that uses it if it is built. The demo program displays a message if fltk_forms is not available. The default is 'enabled' for backwards compatibility but this may be changed to 'disabled' in a future version.
2023-12-19Fix typos, formatting, and text alignment in test/forms.cxxAlbrecht Schlosser
no real code changes
2023-12-17Fix MSVC compiler warningAlbrecht Schlosser
2023-12-16#842: Enables command line color arguments on macOSMatthias Melcher