summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-11-18MSVC: Fix array allocation in test/fltk-versions (#1131)Albrecht Schlosser
2024-11-17Finish release 1.4.0Albrecht Schlosser
1) Improve and clarify documentation: - update, reformat, and reorder parts of CREDITS.txt - make sure that documentation appears in doxygen docs - add '\since 1.4.0' to documentation of new methods and functions - remove doxygen's '\brief' where not required (we're using JAVADOC_AUTOBRIEF = YES) - clarify screen scaling, scaling factor, and related stuff - add more info about backwards compatibility for X11 specific code 2) Update dependencies
2024-11-17Improve 'test/fltk-versions' demo programAlbrecht Schlosser
- add code to get the platform and backend - display platform and backend on screen - improve and simplify layout (using Fl_Grid) - add version check indicator
2024-11-01Fix compiler warning [-Wsign-compare]Albrecht Schlosser
Note: it is *unusual* (not FLTK style) that Fl_Window::border() returns 'unsigned int' instead of 'int'. This should be investigated in FLTK 1.5 but maybe we can't change it: it's been so already in FLTK 1.3 and maybe earlier.
2024-11-01Wayland: Fix issue in maximization of a borderless window (#1099)ManoloFLTK
Also fixes scenarios mixing fullscreen and maximization: - maximize - set fullscreen - unset fullscreen - un-maximize with and without window border.
2024-10-31macOS: prevent changing window border while window is fullscreenManoloFLTK
2024-10-18Remove unnecessary casts from glut demo programsAlbrecht Schlosser
These casts are no longer useful since commit 5cd9f6fb8058f92d: "STR #3323: glutAddMenuEntry now has a const label argument"
2024-10-15Update or remove version numbers, update copyright yearsAlbrecht Schlosser
Note: one goal is to have to edit fewer version numbers in source files for each release. We may be able to generate some files by the build procedure (CMake) to avoid editing them in the future (1.5.0 or later).
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-10-07Update Widget order in test/keyboard.Matthias Melcher
2024-10-06Add fwd and back mouse buttons to test/keyboardMatthias Melcher
2024-10-06Update FLUID .fl files in the test/.Matthias Melcher
2024-08-27Adding horiizonatl and vertical label marginMatthias Melcher
- sizeof(Fl_Widget) not increased - label positions can be adjusted - try it out in test/label app - full support in FLUD
2024-08-23Fix CTRL/META state display in test/handle_keys.cxx (macOS)Albrecht Schlosser
This changes only the display of the mentioned state bits in the test program, and only on macOS. Thanks to Manolo for finding and reporting this.
2024-08-19Changing test/editor Shortcut Key Ctrl-i.Matthias Melcher
The original choice for split screen editing, Ctrl-2, did not work well on some platforms.
2024-08-14Adding Fl_Widget::label_image_spacing() (#1039)Matthias Melcher
- May need a better method name. - This makes the gap between the image in a label and the label text user settable. - Can be tested using test/label app
2024-08-10Fix tabs, trailing spaces, and update dependenciesAlbrecht Schlosser
2024-08-10Merge pull request #17 from mid-kid/patch-1Albrecht Schlosser
Quote variables that may contain spaces (#17)
2024-08-10Configure/make: Quote variables that may contain spacesmid-kid
This allows installing FLTK to directories that contain spaces.
2024-08-10Fixed warning in Sudoku (unused variable)Matthias Melcher
2024-08-08Simplify test/handle_keys.cxx and remove commentsAlbrecht Schlosser
2024-08-04Add Sudoku undo and redo.Matthias Melcher
2024-08-04Sudoku formatting, hint updates.Matthias Melcher
2024-08-04Fix Sudoku's use of Fl_Sys_Menu->parent().Matthias Melcher
2024-08-02Fix Fl_Tabs callback in Overflow mode (#1031).Matthias Melcher
2024-07-31Enable setting a fixed font for 'wine' in test/handle_keys.cxxAlbrecht Schlosser
... w/o editing a file. The default font is "Liberation Mono". Just set environment variable FLTK_USING_WINE=1 to enable this feature. Rationale: on /my/ current test system the font chosen by `wine` for FL_COURIER is a proportional font whereas the display in Fl_Terminal requires a fixed font for correct output. Font "Liberation Mono" solves this long standing issue for me w/o having to change source code but other Linux systems may require a different font.
2024-07-23Resize line sizes and widths dynamically in test/line_style_docsAlbrecht Schlosser
Resize the window to see the effect: line sizes increase with the box size and become wider depending on the box size. Minimal line width of the "wide" lines has been changed from 4 to 5, maximal width is now 9. Distinct widths are { 5, 7, 8, 9 }. Note: the default (thin) line width is now 1 rather than 0 since the default 0 may render badly. Screenshot in documentation has been updated.
2024-07-21Update docs and screenshot for fl_line_style() (#1016)Albrecht Schlosser
As a follow-up to the discussion I used the posted screenshot demo (thanks to Greg), redesigned it using Fl_Grid, and added it as a new test program, including Makefiles and CMakeLists.txt. New file: test/line_style_docs.cxx to create screenshot. Note that the old test/line_style.cxx is not obsolete, it can be used to test the line styles interactively. Docs have been updated in both chapter "Drawing Things" and the function description. Also added the new demo to test/demo.menu under "Images for Manual...".
2024-07-08Fix horiz connection lines (#1008)Greg Ercolano
2024-07-01Improve test/handle_keys.cxxAlbrecht Schlosser
- colorize output - improve formatting - log status of Fl::OPTION_SIMPLE_ZOOM_SHORTCUT
2024-06-30Fix compiler warningsGreg Ercolano
2024-06-27Update test/input_choice demo (#978)Albrecht Schlosser
- add Fl_Choice widget for layout comparison - rewrite button callbacks - improve layout and other details This is a follow-up to issue #978, "merging" the existing input_choice demo with "choicetest_v3" as mentioned.
2024-06-26Fix Fl_Input_Choice vs Fl_Choice drawing issues (#978)Greg Ercolano
Differences in size of arrows and overall look varies with different schemes applied for issue raised by Philip Rose first on fltk.general: Subject: Discrepancy between Fl_Choice and Fl_Input_Choice
2024-06-21Update dependenciesAlbrecht Schlosser
2024-05-16Fix and improve fl_contrast() calculationsAlbrecht Schlosser
- src/fl_contrast.cxx: - FL_CONTRAST_LEGACY: reset black/white threshold from 55 to 50 - FL_CONTRAST_CIELAB: change default contrast level from 55 to 39 - test/contrast.cxx: - set default contrast mode to CIELAB - add "random color" button to test random foreground colors (text) - slightly increase terminal size - make the Fl_Terminal widget the resizable() of the window
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.