summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-02-09Fix Cairo related build issues (missing Cairo lib)Albrecht Schlosser
... particularly for shared libs
2024-02-09Fix cairo_test-shared build as well (#902)Albrecht Schlosser
2024-02-09Move FLTK_USE_SVG from config.h to FL/fl_config.hManoloFLTK
2024-02-09Fix "cairo_test fails to link due to undefined's" (#902)Albrecht Schlosser
Restore "too much optimized" CMake code. The issue would only be visible if neither FLTK_GRAPHICS_CAIRO nor FLTK_BACKEND_WAYLAND was active.
2024-02-07Introduce "Modern CMake" in FLTKAlbrecht Schlosser
This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback.
2024-02-06Fix typo in function name in editor.Matthias Melcher
2024-02-06Add dynamic title to test/editorMatthias Melcher
2024-02-06Restore 3-way close window dialog (#900)ManoloFLTK
2024-01-29RFC: Different approach to Editor tutorial (see #189) (#883)Matthias Melcher
Update test/editor code and tutorial (#189, #883) Different, sequential approach to Editor tutorial Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2024-01-17Synchronize mouse and keyboard callbacks for Fl_Button (#877)Matthias Melcher
Keyboard behavior for button types was not consistent with mouse click behavior. This change avoids callbacks when pressed radio buttons are pressed again.
2024-01-15Restore correct copyright window for checkers demoManoloFLTK
2024-01-10Add Fl_String not-equal testGreg Ercolano
2024-01-06Remove Fl_Simple_Terminal (replaced by Fl_Terminal)Albrecht Schlosser
... as discussed previously.
2024-01-03Limit test/terminal window sizeGreg Ercolano
Prevents window from squishing buttons horizontally. Allows tty height to shrink to no less than a single line.
2023-12-28Adds Fl_Input RMB menu translation to test/preferencesMatthias Melcher
This also updates the RMB menu labels before every popup so that changing the labels after creating the widgets still reflects that change correctly.
2023-12-21Fix a typo, trailing whitespace, and dependenciesAlbrecht Schlosser
2023-12-20Make the 'Forms' compatibility library 'fltk_forms' optionalAlbrecht Schlosser
This library is no longer needed in FLTK itself. There is only one demo program (test/forms.cxx) that uses it if it is built. The demo program displays a message if fltk_forms is not available. The default is 'enabled' for backwards compatibility but this may be changed to 'disabled' in a future version.
2023-12-19Fix typos, formatting, and text alignment in test/forms.cxxAlbrecht Schlosser
no real code changes
2023-12-17Fix MSVC compiler warningAlbrecht Schlosser
2023-12-16#842: Enables command line color arguments on macOSMatthias Melcher
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