summaryrefslogtreecommitdiff
path: root/FL/Fl_Preferences.H
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2010-12-05 00:38:16 +0000
committerGreg Ercolano <erco@seriss.com>2010-12-05 00:38:16 +0000
commit0abd2665f5d4773c5e65e2dedbb1c8bbe35d4379 (patch)
tree90d601cfa20db69fa913571683f97ca8ee0fb59c /FL/Fl_Preferences.H
parentf6975396a8c295eb8fe80dbbac62cf48848c4b56 (diff)
Reformatting for CMP: Indent fixes, bracing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Preferences.H')
-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
//