summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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.
2021-01-13Update test/hello.cxx and related imageAlbrecht Schlosser
Improve CMP compatibility and use a better (anti-aliased) image for the docs.
2020-12-02Remove build-time warning.ManoloFLTK
The warning message was: Makefile:318: warning: ignoring prerequisites on suffix rule definition
2020-11-25Match format specifier and variable type.ManoloFLTK
2020-11-24Improve resizing of test/cube demo (#157, #166)Albrecht Schlosser
Based on Greg's mods in 'cube-v5a-patch.txt' in this issue #157 comment: https://github.com/fltk/fltk/issues/157#issuecomment-732496554 Simplify the layout and keep border widths constant: - combine left GL window + buttons (ct_group) in left group (lt_grp) - make the cube Fl_Gl_Windows the resizable()s of their respective groups. The latter keeps the margin widths constant.
2020-11-21Fix Fl_Scrollbar layout in test/valuators demoAlbrecht Schlosser
2020-11-03Add extra argument to Fl_SVG_File_Surface constructor.ManoloFLTK
This makes processing of the underlying FILE object consistant by classes Fl_SVG_File_Surface, Fl_EPS_File_Surface and Fl_PostScript_File_Surface.
2020-10-28Pango ps (#148)ManoloFLTK
Use cairo-PostScript to output PostScript when pango is available. This allows to draw in vectorial form any script. Before, only the Latin script could be drawn to PostScript in vectorial form.
2020-09-07Fix position of the "Return" button.ManoloFLTK
2020-09-01Customize corner radius for rounded box/frame (#130)Albrecht Schlosser
Make maximum box corner radius and shadow width configurable. See Fl::box_border_radius_max() and Fl::box_shadow_width(). Documentation: update image of box types. Fixes #130
2020-08-22Fix .clang-format and some whitespace errorsAlbrecht Schlosser
.clang-format: UseTab: ForIndentation -> Never Update fluid generated files
2020-08-21Fix examples build (configure/make)Albrecht Schlosser
Fix more issues caused by moving fltk-versions from examples to test and adding examples to the CMake build process (gitlab-ci)
2020-08-21CMake: add examples folder to build (optional)Albrecht Schlosser
- replace misnamed option 'OPTION_BUILD_EXAMPLES' with 'FLTK_BUILD_TEST' - add option 'FLTK_BUILD_EXAMPLES' to build apps in examples folder - move examples/fltk-versions.cxx to test/fltk-versions.cxx - [Travis-CI] enable option 'FLTK_BUILD_EXAMPLES' for automatic builds
2020-08-21Remove platform specific code from test appsAlbrecht Schlosser
Test programs that open files don't use platform specific code. They don't open files from macOS bundles. Support files must either be in the current working directory or given on the command line. On macOS this requires a full path when using bundles.
2020-08-21CMake: move test executables to build/bin/testAlbrecht Schlosser
2020-08-08Allow unix style paths for windows native filechooserGreg Ercolano
Allows and preserves unix style paths if user specifies them, otherwise uses Windows style. This allows end users to use either style path and get behavior they expect in cross-platform environments. Addresses problems raised by issue #122
2020-08-03Update dependencies + fluid/generated filesAlbrecht Schlosser
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-25Simpler macOS-specific code in main().ManoloFLTK
2020-07-23Git-ignore resize-example* test programsAlbrecht Schlosser
2020-07-23Simpler macOS-specific code.ManoloFLTK
2020-07-23Use local images in test/help_dialog(.html)Albrecht Schlosser
- create subdir test/images - copy images used by test/help_dialog to this subdir - fix image URL's in test/help_dialog.html accordingly CMake: copy the entire test/images folder to the <build>/data folder This enables the demo test/help_dialog.cxx to find its images.
2020-07-22macOS: don't add resource files to demo.appAlbrecht Schlosser
Resources like demo.menu and help_dialog.html are no longer read from the bundle directory on macOS. They are read from the build folder build/data or in case of classic autoconf/make builds from the source directory. We don't need to copy the files into the bundle folder, they are copied to the build/data folder on all platforms anyway.