summaryrefslogtreecommitdiff
path: root/src/Fl_Preferences.cxx
AgeCommit message (Collapse)Author
46 hourswipmaxim nikonov
3 dayswipmaxim nikonov
2025-12-10Add access to a list of registered plugin klasses.Matthias Melcher
2025-03-07Fl_String is now just an alias for std::string.Matthias Melcher
All mentions of Fl_String will be replaced with std::string and the Fl_String implementation will be removed.
2024-10-15Fix documentation typos and trailing whitespaceAlbrecht Schlosser
2024-10-10Missing *not* in Fl_Preferences docs.Matthias Melcher
2024-10-10Fl_Preferences documentation update.Matthias Melcher
2024-01-22Fix User Preferences file search order for Unix (#891)Matthias Melcher
2024-01-19Fix crash in Fl_Preferences for deformed group name (#891)Matthias Melcher
2023-12-22A more cross-platform way to fix issue #876ManoloFLTK
2023-12-21Fix "Fl_Plugin_Manager::loadAll doesn't work correct" (#876)ManoloFLTK
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-21Remove duplicated code that was commented out, fix includesAlbrecht Schlosser
... and prevent confusing doxygen
2023-10-21Removes dependency on Fl_Preferences::get/set(.., Fl_String, ...)Matthias Melcher
2023-09-27Fix for CLEAR flag in Fl_PreferencesMatthias Melcher
Fixed warning in new Fl_Preferences constructor
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-03-02Fix typos in Doxygen documentationManoloFLTK
2023-02-25Add Fl_String to Fl_Preferences (#687)Matthias Melcher
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-04-03Silence compiler warnings [-Wunused-but-set-variable]Albrecht Schlosser
2022-03-25Update documentation and dependenciesAlbrecht Schlosser
2022-03-23Remove vsscanf_l() call from Win32 driver (it appears to be a BSD-ism and ↵ian.macarthur
unsupported by the MS tools) and rename several clocale specific methods from "name" to "vname" since they take a va_list not a variable list of arguments.
2022-01-23Preferences XDG path (#377)Matthias Melcher
* Preferences: remove CamelCase from public interface. * Prefs: documentation. * Prefs: updating Doxygen comments * XDG conforming preferences path
2022-01-19Fixing and upgrading Fl_Preferences (#374)Matthias Melcher
* Added filename function to Fl_Preferences Static function to get filename before opening. Member to get filename after opening. Bug fixes for memory mapped preferences. * ERROR is a macro on Windows, don't use it * Added Fl_Preferences::dirty(). User can now check if the database will be written when flushed or destroyed. Flush returns a crude error code. * Fl_Preferences::get binary data returns # of bytes read. * Verified group deletion code * Fl_Preferences ignores locale. This will make .prefs files interchangeable between different computers. * Updating the Preferences Mode to ignore locale. * Fixes in docs.
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2021-02-25Fix Doxygen docs (unescaped '$')Albrecht Schlosser
2020-10-04Create Fl_X11_System_Driver::dlopen_or_dlsym() for run-time addresses.ManoloFLTK
The intent is to gather in a single place of the X11 platform source code all variable elements when using dlopen() and dlsym() system functions (e.g., .so vs .dylib extension name, is RTLD_DEFAULT available, locations to be sought). Member function Fl_System_Driver::load() is created only to support Fl_Plugin_Manager::load().
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
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-06-01Improve Fl_Preferences documentationAlbrecht Schlosser
This commit fixes typos and reformats some of the documentation. No code changes.
2020-02-11Fix static analyzer errors and warningsAlbrecht Schlosser
Fix several bugs found by scan-build (more to come). https://clang-analyzer.llvm.org/scan-build.html See also current travis-ci build log with static analyzer, e.g. https://travis-ci.com/fltk/fltk/jobs/285426415 (link may become invalid in the future).
2020-01-14Merge remote-tracking branch 'refs/remotes/origin/master'Matthias Melcher
2020-01-14Fixed some documentation for Fl_Preferences and fl_make_path.Matthias Melcher
2020-01-13Fix Doxygen warnings and errorsAlbrecht Schlosser
2020-01-11Improved documentation of Fl_Preferences.Matthias Melcher
Detailed information on how preference file paths are generated, and preliminary docs what happens if that fails. Documentation, on what FLTK die pre 1.4 when any of this failed. Also, a little TODO list for me that I will hopefully get to in the next days.
2020-01-03macOS: checking Fl_Preferences file path improvedMatthias Melcher
zlib: removed warning
2019-12-31Limiting file access for Fl_Preferences.Matthias Melcher
Added Fl_Preferences::file_access() and various flags that make it possible to limit or completely deny file access to the preferences system, either for the core library or for the application or both.
2018-06-26Move Fl_System_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Doxygen only: fixed all block comments starting with an asterisk to ↵Matthias Melcher
space-only, fixed doxygen keywords prepended with @ to use a backward slash instead. No code was changed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07STR #2823.2/2: Improved Fl_Preferences "dirty" flag handling.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07STR #2823.1/2: avoiding setting "dirty" flag in a read operation.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07Fix some typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07More logical data path nameMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07STR #2034: Fl_Preferences::getUserdataPath() is much more careful when ↵Matthias Melcher
creating a pathname based on the preferences filename. Among other things, remove a possible buffer overflow. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16Fix typos in comments.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-14PicoSDL fixes - not working!Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10Rewrite Fl_Preferences.cxx under the driver model.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06Remove unnecessary #include <sys/stat.h> directiveManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29Remove the platform-dependent type xcharManolo Gouy
File fl_utf8.h defines the xchar type with a platform-dependent value (wchar_t or unsigned short). But it is used exclusively by WIN32 code (0 use in cross-platform code, 0 use in APPLE or in USE_X11 code). Thus, we can just get rid of this type and replace it by wchar_t where it is used. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-13Details on PORTME items. Move fl_parse_color() to screen drivers.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121