summaryrefslogtreecommitdiff
path: root/FL/Fl_Preferences.H
AgeCommit message (Collapse)Author
3 dayswipmaxim nikonov
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-11-01Improve and clarify documentationAlbrecht Schlosser
2024-10-15Fix documentation typos and trailing whitespaceAlbrecht Schlosser
2024-10-10Fl_Preferences documentation update.Matthias Melcher
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-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-08-26Fixes a bunch of typos in comments.Matthias Melcher
2023-04-13Fix trailing comma in enums of public headersAlbrecht Schlosser
Compiler warning: comma at end of enumerator list [-Wpedantic] Note 1: I decided to fix these warnings although trailing commas in enums are allowed at least since C++11. Note 2: I fixed only public headers because these headers may be compiled in user code. To do: check internal headers.
2023-02-25Add Fl_String to Fl_Preferences (#687)Matthias Melcher
2022-03-25Update documentation and dependenciesAlbrecht Schlosser
2022-02-03Fl_Preferences (X11): Fix detection of preferences directoryAlbrecht Schlosser
- Fix compiler warning [-Wmaybe-uninitialized] for variable home - Reformat enum 'Root' for better readability - Add new enum values CORE_SYSTEM_L and CORE_USER_L - Improve documentation (deprecated and new enums) - Initialize internal static variable 'filename' which could be used uninitialized and thus return any previous value (type == MEMORY)
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.
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-05-24Fix documentation typos and formattingAlbrecht Schlosser
2020-01-14Fixed some documentation for Fl_Preferences and fl_make_path.Matthias Melcher
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-11-27Documentation: reveal where the Fl_Preferences text files are located on ↵Manolo Gouy
each platform. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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
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
2013-09-16STR# #2973: applied patch str_2973_r9958_sun-fix-errors-5.patch verbatim.Greg Ercolano
src/Fl_Tree_Item.cxx -- solve: "Fl_Tree_Item.cxx", line 614: Error: Initializing int& requires an lvalue. FL/Fl_Preferences.H -- solve: "FL/Fl_Preferences.H", line 196: Error: Fl_Preferences::RootNode is not accessible from 0 FL/Fl_Tree_Item.H -- solve: "Fl_Tree_Item.cxx", line 614: Error: Initializing int& requires an lvalue. test/unittests.cxx -- solve: "unittests.cxx", line 95: Error: The type "UnitTest*[]" is incomplete. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-18Fixed Fl_Preferences documentation typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9228 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
2010-12-05Reformatting for CMP: Indent fixes, bracing.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7949 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-10-31Fixed tab key navigation to inactive widgets (STR #2420), fixed a few ↵Matthias Melcher
pedantic warnings git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30Added callback when double-clicking file in a file chooser (STR#2346)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7783 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-04-03Fixed databse typo.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-03Fl_Preferences.H: renamed dummy variable id to id_ to allow gcc-3.3Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20Mixed bag. Please see CHANGES.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24Still not having added Fl_Tree and Fl_Table to Fluid, I remembered the ↵Matthias Melcher
plugin concept we had early on. It occured to me that writing plugins must not be difficult, and that FLTK already has everything needed. So here it is, a plugin implementation for FLTK. The MSWindows/Cygwin implementation is untested due to lack of a machine. The dynamic loading still needs a test implementation. Comments welcome. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-12Fl_Preferences now have an API to delete all nodes or entries at once.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-10Added a function to copy an entire Fl_Preferences database into an Fl_Tree ↵Matthias Melcher
view. This will break IDEs that do not have Fl_Tree and Fl_Table added yet! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-07Fixed stupid crash bug in Fl_Preferences.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-28Fixed previous commitMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-28Added an ID type to preferences which can be retrieved to then re-use the ↵Matthias Melcher
same dataset. IDs can be used in callbacks as user_data(). No need to keep an Fl_Preference around that would later require deleting. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-27Improved Preferences database. Branches can now be accessed by index. Added ↵Matthias Melcher
UUID generation (better versions needed for Unix and MSWin!). Added access to group name and path git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-18Updated doxygen docs for Fl_Input_ to get a greater insight into the code. ↵Matthias Melcher
I'll try to get full Unicode support in soon. The current code uses some interesting solutions ;-). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-01Reverted removal of #include <stdio.h>, because it _is_ needed.Albrecht Schlosser
It was removed in r 6682 (STR #2173). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14Fl_Preferences.H now doesn't include windows.h any moreAlbrecht Schlosser
(Windows only, STR #2173). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Changed the copyright to 2009 for header files. Still todo: src and test ↵Matthias Melcher
directory. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-31Moved Fl_Preferences documentation to the correct places.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19Moving some doxygen dox around (Fl_Preferences).Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-18Updated some documentation for Fl_Preferences::getUserdataPath()Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-15Doxygen pdf documentation: Changed pdf mime type to application/pdf. Removed ↵Fabien Costantini
all Widget class headers from file section as they already are in the class section, this saves many pages. Also disabled the referenced by/from systematic inserts for each functions as this is more a core developer documentation feature than a fltk user manual feature, also saves many pages. Didn't use the LATEX_COMPACT feature yet, not happy with its result, will comment it later. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-18Doxygen documentation: Fixed most important warnings for the Fl_Widget, ↵Fabien Costantini
Fl_Window, Fl_Valuator classes that should be now a 100% documented. For the rest I drastically reduced the undocumented APIs, but many others (less important) remains. It looks and feels pretty good now :-) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-17Doxygen documentation: fixed all ambiguous methods signatures, fixed ↵Fabien Costantini
erroneous path test into ../test since the doxyfile move, fixed all intro dl,dt,dd related tags warnings in intro.dox . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121