summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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
2021-03-01Fix cairo build (autoconf + CMake) + README'sAlbrecht Schlosser
- rewrite to use pkg-config with both autoconf + CMake - remove hardcoded library names - fix build dependencies and search directories - remove or replace old and unused variables - update README files To be done: - implement fallback for autoconf/configure if pkg-config is missing - fix pango build (uses cairo internally)
2021-02-27Remove config_lib.h and runtime configuration infoAlbrecht Schlosser
... as discussed in fltk.coredev.
2021-02-18Update dependenciesAlbrecht Schlosser
2021-02-15Issue #109 contd: missed fractals.cxx fixes, also fix parens issue.Greg Ercolano
Missed mods to fractals.cxx. Also fixed a parens issue Albrecht noticed on the Mac build.
2021-02-15Solve all 'fractals' warnings in VS2017/Win32 for issue #109.Greg Ercolano
2021-02-10Fix output and screen_num() in handle_events demoAlbrecht Schlosser
Output was incorrect, partly to stdout and stderr, resp. As Manolo noted in fltk.general, Fl_Window::screen_num() is the correct API to retrieve the screen number of a window rather than Fl::screen_num(...).
2021-02-08Add event handling test and demo programAlbrecht Schlosser
This is intended to be used as (a) an example of event handling and (b) a test program to visualize many event related variables This first version is compatible with FLTK 1.3.x but lacks the screen scaling factor under 1.3.x (which is always assumed to be 100%). Note: this does not reflect any system or monitor related settings.
2021-01-29Remove debug output from test/fullscreen demoAlbrecht Schlosser
Output statements commented out and modified to go to stderr if used.