diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-21 18:13:34 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-25 16:23:16 -0300 |
commit | 55dd77e04a8cef0e14648d6d8fb18cdc18695931 (patch) | |
tree | d6533b9b8e741050a6c6ccd9c5abab561767739d /generator.h | |
parent | 9682566c558674609a77540978e36db3dd174303 (diff) |
- QtDocGenerator is now a GeneratorRunner plugin.
- A lot of methods moved from boostpythongenerator to the generator class.
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 11 |
1 files changed, 11 insertions, 0 deletions
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<QString, QString>& args) = 0; /** |