summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2020-07-15Restore file icons to 3 macOS test apps who have oneManoloFLTK
2020-07-15CMake: refactor and reformat CMake filesAlbrecht Schlosser
- raise minimum CMake version from 2.6.3 to 3.2.3 (Jun 01, 2015) - indent all CMake files according to the CMP (2 col.) - refactor FLTK version number definitions and usage - unify CMake and autoconf/configure variable names: - FL_VERSION -> FLTK_VERSION - FL_MAJOR_VERSION -> FLTK_VERSION_MAJOR - etc. for _MINOR_ and _PATCH_, respectively - note: this does not affect FL_VERSION etc. in source code - generate "export headers" for all libraries (experimental: OFF) - port some forgotten goodies from branch-1.3 to master - merge and improve macro 'create_example' (WIP) - remove "temporary" options and code for older CMake versions - include and use 'GenerateExportHeader' (experimental, WIP: OFF) - note: created header files are not yet used - build only *one* DLL with Visual Studio (tested, works) - similar to the bundled IDE projects in 1.3.x - add some dynamically linked test/demo programs ('*-shared') if shared libraries are built (WIP) - split 'macros.cmake': use one file per macro
2020-07-14setlocale() added to Fl_File_Chooser demosGreg Ercolano
This change ensures errors in local language. See issue #99 for discussion on why this is needed.
2020-07-11Fix for building without print support (GitHub issue #98).ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-07-01Fix test/help_dialog for CMake building and macOS platform.ManoloFLTK
2020-06-29Move class Fl_SVG_File_Surface from libfltk to libfltk_images.ManoloFLTK
File examples/SVG_File_Surface.cxx is no longer useful because it was a very partial implementation of what is now class Fl_SVG_File_Surface.
2020-06-27Add classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to draw to SVG and EPS.ManoloFLTK
Test programs device and pixmap_browser use these new classes. Class Fl_SVG_File_Surface can be optionally made non functional using the --disable-svg configure option or turning off OPTION_USE_SVG in CMake. Class Fl_EPS_File_Surface can be optionally made non functional using the --disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
2020-06-21Remove superfluous dependency on forms libraryAlbrecht Schlosser
Some of the test programs were linked with libfltk_forms which was unnecessary. The only one requiring this is the forms demo. [CMake] reordered linked FLTK libs in dependency order.
2020-06-13CMake: Build static and shared libs side-by-sideAlbrecht Schlosser
Clean up library and variable names. Remove '_SHARED' suffix from library (output) filenames. This commit was inspired by David Runge ('dvzrv'), thanks. See PR #21. Fixes #21
2020-06-13Update dependenciesAlbrecht Schlosser
Change sort order using -f (--ignore-case): fold lower case to upper case characters
2020-06-10Support cross-compilation with autotoolsAlbrecht Schlosser
We use the host system's `fluid` when cross-compiling. This must be executable as `fluid`, i.e. it must be in the PATH or otherwise defined, for instance as an alias.
2020-06-01test/clock: close both windows togetherAlbrecht Schlosser
The new window callback demonstrates how to close all (both) windows when the user closes one window.
2020-05-07Extend fl_message_position() with 'center' optionAlbrecht Schlosser
Add argument 'center' to position the message box centered over the given x/y coordinates. Add another method to supply a widget or window to center the message box over. Fix documentation and don't use INT_MIN to avoid having to include limits.h in user code.
2020-04-28Update dependencies and .gitignoreAlbrecht Schlosser
2020-04-22Add optional argument to Fl_Printer::begin_job() to inform caller when an ↵ManoloFLTK
error occurs. This solves an issue raised in fltk.general : Fl_Printer errors - how can I interpret them? https://www.fltk.org/newsgroups.php?s38419+gfltk.general+v38427
2020-04-20Reorganize .gitignore file(s)Albrecht Schlosser
Move ignored files in /examples/ and /test/ to their own folders, i.e. to examples/.gitignore and test/.gitignore, resp.
2020-04-08Fix copyright headerAlbrecht Schlosser
2020-03-11Remove CodeWarrior "support"Albrecht Schlosser
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
2020-02-10Implement fl_putenv() as cross-platform putenv()Albrecht Schlosser
2020-02-09Make test/fullscreen follow what doc of Fl_Window constructor says.ManoloFLTK
That doc says: "Top-level windows initially have visible() set to 0 and parent() set to NULL" and here sw is created as a top-level window, so it must be made visible either by set_visible() or by show().
2020-01-18Add convenience options to glpuzzle demoAlbrecht Schlosser
The demo exhibits a sometimes annoying /feature/ to spin the entire puzzle if a user happens to click and/or drag the mouse somewhere on the puzzle's background rather than on a puzzle piece. A new command line option '-n' disables this feature entirely. The extended menu and keyboard commands learned a new option and keyboard shortcut 'n' => "Normal Position" to stop spinning and to reset the puzzle to its original position. The space key is another (hidden) shortcut for 'n'.
2020-01-18Use cross-platform code to set the window icon.ManoloFLTK
2020-01-16Don't include 'src/flstring.h' in menubar demoAlbrecht Schlosser
src/flstring.h should only be used in library code because it includes <config.h>. Document this fact in src/flstring.h.
2020-01-11Implement Fl_Window::icon() and default_icon() for macOSManoloFLTK
The implementation is effective for macOS 10.10 and above. Demo program test/device uses the new implementation.
2020-01-09Upgrade bundled libpng from 1.6.16 to 1.6.37Albrecht Schlosser
Release: 1.6.37 - April 14, 2019 For further details see README.bundled-libs.txt.
2020-01-04Update dependencies and .gitignoreAlbrecht Schlosser
2020-01-04Update test/Makefile for checkers build with fluidAlbrecht Schlosser
2020-01-03Creating hires version of Checkers.Matthias Melcher
PNGs are just scaled but should be replaced with crispier graphics from the original vector files.
2020-01-03Added Fluid file to Checkers as a tool to inline the PNG images.Matthias Melcher
2019-12-31Commented out some silly code in the preferences test.Matthias Melcher
2019-12-23macOS: fixed all demo programs that need to access resourcesMatthias Melcher
MacOS uses bundles instead of executables. CMake creates those bundles in various locations, depending on the generator used (Xcode or Makefiles). I tried to fix all instances where demo apps did not find the resources they needed. This probably must be done for Linux and MSWindows as well.
2019-11-21Improve Cairo demo programAlbrecht Schlosser
- remove unused variables - add comments - center drawn buttons - make text slightly smaller to fit into button - reorder button colors (r, g, b)
2019-11-08Don't use Fl::readqueue() in cube demoAlbrecht Schlosser
Usage of Fl::readqueue() is not recommended (should be deprecated?), hence we shouldn't use it in our demo program(s). To do: remove Fl::readqueue() usage from fluid.
2019-11-08Fix cube demo if OpenGL is not availableAlbrecht Schlosser
(1) Fix a compilation error (2) Fix high CPU usage
2019-08-29Fix more compiler warnings (STR 3529)Albrecht Schlosser
test/colbrowser.cxx: [-Wformat-overflow=] test/file_chooser.cxx: [-Wformat-overflow=] Increase buffer size.
2019-08-25Small tooltip improvements for test/tree appGreg Ercolano
2019-06-22Update dependency systemAlbrecht Schlosser
Try to make `make depend' independent of locale.
2019-06-22Fix missing quotes in CMakeLists.txt change.Greg Ercolano
2019-06-22Small fix for build error caught by git's build system.Greg Ercolano
2019-06-22Additional Makefile rules and source files for issue #29.Greg Ercolano
This adds source png and xcf files for checkers pieces. Also adds Makefile rules using xxd to convert .png -> .h as requested by Albrecht in issue #29, (hmm, no comment numbers github?)..message dated "June 22nd 2019 4:22am PDT".
2019-06-22Fix issue #29: Updated buggy/ugly checkers piece iconsGreg Ercolano
OP noticed our one-bit xbm images demonstrated an X11 driver bug on certain hardware. While it's good that our test programs show the bug (e.g. test/bitmap), it's bad that our games do. Removed the 16 xbm files used by checkers which simulated transparency with dithered images, and replaced with 4 "hexdump" png files that are cleaner/simpler looking for such lores pieces (46x46 pixels). Will follow up with a separate commit for the source .png and gimp .xcf file I used for making the pieces.
2019-03-28Update dependenciesAlbrecht Schlosser
Note: these dependencies are not complete and will likely never be because they depend on different configurations.
2019-03-25Update dependenciesAlbrecht Schlosser
2019-03-06Have the fullscreen test program show the screen scaling factor values.ManoloFLTK
2019-02-24Add example of call to Fl_Sys_Menu_Bar::about()ManoloFLTK
2019-02-12CMake: Cairo demo must also be built w/o CairoAlbrecht Schlosser
The Cairo demo program (test/cairo_test.cxx) can and should be built even if Cairo is not configured with CMake as it is done with autotools (configure/make). The message window shown when Cairo support is not available has been improved (is more explicit and has a window title).
2019-02-12Reformat according to the CMP (whitespace only)Albrecht Schlosser
Preparing for some minor mods...
2019-02-09Remove duplicate source from Makefile (and sort it)Albrecht Schlosser
It's easier to notice duplicate files if they are sorted.
2019-02-05Fixed all Pixmaps to be '*const' (STR #3108).Matthias Melcher