summaryrefslogtreecommitdiff
path: root/test/demo.cxx
AgeCommit message (Collapse)Author
2025-09-08Remove from Doxygen files information about removed configure-based build ↵ManoloFLTK
system.
2025-03-10More (mostly) documentation updates for FLTK 1.5.0Albrecht Schlosser
All files: remove autoconf/configure related stuff, update links. - README.txt: describe prerequisites, provide generic instructions on how to use CMake to build FLTK - test/demo.cxx: remove code used for configure/make build - test/CMakeLists.txt: remove obsolete 'target_compile_definitions()'
2024-03-11Add Fl_Terminal to "Scrollbar Size" unittest (#931)Greg Ercolano
This involved enlarging the unittest main window to make room for the additional test. Adding this test revealed a problem in Fl_Terminal's global scrollbar size handling, which is fixed here as well. Also fixed a small issue in the demo's debugging terminal with the horiz scrollbar.
2023-12-15#840: Generously adds Fl::args_to_utf8() for MinGW support.Matthias Melcher
2023-11-14Fl_Terminal widget (#800)erco77
Pull Fl_Terminal widget from Greg's fork
2023-03-22Fix test/demo for X11 on macOS (e.g. XQuartz)Albrecht Schlosser
This modification became necessary since "__APPLE__" is no longer undefined by the build system when X11 is used on macOS.
2023-01-21Move global FLTK options into new app fltk-admin (#560)Matthias Melcher
2023-01-12Add Fl_Scheme_Choice widget and use it in test programsAlbrecht Schlosser
This widget offers the selection of all known FLTK schemes as a simple widget based on Fl_Choice. Some test and demo programs use Fl_Scheme_Choice to enable the developer or user to switch schemes quickly for comparison. Todo: - add features to add new schemes during runtime (partially done) - update status when the scheme is changed by Fl::scheme("...")
2022-11-25Add "Oxy" scheme (STR 2675, STR 3477)Albrecht Schlosser
This commit is similar to the patch given in STR 3477, oxy_v5.diff: https://www.fltk.org/strfiles/3477/oxy_v5.diff ... with modifications, and updated to current FLTK code.
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-08-08Improve layout, fix resizing of test/demoAlbrecht Schlosser
Add an invisible box as resizable() to 'demogrp' to avoid bad resizing behavior while the debug terminal is enabled. The old version would disable some buttons including the 'exit' button if the window was resized to a smaller size. Simplify the popup menu (remove strcmp()).
2021-04-08Fix macOS bundle: set missing fields for test appsAlbrecht Schlosser
- MACOSX_BUNDLE_BUNDLE_NAME: CFBundleName - MACOSX_BUNDLE_GUI_IDENTIFIER: CFBundleIdentifier test/demo.cxx: Remove confusing quotes from demo variable output.
2020-11-25Match format specifier and variable type.ManoloFLTK
2020-08-21CMake: move test executables to build/bin/testAlbrecht Schlosser
2020-07-25Simpler macOS-specific code in main().ManoloFLTK
2020-07-23Simpler macOS-specific code.ManoloFLTK
2020-07-21Fix macOS code + remove obsolete codeAlbrecht Schlosser
Albrecht: - move fl_chdir(data_path) up before fl_getcwd() prints it - add statements to open the argument (i.e. file) with data_path - update comments, remove obsolete code Greg: - on Mac we need absolute path for child filename parameters
2020-07-21Add Fl_Simple_Terminal for cross platform debuggingGreg Ercolano
2020-07-21Consolidate test/demo for all build systemsAlbrecht Schlosser
This is an attempt to unify the code for all build systems (CMake, autotools with make), platforms (operating systems) and toolchains (make + gcc/clang, Visual Studio IDE, Xcode ...) to avoid duplicate code and clarify the differences for future devs and to simplify maintenance. The goal is to minimize the platform specific code. Much of the new code are comments to describe the different situations. The main program does now all the "hard work" to construct the paths necessary to access the other applications and data files. Use macOS specific code to determine the application path (app_path) in main() instead of function dobut(), when test apps are activated. Remove obsolete comments and dead code. Tested on Windows and Linux with both autotools/configure/make and CMake with make (Linux + MinGW), Visual Studio.
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-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
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-02-02STR #2714: remove new shadow lint for MacOSMatthias Melcher
2018-12-04Fix 'fluid.app' for case sensitive macOS file systems.Albrecht Schlosser
Change 'Fluid.app' to 'fluid.app'. Also changed documentation and (https) links in modified files.
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-12Replace chdir() with new wrapper fl_chdir().Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15Replace inappropriate usage of __WATCOM__ with _MSC_VER.Albrecht Schlosser
Note: this is in parts temporary since some of the functions redefined for Visual Studio will be replaced with fl_*() functions in later commits. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31Remove another instance of the USING_XCODE preprocessor variableManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31Remove one instance of the USING_XCODE preprocessor variable that is not ↵Manolo Gouy
necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09Fix compiler warning when compiled with USING_XCODE [-fpermissive].Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05Fix and simplify exe name handling in demo (Windows).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-30Reflect changes in new Windows IDE (Debug Mode).Albrecht Schlosser
Windows executables in Debug mode don't have the trailing 'd' they used to have with the old (bundled) IDE files. The removal of 'd' (e.g. from askd.exe) was removed. Also prepared test/CMakeLists.txt for a better installation path of test files (copied from the source directory). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08Mac OS: fix demo for programs that are run with an argument.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-26Adjust test/demo.cxx to support the newly addedIan MacArthur
"gleam" scheme. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-10Demo now runs Mac OS test applications both if they are bundled or unbundled.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-05MacOS: create a bundled version of all example programs with fltk-config --postManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11Added missing #include's when compiled using XcodeManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03Mac OS X: removed all uses of Carbon (except for older OS versions) and ↵Manolo Gouy
re-organized text input around the NSTextInput protocol. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-02Integrated menu into demo resource branch for OS X. Indicating items that ↵Matthias Melcher
open more choices with ... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23Adopted use of FL_LIBRARY #define symbol under Mac OS X. This allows to compileManolo Gouy
client applications without including Mac OS system headers, with a gain in speed of compilation and portability. The source files of all FLTK libraries must now be compiled with -DFL_LIBRARY under Mac OS X. Make, CMake and Xcode project support files have been modified accordingly. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19Changed all fixed filename buffers (that I could find) to use FL_PATH_MX ↵Matthias Melcher
instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-18Fixed file access code to use UTF-8 strings (STR #2440)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-28Fixed the remaining warningsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-24Trying to bring the Xcode 3 OS X builds to a better standard, including ↵Matthias Melcher
automatic builds and project templates. 1 of 3 done. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-10Updated the Fluid IDE support for the current source file structure. Changed ↵Matthias Melcher
the Fl_Tree rendering code around a bit to make the tree more like MSWindows on Windows and more like Apple on Apple machines. I hope you guys like it. I also moved the function to load Fl_Preferences into an Fl_Tree into the Fl_Tree class where it belongs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-27Bringing supported IDEs to the newest setup, add device and others.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121