Reformatting for CMP: Indent fixes, bracing.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2010-12-05 00:38:16 +00:00
parent f6975396a8
commit 0abd2665f5
2 changed files with 192 additions and 393 deletions

View File

@ -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
//

File diff suppressed because it is too large Load Diff