summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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
2019-02-02Removed all shadow lint in header files (STR #2714).Matthias Melcher
2019-02-02STR #2714: remove new shadow lint for MacOSMatthias Melcher
2019-01-18Update dependencies (now sorted)Albrecht Schlosser
The main dependencies (makedepend files) are now sorted alphabetically with one dependency per line.
2019-01-18Sort makedepend files for better comparabilityAlbrecht Schlosser
The intention is to improve (and minimize) diffs when dependencies are changed and `make depend' is executed. (1) use `makedepend ... -w 20' (2) `sort -u' the resultant file with some more "magic". (1) makes sure that there is only one dependent file per line, (2) makes lines unique since `makedepend' can output one file many times which is redundant and makes diffs hard to read. This uses 'mv', 'grep', and 'sort' in all FLTK library Makefiles. Image libraries are intentionally left for a later update.
2019-01-18Fix dependencies (STR 3506)Albrecht Schlosser
test/fracviewer.cxx wouldn't be compiled if the ABI version was changed with configure and `make' was executed w/o `make clean'. Add 'fracviewer.cxx' to list of source files to fix this. Also add missing unittest_scrollbarsize.cxx to dependencies of unittests.o. Finally run `makedepend' to update dependencies. Note: cherry-picked from branch-1.3 and adjusted to fit master (1.4)
2019-01-17Android CMake: icons, docs, more appsMatthias Melcher
2019-01-17Andoird CMake: trying to autocreate Fluid filesMatthias Melcher
2019-01-16Android CMake: fix, more autogenerated filesMatthias Melcher
Fixed a bug that would cause an error is Android Build was NOT defined. Creating list of test targets automatically.
2019-01-16Android CMake: macro for multiple testsMatthias Melcher
Added a macro that creates the IDE files for a named test. This is just a rough layout and will only work for the simpelest of test targets.
2019-01-15Fixed typo in test/CmakeMatthias Melcher
2019-01-15Android: starting to use CMake to build AndroidStudio files.Matthias Melcher
2018-12-29Adding documentation for '@N', inactive color.Matthias Melcher