summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-01-16Rename FL/Fl_String_class.H to FL/Fl_String.HAlbrecht Schlosser
This is part 2 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-05Fix whitespace and Makefile dependenciesAlbrecht Schlosser
No code changes
2022-01-01Tweak blocks game to use higher update rates and slightly larger window.Michael R Sweet
2021-12-19STR 3289: Fluid i18n, gettext, catguts improvementsMatthias Melcher
Removed some unneeded code.
2021-12-18Generate FL/fl_config.h rather than FL/abi-version.hAlbrecht Schlosser
... as discussed in fltk.coredev in thread "RFC: introduce public config header <FL/fl_config.h>", see: https://groups.google.com/g/fltkcoredev/c/xLCs1AIXMVo/m/MHZpQggzAQAJ - Rename abi-version.h to fl_config.h, rename input files, update dependencies, .gitignore, CMake, configure and Makefiles. - Include Cairo options in FL/fl_config.h - Rename FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT for consistency. - Include <FL/fl_config.h> in config.h and wherever necessary, fix include order (move FL/Fl.H to the top) and more. - Move USE_X11 to fl_config.h and rename to FLTK_USE_X11 - Do not include <config.h> in Cairo demo program which is no longer required in Cairo programs since FLTK 1.4.0
2021-12-18Remove unused and outdated demo, update dependenciesAlbrecht Schlosser
- remove test/connect.cxx - fix typos in comments in a related android file - update dependencies
2021-12-17GitHub #327: menu buttons will no longer grab arrow keys.Matthias Melcher
In Fluid, selecting a menu button, and selecting it again to make it movable would also grab the text input focus, which would prevent the enclosing window from using arrow key events to manipulate the selected widget.
2021-12-14Fix trailing whitespace and a MSVC compiler warningAlbrecht Schlosser
No code changes
2021-12-08Documentation on widget coordinates and layout, plus new test programs (#304)engelsman
Add coordinates and layout section to user manual add section to user manual to clarify the use of window-relative coordinates in both Fl_Group and Fl_Window containers, and include brief descriptions of current layout manager widgets in one place. add test/coordinates.cxx, test/wizard.cxx and related screenshots under documentation/src. update CMakeLists.txt, Makefile and .gitignore for new files. Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2021-12-06Fix whitespace errors (no code changes)Albrecht Schlosser
(1) convert tabs to spaces (2) remove trailing whitespace
2021-12-04Add fl_message_icon_label() function (STR #2762)Albrecht Schlosser
This message icon label (usually one character) will be used in the next call of one of the common dialogs. test/ask.cxx: use fl_message_icon_label()
2021-12-04Rename FL/Fl_String.H to FL/Fl_String_class.HAlbrecht Schlosser
The previous name existed already with different case (fl_string.h) in the FL folder which broke the build on macOS and Windows. This may be a temporary fix - until I find a better way.
2021-12-04Re-enable nested (aka recursive) common dialogs (STR 3242, #282)Albrecht Schlosser
Apply Fl_Dialog_r10831.patch as given in STR 3242: https://www.fltk.org/strfiles/3242/Fl_Dialog_r10831.patch Reformat, add missing pieces, rename private members, cleanup... Improve documentation, add fl_choice_n() (issue #282) New methods fl_input_str() and fl_password_str() return Fl_String
2021-11-26Fixes #297 - improvements for icon.cxx + icon() docsGreg Ercolano
2021-11-26Fixes warnings about test/icon.cxx in issue #296Greg Ercolano
2021-11-26Fix for issue #253: Remove xdbe supportManoloFLTK
2021-11-25Fix group nesting / end() statements in test/cube demoAlbrecht Schlosser
2021-11-19Disable confusing debug info in clipboard viewer demoAlbrecht Schlosser
Windows only, depends now on macro DEBUG_CLIPBOARD_DATA.
2021-11-18Add "Save PNG" feature to clipboard viewer demoAlbrecht Schlosser
2021-11-18Reformat and move clipboard demo from examples to test folderAlbrecht Schlosser
The clipboard demo is more a test program than an example and very useful even if the examples are not built. Also update dependencies.
2021-11-18Clearer GUI for test/deviceManoloFLTK
2021-11-16Fix remaining VS compiler warnings in test programsAlbrecht Schlosser
2021-11-16Add use of fl_capture_window() by test/deviceManoloFLTK
Also, rename fl_capture_window_part() to fl_capture_window().
2021-11-08Add missing files (executables) to .gitignore filesAlbrecht Schlosser
2021-11-08Add new resize examples to Makefile, update dependenciesAlbrecht Schlosser
2021-11-08Add new resize examples to demo menu, remove figure numbersAlbrecht Schlosser
Adding only 2 of 3 new examples is intentional (9 per menu level). Figure numbers have been removed in all the HTML docs recently for better maintainability.
2021-11-08Add new resize example to test and dox (PR #165)Duncan Gibson
add example(s) showing Albrecht's innovative overlap resizable technique to the "How does resizing work?" documentation and tests See "resizable question" original discussion thread under: https://www.fltk.org/newsgroups.php?gfltk.general+v:39635
2021-10-27Fix indenting, whitespace errors and dependenciesAlbrecht Schlosser
(no code changes)
2021-10-06CMake: Simplify adding test programs for developersAlbrecht Schlosser
The intention is to make it more convenient for developers to add one or more test programs for their tests by editing only one variable (extra_tests).
2021-08-31Fix more MSVC warnings in test apps (#109)Albrecht Schlosser
- test/checkers.cxx - test/cube.cxx - test/offscreen.cxx - test/unittest_simple_terminal.cxx - test/utf8.cxx
2021-08-31Fix MSVC 'GLfloat' warnings in test apps (#109)Albrecht Schlosser
2021-08-31Fix MSVC compiler warnings in test/icon.cxx (#109)Albrecht Schlosser
Also: - remove unnecessary 'size_t' conversions from FL/fl_casts.H - add reverse conversions from integer types to 'void *'
2021-08-31Fix MSVC warnings in test/fonts.cxx (issue #109)Albrecht Schlosser
2021-08-30Fix MSVC compiler warnings (PR #267)fire-eggs
2021-08-30Fix compiler warnings (Windows, MSVC)Albrecht Schlosser
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-07-12macOS: fix fltk_cairo shared library (issue #250)Albrecht Schlosser
- add missing dependencies to build the shared libfltk_cairo(.dylib) - remove incorrect dependency on cairo from libfltk - add cairo_test-shared demo (linked with shared libs)
2021-06-11Fix keyboard demo international keyboardsAlbrecht Schlosser
Fl::event_key() display needs to be converted to UTF-8 for keycodes outside the ASCII range (0xa0 - 0xff). Such keycodes can be found on international keyboards.
2021-05-26Clarify demo code and add comment with "translated" stringAlbrecht Schlosser
Add the example string in binary "latin1" (ISO-8859-1) encoding in a comment as clear text for reference (code is UTF-8 encoded).
2021-05-21Update fluid tutorial on CubeView and demo codeAlbrecht Schlosser
Format code according to the CMP, add instructions on how to copy the code to the fluid tutorial, and update the tutorial with the current code of test/CubeView.h and test/CubeView.cxx.
2021-05-13Refactor macOS bundle generation to avoid "quarantine"Albrecht Schlosser
macOS Big Sur 11.3 introduced a new "security feature" such that app bundles created from existing bundle templates in downloaded files (tar distibutions, expanded) could no longer be executed without unsetting the "quarantine" attribute. This commit fixes this by creating all bundles from scratch. Known *workaround* for older tarballs and snapshots: $ xattr -d -r com.apple.quarantine xxx.app
2021-05-08Include bitmap files rather than copying the source codeAlbrecht Schlosser
There's no need to blow up the source file by including the bitmap file literally in the source code. Use '#include' instead. Another benefit is that the original source file is referenced in the source code so it is not accidentally removed.
2021-05-08Rename 'srs.xbm' to its original name 'sorceress.xbm'Albrecht Schlosser
2021-04-22Fix handle_events demo build w/o OpenGLAlbrecht Schlosser
test/handle_events.cxx can optionally be built with an Fl_Gl_Window, but this doesn't work if OpenGL support (libfltk_gl) is disabled.
2021-04-19Replace list of excluded platforms by name of chosen platform.ManoloFLTK
Since FL/platform.H defines USE_X11 for the X11 platform, it's better to target the X11 platform by #include <FL/platform.H> #if USE_X11 rather than by #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) that would have to grow with future platforms.
2021-04-08Fix macOS bundle: set missing fields for test appsAlbrecht Schlosser
- MACOSX_BUNDLE_BUNDLE_NAME: CFBundleName - MACOSX_BUNDLE_GUI_IDENTIFIER: CFBundleIdentifier test/demo.cxx: Remove confusing quotes from demo variable output.
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-03-11Improve Fl_Help_View test fileAlbrecht Schlosser
- add DOCTYPE, <head> and <body> statements - make the file more standards conformant - update OL tests, add nested OL/UL test - add 'alt' tags to image refs Note: the 'NAME' tag is obsolete and should be replaced with 'ID' but Fl_Help_View does not parse 'ID' tags (yet).
2021-03-01macOS: add resize-example apps to .gitignoreAlbrecht Schlosser