Commit 6d118eec authored by Dimitri van Heesch's avatar Dimitri van Heesch

Added more info to the context

parent 6dbf32d5
...@@ -4769,3 +4769,9 @@ const ExampleSDict *ClassDef::exampleList() const ...@@ -4769,3 +4769,9 @@ const ExampleSDict *ClassDef::exampleList() const
{ {
return m_impl->exampleSDict; return m_impl->exampleSDict;
} }
bool ClassDef::subGrouping() const
{
return m_impl->subGrouping;
}
...@@ -317,6 +317,7 @@ class ClassDef : public Definition ...@@ -317,6 +317,7 @@ class ClassDef : public Definition
const ExampleSDict *exampleList() const; const ExampleSDict *exampleList() const;
bool hasExamples() const; bool hasExamples() const;
QCString getMemberListFileName() const; QCString getMemberListFileName() const;
bool subGrouping() const;
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
// --- setters ---- // --- setters ----
......
This diff is collapsed.
...@@ -31,6 +31,9 @@ struct Argument; ...@@ -31,6 +31,9 @@ struct Argument;
class ArgumentList; class ArgumentList;
class MemberNameInfoSDict; class MemberNameInfoSDict;
struct MemberInfo; struct MemberInfo;
class MemberGroup;
class MemberGroupSDict;
class MemberGroupList;
//---------------------------------------------------- //----------------------------------------------------
...@@ -650,6 +653,7 @@ class InheritanceListContext : public TemplateListIntf ...@@ -650,6 +653,7 @@ class InheritanceListContext : public TemplateListIntf
class MemberListContext : public TemplateListIntf class MemberListContext : public TemplateListIntf
{ {
public: public:
MemberListContext();
MemberListContext(const MemberList *ml); MemberListContext(const MemberList *ml);
MemberListContext(MemberSDict *ml,bool doSort); MemberListContext(MemberSDict *ml,bool doSort);
~MemberListContext(); ~MemberListContext();
...@@ -664,12 +668,50 @@ class MemberListContext : public TemplateListIntf ...@@ -664,12 +668,50 @@ class MemberListContext : public TemplateListIntf
Private *p; Private *p;
}; };
//----------------------------------------------------
class MemberGroupInfoContext : public TemplateStructIntf
{
public:
MemberGroupInfoContext(Definition *def,const QCString &relPath,const MemberGroup *mg);
~MemberGroupInfoContext();
// TemplateStructIntf methods
virtual TemplateVariant get(const char *name) const;
private:
class Private;
Private *p;
};
//----------------------------------------------------
class MemberGroupListContext : public TemplateListIntf
{
public:
MemberGroupListContext();
MemberGroupListContext(Definition *def,const QCString &relPath,const MemberGroupList *list);
MemberGroupListContext(Definition *def,const QCString &relPath,const MemberGroupSDict *mgDict,bool subGrouping);
~MemberGroupListContext();
// TemplateListIntf
virtual int count() const;
virtual TemplateVariant at(int index) const;
virtual TemplateListIntf::ConstIterator *createIterator() const;
private:
class Private;
Private *p;
};
//---------------------------------------------------- //----------------------------------------------------
class MemberListInfoContext : public TemplateStructIntf class MemberListInfoContext : public TemplateStructIntf
{ {
public: public:
MemberListInfoContext(const MemberList *ml,const QCString &title, MemberListInfoContext(Definition *def,const QCString &relPath,
const MemberList *ml,const QCString &title,
const QCString &subtitle=QCString()); const QCString &subtitle=QCString());
~MemberListInfoContext(); ~MemberListInfoContext();
...@@ -702,6 +744,7 @@ class MemberInfoContext : public TemplateStructIntf ...@@ -702,6 +744,7 @@ class MemberInfoContext : public TemplateStructIntf
class AllMembersListContext : public TemplateListIntf class AllMembersListContext : public TemplateListIntf
{ {
public: public:
AllMembersListContext();
AllMembersListContext(const MemberNameInfoSDict *ml); AllMembersListContext(const MemberNameInfoSDict *ml);
~AllMembersListContext(); ~AllMembersListContext();
...@@ -736,6 +779,7 @@ class ArgumentContext : public TemplateStructIntf ...@@ -736,6 +779,7 @@ class ArgumentContext : public TemplateStructIntf
class ArgumentListContext : public TemplateListIntf class ArgumentListContext : public TemplateListIntf
{ {
public: public:
ArgumentListContext();
ArgumentListContext(const ArgumentList *al,Definition *def,const QCString &relPath); ArgumentListContext(const ArgumentList *al,Definition *def,const QCString &relPath);
~ArgumentListContext(); ~ArgumentListContext();
......
...@@ -61,8 +61,8 @@ class MemberGroup ...@@ -61,8 +61,8 @@ class MemberGroup
MemberListType lt, MemberListType lt,
ClassDef *inheritedFrom,const QCString &inheritId); ClassDef *inheritedFrom,const QCString &inheritId);
QCString documentation() { return doc; } QCString documentation() const { return doc; }
bool allMembersInSameSection() { return inSameSection; } bool allMembersInSameSection() const { return inSameSection; }
void addToDeclarationSection(); void addToDeclarationSection();
int countDecMembers(GroupDef *gd=0); int countDecMembers(GroupDef *gd=0);
int countDocMembers(); int countDocMembers();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment