diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-09-26 15:01:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 16:01:03 +0200 |
| commit | 71b8e77935bc9b0a3afc97d322037f2549165d2f (patch) | |
| tree | a7e5e0cfec35b0ab30d6369d7b9ecd9eb3ddd48b /FL/Fl_Preferences.H | |
| parent | 2bbdd4946561444fffba2bf047b0926a2cf9f5fe (diff) | |
FLUID: adds greatly enhanced Shell Commands (#774)
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
Diffstat (limited to 'FL/Fl_Preferences.H')
| -rw-r--r-- | FL/Fl_Preferences.H | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H index 5f988a344..6aee47878 100644 --- a/FL/Fl_Preferences.H +++ b/FL/Fl_Preferences.H @@ -22,6 +22,7 @@ # include <stdio.h> # include "Fl_Export.H" +# include "fl_attr.h" class Fl_String; @@ -131,6 +132,7 @@ public: ROOT_MASK = 0x00FF, ///< Mask for the values above CORE = 0x0100, ///< OR'd by FLTK to read and write core library preferences and options C_LOCALE = 0x1000, ///< This flag should always be set, it makes sure that floating point + CLEAR = 0x2000, ///< Don't read a possibly existing database. Instead, start with an empty set of preferences. ///< values are written correctly independently of the current locale SYSTEM_L = SYSTEM | C_LOCALE, ///< Preferences are used system-wide, locale independent USER_L = USER | C_LOCALE, ///< Preferences apply only to the current user, locale independent @@ -188,7 +190,7 @@ public: static Root filename( char *buffer, size_t buffer_size, Root root, const char *vendor, const char *application ); Fl_Preferences( Root root, const char *vendor, const char *application ); - Fl_Preferences( const char *path, const char *vendor, const char *application ); + Fl_Preferences( const char *path, const char *vendor, const char *application, Root flags ); Fl_Preferences( Fl_Preferences &parent, const char *group ); Fl_Preferences( Fl_Preferences *parent, const char *group ); Fl_Preferences( Fl_Preferences &parent, int groupIndex ); @@ -197,6 +199,9 @@ public: Fl_Preferences( ID id ); virtual ~Fl_Preferences(); + FL_DEPRECATED("in 1.4.0 - use Fl_Preferences(path, vendor, application, flags) instead", + Fl_Preferences( const char *path, const char *vendor, const char *application ) ); + Root filename( char *buffer, size_t buffer_size); /** Return an ID that can later be reused to open more references to this dataset. @@ -374,7 +379,7 @@ public: // older Sun compilers need this (public definition of the following cl Root root_type_; public: RootNode( Fl_Preferences *, Root root, const char *vendor, const char *application ); - RootNode( Fl_Preferences *, const char *path, const char *vendor, const char *application ); + RootNode( Fl_Preferences *, const char *path, const char *vendor, const char *application, Root flags ); RootNode( Fl_Preferences * ); ~RootNode(); int read(); |
