Classes | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
PageTreeContext::Private Class Reference

Classes

struct  Cachable
 

Public Member Functions

 Private (const PageSDict *pages)
 
TemplateVariant get (const char *n) const
 
TemplateVariant tree () const
 
TemplateVariant fileName () const
 
TemplateVariant relPath () const
 
TemplateVariant highlight () const
 
TemplateVariant subhighlight () const
 
TemplateVariant title () const
 
TemplateVariant maxDepth () const
 
TemplateVariant preferredDepth () const
 

Private Attributes

SharedPtr< NestingContextm_pageTree
 
Cachable m_cache
 

Static Private Attributes

static PropertyMapper< PageTreeContext::Privates_inst
 

Detailed Description

Definition at line 7250 of file context.cpp.

Constructor & Destructor Documentation

PageTreeContext::Private::Private ( const PageSDict pages)
inline

Definition at line 7253 of file context.cpp.

7254  {
7256  // Add pages
7257  if (pages)
7258  {
7259  m_pageTree->addPages(*pages,TRUE);
7260  }
7261 
7262  //%% PageNodeList tree:
7263  static bool init=FALSE;
7264  if (!init)
7265  {
7266  s_inst.addProperty("tree", &Private::tree);
7267  s_inst.addProperty("fileName", &Private::fileName);
7268  s_inst.addProperty("relPath", &Private::relPath);
7269  s_inst.addProperty("highlight", &Private::highlight);
7270  s_inst.addProperty("subhighlight", &Private::subhighlight);
7271  s_inst.addProperty("title", &Private::title);
7272  s_inst.addProperty("preferredDepth",&Private::preferredDepth);
7273  s_inst.addProperty("maxDepth", &Private::maxDepth);
7274  init=TRUE;
7275  }
7276  }
TemplateVariant preferredDepth() const
Definition: context.cpp:7314
static NestingContext * alloc(const NestingNodeContext *parent, int level)
Definition: context.h:536
const bool FALSE
Definition: qglobal.h:370
void addPages(const PageSDict &pages, bool rootOnly)
Definition: context.cpp:6663
init
Definition: train.py:42
TemplateVariant highlight() const
Definition: context.cpp:7293
static PropertyMapper< PageTreeContext::Private > s_inst
Definition: context.cpp:7334
TemplateVariant subhighlight() const
Definition: context.cpp:7297
TemplateVariant tree() const
Definition: context.cpp:7281
void reset(T *p=0)
Definition: context.cpp:113
TemplateVariant fileName() const
Definition: context.cpp:7285
TemplateVariant relPath() const
Definition: context.cpp:7289
TemplateVariant title() const
Definition: context.cpp:7301
TemplateVariant maxDepth() const
Definition: context.cpp:7305
SharedPtr< NestingContext > m_pageTree
Definition: context.cpp:7324
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

TemplateVariant PageTreeContext::Private::fileName ( ) const
inline

Definition at line 7285 of file context.cpp.

7286  {
7287  return "pages";
7288  }
TemplateVariant PageTreeContext::Private::get ( const char *  n) const
inline

Definition at line 7277 of file context.cpp.

7278  {
7279  return s_inst.get(this,n);
7280  }
static PropertyMapper< PageTreeContext::Private > s_inst
Definition: context.cpp:7334
std::void_t< T > n
TemplateVariant PageTreeContext::Private::highlight ( ) const
inline

Definition at line 7293 of file context.cpp.

7294  {
7295  return "pages";
7296  }
TemplateVariant PageTreeContext::Private::maxDepth ( ) const
inline

Definition at line 7305 of file context.cpp.

7306  {
7308  {
7311  }
7312  return m_cache.maxDepth;
7313  }
static int computeMaxDepth(const TemplateListIntf *list)
Definition: context.cpp:5840
T * get() const
Definition: context.cpp:111
SharedPtr< NestingContext > m_pageTree
Definition: context.cpp:7324
const bool TRUE
Definition: qglobal.h:371
TemplateVariant PageTreeContext::Private::preferredDepth ( ) const
inline

Definition at line 7314 of file context.cpp.

7315  {
7317  {
7320  }
7321  return m_cache.preferredDepth;
7322  }
int toInt() const
Definition: template.cpp:222
T * get() const
Definition: context.cpp:111
TemplateVariant maxDepth() const
Definition: context.cpp:7305
SharedPtr< NestingContext > m_pageTree
Definition: context.cpp:7324
static int computePreferredDepth(const TemplateListIntf *list, int maxDepth)
Definition: context.cpp:5880
const bool TRUE
Definition: qglobal.h:371
TemplateVariant PageTreeContext::Private::relPath ( ) const
inline

Definition at line 7289 of file context.cpp.

7290  {
7291  return "";
7292  }
TemplateVariant PageTreeContext::Private::subhighlight ( ) const
inline

Definition at line 7297 of file context.cpp.

7298  {
7299  return "";
7300  }
TemplateVariant PageTreeContext::Private::title ( ) const
inline

Definition at line 7301 of file context.cpp.

7302  {
7303  return theTranslator->trRelatedPages();
7304  }
virtual QCString trRelatedPages()=0
Translator * theTranslator
Definition: language.cpp:157
TemplateVariant PageTreeContext::Private::tree ( ) const
inline

Definition at line 7281 of file context.cpp.

7282  {
7283  return m_pageTree.get();
7284  }
T * get() const
Definition: context.cpp:111
SharedPtr< NestingContext > m_pageTree
Definition: context.cpp:7324

Member Data Documentation

Cachable PageTreeContext::Private::m_cache
mutableprivate

Definition at line 7333 of file context.cpp.

SharedPtr<NestingContext> PageTreeContext::Private::m_pageTree
private

Definition at line 7324 of file context.cpp.

PropertyMapper< PageTreeContext::Private > PageTreeContext::Private::s_inst
staticprivate

Definition at line 7334 of file context.cpp.


The documentation for this class was generated from the following file: