summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-11-15Fixes test/terminal box typeMatthias Melcher
2023-11-15Uses the correct Fl_Terminal type in terminal.fl as wellMatthias Melcher
2023-11-15FLUID: fixing test/valuator.fl and test/tree.flMatthias Melcher
Using Fl_Terminal widget instead of subclassing from Fl_Group
2023-11-14Added textcolor() and color(), doc fixes.Greg Ercolano
textcolor() needed for consistency, color() behavior documented. Both added to the test/terminal app. Elaborated on the special background "see through" color value + behavior, tested with color() in test/terminal app.
2023-11-14Fix compiler warning (suggest-override)Albrecht Schlosser
2023-11-14Fix dependencies and whitespace issuesAlbrecht Schlosser
2023-11-14Fl_Terminal widget (#800)erco77
Pull Fl_Terminal widget from Greg's fork
2023-11-05Add Fl_Window::maximize() and Fl_Window::un_maximize()ManoloFLTK
2023-11-03CMake: Refactor building OpenGL and "shared" demo programsAlbrecht Schlosser
Define GLDEMO_LIBS and GLDEMO_SHARED: these definitions can be used to build OpenGL demo programs that can also be built w/o OpenGL Examples: fullscreen, handle_events, unittests
2023-11-03Fix compiler warning when fullscreen demo is built w/o OpenGLAlbrecht Schlosser
Warning: -Wsuggest-override
2023-10-22Make Fl_String and Fl_Int_Vector private (#789)Albrecht Schlosser
- add CMake option 'OPTION_USE_STD' - add configure option '--enable-use_std' - move FL/Fl_String.H to src/Fl_String.H - move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H - remove Fl_String from demo program examples/callbacks.cxx - remove Fl_Int_Vector from public header FL/Fl_Table.H - some methods of Fl_Table are no longer inline - add CMake option OPTION_USE_STD to allow std::string in some selected functions and methods Experimental, may be removed before release: - use either Fl_Int_Vector or std::vector in Fl_Table depending on CMake OPTION_USE_STD or configure --enable-use_std Move all fl_filename* functions that use Fl_String to fluid Main changes in fluid: - add fluid_filename.h and .cxx - include "fluid_filename.h" rather than <FL/filename.H> Update fl_input(), fl_password() and test/ask - add maxchar parameter to fl_input() and fl_password() - fl_input_str() and fl_password_str() are optional and return std::string if enabled (FLTK_USE_STD)
2023-10-21Removes dependency on Fl_Preferences::get/set(.., Fl_String, ...)Matthias Melcher
2023-10-20Fix ctrl/+/- in cube demoAlbrecht Schlosser
- Fl_Grid: force layout() on resize() - needed for GL subwindows - test/cube.cxx: - use end() in constructor of class cube_box - ensure not to change the current group when adding a button
2023-10-16Add Fl_Grid widget and test and demo programsAlbrecht Schlosser
- FL/Fl_Grid.H: header file - src/Fl_Grid.cxx: implementation - examples/grid-simple.cxx: simple example program - test/cube.cxx: use Fl_Grid for layout - test/grid_alignment.cxx: test cell alignment and other functions - test/grid_buttons.cxx: demo program as discussed in fltk.general - test/grid_login.cxx: like test/flex_login.cxx but with Fl_Grid - test/flex_login.cxx: modified to match test/grid_login.cxx
2023-10-16Update .gitignore filesAlbrecht Schlosser
Add missing executables
2023-10-16Improve subclassing cababilities of Fl_Tile (STR 2791)Albrecht Schlosser
- remove static variables and functions - make move_intersection() virtual - add (protected) cursor access methods These changes were inspired by STR 2791 where the user proposing an enhancement was not able to subclass Fl_Tile properly. This commit fixes the mentioned issues and enables subclassing without copying internal code.
2023-10-13Fix trailing whitespace and dependenciesAlbrecht Schlosser
2023-10-13test/menubar: use popup menu default boxtypeMatthias Melcher
2023-10-07Fix STR 3458: "GLUT compatibility mode segfaults"Albrecht Schlosser
... "when there's no current window". Silently ignore GLUT function calls that need a current window if the current window is NULL, return 0 from functions that return an 'int'. Check if window is shown in Fl_X11_Gl_Window_Driver::swap_buffers(). This would issue "XRequest.nnn: GLXBadDrawable 0x0" on X11 otherwise. Note: the chosen implementation to ignore GLUT calls silently appears to be compatible with GLUT (3.7) whereas FreeGLUT 3.0 would issue error messages and exit. The latter could be implemented as well but would be much more work.
2023-09-29Draw parent window backdrop on Fl_Tabs (#718)Matthias Melcher
2023-09-26FLUID: adds greatly enhanced Shell Commands (#774)Matthias Melcher
The user can add an arbitrary number of highly configurable shell commands through the setting panel. The commands can be saved as user preferences, inside the .fl file, or exported to an external file. Shell scripts can be limited to individual platforms, can have shortcut keys, etc. . * documentation will follow * support to call `fltk-config` will follow
2023-09-26FLUID: Fixes regression #777Matthias Melcher
Wrote wrong path in #inlude statement under certain conditions. Also removed 'snap' tag if not needed.
2023-09-22Fix potential invalid stack variable access in test codeAlbrecht Schlosser
This code was (and is still) commented out but it *would* trigger a "stack buffer overflow" error *if* uncommented. The new code demonstrates how a binary object (Fl_Preferences 'bed') can be dumped to a preferences file in binary format (if activated).
2023-09-22Update dependenciesAlbrecht Schlosser
2023-09-12Fix Visual Studio shared library buildAlbrecht Schlosser
Todo: fluid-shared can't (yet) be built agains the shared fltk lib because of some linker errors. Needs investigation. Note: fluid-shared is basically a test program to demonstrate linking against the shared FLTK libs but doesn't work yet using VS (MSVC). This is no problem for the functionality.
2023-09-08Fix unittest object file list in test/Makefile (#683)Albrecht Schlosser
2023-09-05Adds some convenience methods.Matthias Melcher
fl_filename_absolute can no generate a path using arbitrary source paths. Fl_Menu_ adds find_item_with_user_data and find_item_with_argument Fl_String adds find(string, start)
2023-09-03Adds compact buttons feature to create keypads.Matthias Melcher
See test/buttons for an example.
2023-08-26Adds safe versions of fl_filename_*, returning Fl_StringMatthias Melcher
2023-08-16macOS audio is usable with XQuartzManoloFLTK
2023-08-16Allow build of sudoku app with macOS + XQuartzManoloFLTK
2023-08-15Undoing previous changesMatthias Melcher
2023-08-15Lot's of changes, must rethink UI.Matthias Melcher
2023-08-15Missing includesMatthias Melcher
2023-08-15Sudoku into smaller pieces.Matthias Melcher
2023-08-15Random testing and fixing.Matthias Melcher
2023-08-15Removed unused codeMatthias Melcher
2023-08-15Adding generatorMatthias Melcher
2023-08-15Improved, yet compatible, widget callback system using macros (#729)Matthias Melcher
* adds FL/fl_callback.macros.H * adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data]) * adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data]) * adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body) * adds `examples/callback` * full documentation
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-08-05Revert "#733 partial: Adds rotation gesture event on MacOS"Albrecht Schlosser
This reverts commit 3049e6394a3376f7fff1c8cde19fd7bb1a9252ec as agreed upon in GitHub Issue #733.
2023-08-05#733 partial: Adds rotation gesture event on MacOSMatthias Melcher
2023-07-19Fix missing (new) source file in fluid and dependenciesAlbrecht Schlosser
New file: Fl_Button_Type.cxx
2023-07-19FLUID: RTTI improvements, 'is_a90' now const, apply RTTIMatthias Melcher
2023-07-14FLUID: fixes all overlapping widgets in all .fl filesMatthias Melcher
Also fixes an issue with multiple use of the same variable for different types of i18n.
2023-07-12Display mouse button state in test/handle_events.cxx demoAlbrecht Schlosser
See fltk.general, thread "Is handling simultaneous Left-click and Right-click drags supported?" from Jul 12, 2023 Status: FL_DRAG operation is terminated when one mouse button is released, even if more than one button is actually down. Subsequent mouse movement is reported as FL_MOVE rather than FL_DRAG, this is under investigation.
2023-05-10Fix "Provide --without-fluid configure option" - cont'd (#725)ManoloFLTK
2023-05-09Fix "Provide --without-fluid configure option " (#725)ManoloFLTK
Add new --disable-fluid configure option.
2023-05-08Fix some but not all memory leaks in test/utf8 demoAlbrecht Schlosser
Note: Fl_Input::value() copies the string to an internal buffer, fl_strdup() before value() is not necessary.
2023-04-14test/utf8: improve use of Fl::set_fonts(const char *) across platformsManoloFLTK