From 55dd77e04a8cef0e14648d6d8fb18cdc18695931 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Fri, 21 Aug 2009 18:13:34 -0300 Subject: - QtDocGenerator is now a GeneratorRunner plugin. - A lot of methods moved from boostpythongenerator to the generator class. --- generator.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'generator.h') diff --git a/generator.h b/generator.h index f9e0c714e..529d9b249 100644 --- a/generator.h +++ b/generator.h @@ -39,6 +39,8 @@ extern "C" Q_DECL_EXPORT GeneratorList getGenerators()\ return GeneratorList() << X;\ }\ +QTextStream& formatCode(QTextStream &s, const QString& code, Indentor &indentor); + /** * Base class for all generators. The default implementations does nothing, * you must subclass this to create your own generators. @@ -241,6 +243,9 @@ public: return QString(m_packageName).remove(0, m_packageName.lastIndexOf('.') + 1); } + /// returns the code snips of a function + CodeSnipList getCodeSnips(const AbstractMetaFunction *func); + protected: QString m_packageName; @@ -252,6 +257,12 @@ protected: */ virtual QString fileNameForClass(const AbstractMetaClass* metaClass) const = 0; + static FunctionModificationList functionModifications(const AbstractMetaFunction *meta_function); + AbstractMetaFunctionList filterFunctions(const AbstractMetaClass *cppClass); + AbstractMetaFunctionList queryFunctions(const AbstractMetaClass *cpp_class, bool all_function = false); + AbstractMetaFunctionList queryGlobalOperators(const AbstractMetaClass *cpp_class); + AbstractMetaFunctionList sortContructor(AbstractMetaFunctionList list); + virtual bool doSetup(const QMap& args) = 0; /** -- cgit v1.2.3