Classes | Functions
layout.h File Reference
#include <qlist.h>
#include "types.h"

Go to the source code of this file.

Classes

struct  LayoutDocEntry
 Base class representing a piece of a documentation page. More...
 
struct  LayoutDocEntrySimple
 Represents of a piece of a documentation page without configurable parts. More...
 
struct  LayoutDocEntrySection
 
struct  LayoutDocEntryMemberDecl
 Represents of a member declaration list with configurable title and subtitle. More...
 
struct  LayoutDocEntryMemberDef
 Represents of a member definition list with configurable title. More...
 
struct  LayoutNavEntry
 Base class for the layout of a navigation item at the top of the HTML pages. More...
 
class  LayoutDocManager
 Singleton providing access to the (user configurable) layout of the documentation. More...
 

Functions

void writeDefaultLayoutFile (const char *fileName)
 

Function Documentation

void writeDefaultLayoutFile ( const char *  fileName)

Definition at line 1397 of file layout.cpp.

1398 {
1399  QFile f(fileName);
1400  bool ok = openOutputFile(fileName,f);
1401  if (!ok)
1402  {
1403  err("Failed to open file %s for writing!\n",fileName);
1404  return;
1405  }
1406  QTextStream t(&f);
1407  t << substitute(layout_default,"$doxygenversion",versionString);
1408 }
bool openOutputFile(const char *outFile, QFile &f)
Definition: util.cpp:8588
fileName
Definition: dumpTree.py:9
char versionString[]
Definition: version.cpp:1
void err(const char *fmt,...)
Definition: message.cpp:226
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
Definition: qtextstream.h:53
static const char layout_default[]
Definition: layout.cpp:35
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088