summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-14Add Fl_Window::screen_num(int) to fully control window locationManoloFLTK
on multi-screen systems having distinct per-screen scaling factors.
2020-08-13Fix simple SVG example (howto-simple-svg)Albrecht Schlosser
2020-08-11Slightly simpler code in the drawRect:(NSRect) methodManoloFLTK
2020-08-10Fix missing Alt-N shortcut for newly created favoritesGreg Ercolano
Fl_File_Chooser's "Add Favorite" function wasn't including the Alt-N shortcut when initially added. Now just calls update_favorites() to rebuild the menu with proper shortcut numbering.
2020-08-10Added Mike's feature list to Fl_File_Chooser docsGreg Ercolano
When Mike proposed Fl_File_Chooser, he included a list of features in the voting contest: https://www.fltk.org/contest.php Seemed like a good idea to include these in the widget's docs.
2020-08-10Add support of macOS 11.0 "Big Sur".ManoloFLTK
2020-08-08Allow unix style paths for windows native filechooserGreg Ercolano
Allows and preserves unix style paths if user specifies them, otherwise uses Windows style. This allows end users to use either style path and get behavior they expect in cross-platform environments. Addresses problems raised by issue #122
2020-08-07Error string that was created is now saved with errmsg()Greg Ercolano
2020-08-05Remove useless 'if (...)'Albrecht Schlosser
- dasharray_ can never be NULL unless if memory allocation failed previously - if dasharray_ was NULL, the previous strcmp() would have crashed anyway (but it can't be NULL, see above)
2020-08-04Remove memory leak.ManoloFLTK
2020-08-03Remove useless Fl_GDI_Graphics_Driver::reset_spot()ManoloFLTK
2020-08-03Update dependencies + fluid/generated filesAlbrecht Schlosser
2020-08-02Commiting fluid generated template_panel.h as per issue #116Greg Ercolano
Regarding this comment thread: https://github.com/fltk/fltk/pull/116#discussion_r458517450
2020-08-01Merge pull request #116 from erco77/fl_strduperco77
fl_strdup() implemented + deployed
2020-08-01Convert example from strdup -> std::stringGreg Ercolano
2020-08-01Remove unneeded strdup from example, fold tabsGreg Ercolano
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-31Solves issue #117, memcmp -> strncmpGreg Ercolano
Closes #117.
2020-07-30Fix use of an SVG image in Fl_Tiled_Image when display is rescaled.ManoloFLTK
2020-07-29Documentation: complete the inheritance diagram from class Fl_Surface_Device.ManoloFLTK
2020-07-28Fix for issue #119. Drawing artefacts for SVG images without XRender.ManoloFLTK
Xlib: Drawing SVG images in scaled mode without XRender has drawing artefacts.
2020-07-27Fix for "Crashing regression in MacOS code" in fltk.coredev.ManoloFLTK
2020-07-25Simpler macOS-specific code in main().ManoloFLTK
2020-07-24Remove typedefs Fl_String and Fl_CStringAlbrecht Schlosser
These unused typedefs are not used anywhere and should not be defined at all. Remove typedef 'Fl_String' as decided in fltk.coredev. Remove typedef 'Fl_CString' as well for the same reason.
2020-07-24Fix problem when calling Fl_Window::fullscreen_off() in certain circumstances.ManoloFLTK
The problem was discovered in fltk.coredev "Crashing regression in MacOS code"
2020-07-23Git-ignore resize-example* test programsAlbrecht Schlosser
2020-07-23Simpler macOS-specific code.ManoloFLTK
2020-07-23Fix for issue #50: usage in plugins on Linux.ManoloFLTK
2020-07-23Create macOS "bundle wrapper" scripts (#115)Albrecht Schlosser
These scripts must be installed side by side with the bundle with the same name and run the executable inside the bundle when executed.
2020-07-23Use local images in test/help_dialog(.html)Albrecht Schlosser
- create subdir test/images - copy images used by test/help_dialog to this subdir - fix image URL's in test/help_dialog.html accordingly CMake: copy the entire test/images folder to the <build>/data folder This enables the demo test/help_dialog.cxx to find its images.
2020-07-22macOS: don't add resource files to demo.appAlbrecht Schlosser
Resources like demo.menu and help_dialog.html are no longer read from the bundle directory on macOS. They are read from the build folder build/data or in case of classic autoconf/make builds from the source directory. We don't need to copy the files into the bundle folder, they are copied to the build/data folder on all platforms anyway.
2020-07-21Merge pull request #111 - refactor test/demo.cxxAlbrecht Schlosser
Simplify, clarify and fix bugs in test/demo.cxx As discussed and confirmed test/demo.cxx works now in all known and supported build systems.
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-20Add missing driver folder to Makefile (clean)Albrecht Schlosser
2020-07-20add resize examples as per STR3433Duncan Gibson
add example code for creating images for resize.dox based on Article #415: How does resizing work? https://www.fltk.org/articles.php?L415 see also https://www.fltk.org/str.php?L3433
2020-07-20CMake: simplify create_example macroAlbrecht Schlosser
- move target (demo) specific code from macro to CMakeLists.txt - refactor macOS specific code for a cleaner structure - improve documentation Note: CMake ignores platform specific code like creating bundles on other platforms, hence the entire code could be simplified (less conditional code)
2020-07-20Restore tabs in html test fileAlbrecht Schlosser
These tabs were intentional and had been replaced with spaces in the big whitespace fix. This file is an exception!
2020-07-20CMake: fix FLTK_RUN_FLUID macroAlbrecht Schlosser
The target variable should be set outside of the loop.
2020-07-18CMake: simplify copying of test and demo filesAlbrecht Schlosser
2020-07-17Restore use of virtual Fl_Window::resize() to be notified when window moves.ManoloFLTK
A previous commit c66caf5dce9331fd3e011873711a768adb28cf9d "Simpler implementation of Fl_Cocoa_Window_Driver::resize()" made that Fl_Window::resize() was no longer called by FLTK when a window is moved. This prevented the undocumented practice of re-implementing the virtual function Fl_Window::resize() and use it as a way to get a notification that a window was moved.
2020-07-16Documentation: update clock demo imagesAlbrecht Schlosser
One of the images was cut off at the top or bottom. Added window decoration with title, used a bright blue background.
2020-07-16Windows: add icon to sudoku.exe (PR #36)Albrecht Schlosser
The changes proposed by Tadej Panjtar (tpanj) were obsolete WRT current Git repo. Thanks to tpanj anyway, I did also apply the simplifications of sudoku.rc.
2020-07-15fix doxygen links in Fl_Group.HDuncan Gibson
fix dead links to Fl_Group::resizable(Fl_Box *box) reorder paragraphs to highlight different behaviour add link to new "How does resizing work?" chapter in dox
2020-07-15Restore file icons to 3 macOS test apps who have oneManoloFLTK
2020-07-15CMake: refactor and reformat CMake filesAlbrecht Schlosser
- raise minimum CMake version from 2.6.3 to 3.2.3 (Jun 01, 2015) - indent all CMake files according to the CMP (2 col.) - refactor FLTK version number definitions and usage - unify CMake and autoconf/configure variable names: - FL_VERSION -> FLTK_VERSION - FL_MAJOR_VERSION -> FLTK_VERSION_MAJOR - etc. for _MINOR_ and _PATCH_, respectively - note: this does not affect FL_VERSION etc. in source code - generate "export headers" for all libraries (experimental: OFF) - port some forgotten goodies from branch-1.3 to master - merge and improve macro 'create_example' (WIP) - remove "temporary" options and code for older CMake versions - include and use 'GenerateExportHeader' (experimental, WIP: OFF) - note: created header files are not yet used - build only *one* DLL with Visual Studio (tested, works) - similar to the bundled IDE projects in 1.3.x - add some dynamically linked test/demo programs ('*-shared') if shared libraries are built (WIP) - split 'macros.cmake': use one file per macro
2020-07-14Merge branch 'issue-99a': add OS error messages to Fl_File_ChooserGreg Ercolano
Pulling in Greg & Albrecht's work on PR #99 and PR #103. This includes supporting operating system error messages in the user's local language, which took some extra effort.
2020-07-14Fix old URL's and forum/newsgroup namesAlbrecht Schlosser
- fltk.development has been renamed to fltk.coredev - all FLTK URL's are now of the form https://www.fltk.org/…
2020-07-14Import Albrecht's utf8 mods for FormatMessage() to fluidGreg Ercolano
Amended by Albrecht: - fix comments - add setlocale() to fluid Note: the latter is also necessary to honor locale in GTK filechooser.