summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-12-15#840: Generously adds Fl::args_to_utf8() for MinGW support.Matthias Melcher
2023-12-14FLUID: option to show terminal, clear terminal, and clear historyMatthias Melcher
2023-12-04New member function Fl_Image_Surface::mask(Fl_RGB_Image*)ManoloFLTK
2023-11-29Add commandline conversion for Windows (no-op on other platforms)Albrecht Schlosser
- add Fl::args_to_utf8() to convert commandline arguments to UTF-8 This new function closes the gap that previously only Visual Studio applications converted their commandlines to UTF-8. Tested with MinGW, MSYS2/MinGW-w64, and Visual Studio (2019).
2023-11-29Minor fixes and window size_range in new test/tile.cxxAlbrecht Schlosser
Also add comments to clarify what "old" and "new" code is,respectively.
2023-11-27Fix compiler warning, dependencies, and trailing whitespaceAlbrecht Schlosser
The benign warning was: ‘Fl_Browser_::hscrollbar’ will be initialized after [-Wreorder] ‘int Fl_Browser_::linespacing_’ ...
2023-11-25Adds `linespacing()` to `Fl_Browser_` and all derived widgetsMatthias Melcher
2023-11-23Stabilizes Fl_Tile size_range mode.Matthias Melcher
- improved documentation - new tile resize strategy - robust against zero sized children
2023-11-22Adding size range settings to Fl_Tile, initial commit.Matthias Melcher
- some documentation missing - Fl_Tile::resize() not satisfying yet - minimums work, maximums currently ignored - 0 size children may make program hang
2023-11-21Added output_translate(): controls lf -> crlf translationGreg Ercolano
2023-11-19Fix compiler warningAlbrecht Schlosser
"extended initializer lists only available with ‘-std=c++11’ ..."
2023-11-18Small improvements of test/grid_dialog.cxxAlbrecht Schlosser
2023-11-18Add Fl_Grid based dialog demo program - part 2Albrecht Schlosser
Add forgotten source file.
2023-11-18Add Fl_Grid based dialog demo programAlbrecht Schlosser
This is a new test program for Fl_Grid based layout and a proof of concept for a future dialog class based on Fl_Grid.
2023-11-17Apply two patches provided by user 'Andre' via mailAlbrecht Schlosser
1. add missing FL_EXPORT to class Fl_Terminal 2. add missing test/wizard demo to test/Makefile
2023-11-16Added clear(), some methods protected->publicGreg Ercolano
New public methods: void clear(void); void clear(Fl_Color val); old protected methods made public: void clear_screen(bool scroll_to_hist=true); // ESC [ 2 J void clear_screen_home(bool scroll_to_hist=true); // ESC [ H ESC [ 2 J void cursor_home(void); // ESC [ 0 H test/terminal modified to test these, and added separate tests for both the API and ANSI code ways to do these ops.
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