summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Preferences.H33
1 files changed, 12 insertions, 21 deletions
diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H
index db7b0cd59..c38cb0fd6 100644
--- a/FL/Fl_Preferences.H
+++ b/FL/Fl_Preferences.H
@@ -32,8 +32,7 @@
# define Fl_Preferences_H
# include <stdio.h>
-# include "Fl_Export.H"
-
+# include "Fl_Export.H"
/**
\brief Fl_Preferences provides methods to store user
@@ -67,11 +66,9 @@
current chracter set or code page which renders them incompatible
for text entries using international characters.
*/
-class FL_EXPORT Fl_Preferences
-{
-
-public:
+class FL_EXPORT Fl_Preferences {
+public:
/**
Define the scope of the preferences.
*/
@@ -171,8 +168,7 @@ public:
char *data_;
- public:
-
+ public:
Name( unsigned int n );
Name( const char *format, ... );
@@ -185,13 +181,11 @@ public:
};
/** \internal An entry associates a preference name to its corresponding value */
- struct Entry
- {
+ struct Entry {
char *name, *value;
};
-private:
-
+private:
Fl_Preferences() : node(0), rootNode(0) { }
Fl_Preferences &operator=(const Fl_Preferences&);
@@ -201,12 +195,12 @@ private:
class RootNode;
- class FL_EXPORT Node // a node contains a list to all its entries
- { // and all means to manage the tree structure
+ class FL_EXPORT Node { // a node contains a list to all its entries
+ // and all means to manage the tree structure
Node *child_, *next_;
- union { // these two are mutually exclusive
- Node *parent_; // top_ bit clear
- RootNode *root_; // top_ bit set
+ union { // these two are mutually exclusive
+ Node *parent_; // top_ bit clear
+ RootNode *root_; // top_ bit set
};
char *path_;
Entry *entry_;
@@ -255,8 +249,7 @@ private:
};
friend class Node;
- class FL_EXPORT RootNode // the root node manages file paths and basic reading and writing
- {
+ class FL_EXPORT RootNode { // the root node manages file paths and basic reading and writing
Fl_Preferences *prefs_;
char *filename_;
char *vendor_, *application_;
@@ -272,12 +265,10 @@ private:
friend class RootNode;
protected:
-
Node *node;
RootNode *rootNode;
};
-
#endif // !Fl_Preferences_H
//