summaryrefslogtreecommitdiff
path: root/src/Fl_Preferences.cxx
AgeCommit message (Collapse)Author
2016-02-11Mark places that need to be refactored with // PORTME:Matthias Melcher
Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-03Updated platform specific #if's to report unimplemented code when compiling ↵Matthias Melcher
with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-24Fixed small typo, added some elipsis to clarify docsGreg Ercolano
when copy/pasting into email/forum posts as clear text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03Fix compiler warning (another part of STR #2813).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31Fix potential buffer overflow (Windows: BEX64 error) and home dir (STR 3166).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19Unused functions makePath() and makePathForFile() removed. (STR#3169)Greg Ercolano
Albrecht adds in comment #3: "These have been replaced by fl_make_path() and fl_make_path_for_file() in src/fl_utf8.cxx." git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-14Adjust the Fl_Preferences methodIan MacArthur
char Fl_Preferences::RootNode::getPath( char *path, int pathlen ) so that it returns a (1), rather than a (-1) in the case that RUNTIME preferences are being read. This is for several reasons: - On some platforms, char is unsigned, so a method that is spec'd to return a char type can not safely return (-1) as a value. - It seems like (most?) other fltk methods that return char true/false results return 0 or 1, so this is more consistent. Thanks to Michael Baeuerle for spotting this one. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-01Protect use of dlopen() with HAVE_DLSYM and HAVE_DLFCN_H for compatibility ↵Manolo Gouy
with cases where this function is not available. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-09Fix compiler warning "variable set but not used".Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 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
2011-01-19Removed gcc 4.4 compiler warning:Manolo Gouy
Fl_Preferences.cxx:1322: warning: ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8291 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
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-12-03Another fix for Fl_Preferences when creating a "user data" path for systemAlbrecht Schlosser
preferences (STR #2465). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-02Fix for STR #2465: make sure that system preference files are user readable ↵Manolo Gouy
(unix). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7941 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-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-10-28Fixed a bunch of warnings from gcc 4.4.5 . Most of these are parenthesis ↵Matthias Melcher
missing to make the precedence of && over || obvious. Ah well, why not... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-09-30Commit to fix handling of Fl_Preferences UUID values on 64-bit WinXX and ↵Ian MacArthur
*nix systems. Not tested as thoroughly as I would like - I don't have a 64-bit big-endian system... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7707 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-03-29OS X: removed all Carbon and Quickdraw references. Starting with 1.3, we ↵Matthias Melcher
only support Cocoa and Quartz. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-25Remove a spurious #warning I'd left in the win32 builds...Ian MacArthur
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-20removed "#undef FL_PLUGIN_VERBOSE" since this would preventAlbrecht Schlosser
compiling with "-DFL_PLUGIN_VERBOSE" git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-19Fl_Plugin: using bas 'A' encoded BCD to write the pointer. This is pure and ↵Matthias Melcher
fast C. However, the pointer is not human readable (hexadecimal would just be a waste of time ;-). The size of the string adapts to the length of the pointer and ignores big/little endian. All calls have room for a maximum of 128bit per pointer. I also removed the verbose comments to keep them out of the snapshot tonight. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-19Changed reading and writing of pointers in Fl_Plugin. This will hopefully ↵Matthias Melcher
fix issues with MinGW. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-17Fixed the IDE's for Xcode3, Xcode3.1, and VisualC (last one untested).Matthias Melcher
Added some code for verbose plugin manager output. This is what you should get when loading "cube" and then calling the regular "print" function. Fl_Plugin: creating a plugin, class "fltk:device", name "opengl.device.fltk.org" Fl_Plugin: creating a plugin manager for class "fltk:device" Fl_Plugin: adding plugin named "opengl.device.fltk.org" at 0x0x175314 Fl_Plugin: deleting a plugin manager Fl_Plugin: creating a plugin manager for class "fltk:device" Fl_Plugin: returning plugin named "opengl.device.fltk.org": 0x0x175314 Fl_Plugin: deleting a plugin manager Fl_Plugin: deleting a plugin git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-27Starting to add a GUI to manage the IDE database.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7169 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-02-19Fixed Fl_Preferences Cygwin wide character bug (STR #2164)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24Without knowing Cygwin, this seems to make more sense to me?!Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7030 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-21fix x86_64 linux buildyuri
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-13Another bug in Fl_PreferencesMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6996 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-11Fl_Preferences::copyTo() would fail if there is no tree rootMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-11Minor bugs in Fl_Preferences::copyTo(). Note to self: increase warning level!Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6993 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-09This is my test implementation of the UUID code for Fl_Preferences.cxx on win32.Ian MacArthur
Tested on XP and Vista and seems to be OK, but needs to be checked by others for confirmation. Any issues and we should just back this out, I think, but I trust that all will be well. The actual implementation is probably "sub-optimal" however, so if someone would like to make it better... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6991 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
2010-01-04Fixed previous commit (s/gethostbyname/gethostname/) and addedAlbrecht Schlosser
#if defined (__GNUC__) to remove #warnings from other (Windows) compilers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-04Temporary fix for Fl_Preferences on Windows, because gethostbyname would needAlbrecht Schlosser
winsock (ws2_32.dll) - the final fix would have to load it dynamically or use another function... Also fixed the missing return statement (all platforms). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6987 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-12-07Some fixes for the Cocoa portMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-24Major documentation update including: now html doc API is sorted, navigation ↵Fabien Costantini
problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6716 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