summaryrefslogtreecommitdiffstats
path: root/src/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.h')
-rw-r--r--src/layout.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/layout.h b/src/layout.h
index b1facf5..3260a28 100644
--- a/src/layout.h
+++ b/src/layout.h
@@ -162,8 +162,7 @@ struct LayoutNavEntry
QCString title() const { return m_title; }
QCString intro() const { return m_intro; }
QCString url() const;
- bool visible() { return m_visible; }
- void clear() { m_children.clear(); }
+ bool visible() const { return m_visible; }
void addChild(LayoutNavEntry *e) { m_children.append(e); }
void prependChild(LayoutNavEntry *e) { m_children.prepend(e); }
const QList<LayoutNavEntry> &children() const { return m_children; }
@@ -172,6 +171,7 @@ struct LayoutNavEntry
private:
LayoutNavEntry() : m_parent(0), m_kind(None), m_visible(FALSE) {}
LayoutNavEntry *m_parent;
+ void clear() { m_children.clear(); }
Kind m_kind;
bool m_visible;
QCString m_baseFile;
@@ -179,6 +179,7 @@ struct LayoutNavEntry
QCString m_intro;
QList<LayoutNavEntry> m_children;
friend class LayoutDocManager;
+ friend class LayoutParser;
};
/** @brief Singleton providing access to the (user configurable) layout of the documentation */
@@ -203,6 +204,7 @@ class LayoutDocManager
/** Parses a user provided layout */
void parse(const char *fileName);
void init();
+ void writeDefault(const char *fileName) const;
private:
void addEntry(LayoutPart p,LayoutDocEntry*e);
void clear(LayoutPart p);
@@ -212,7 +214,6 @@ class LayoutDocManager
friend class LayoutParser;
};
-void writeDefaultLayoutFile(const char *fileName);
#endif