summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartObjectFactory.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
commitdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch)
tree99e72842fe687baea16376a147619b6048d7e441 /libkdchart/KDChartObjectFactory.h
downloadkmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz
kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdchart/KDChartObjectFactory.h')
-rw-r--r--libkdchart/KDChartObjectFactory.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/libkdchart/KDChartObjectFactory.h b/libkdchart/KDChartObjectFactory.h
new file mode 100644
index 0000000..15fdb94
--- /dev/null
+++ b/libkdchart/KDChartObjectFactory.h
@@ -0,0 +1,37 @@
+#ifndef KDCHARTQSA_H
+#define KDCHARTQSA_H
+#include <qsobjectfactory.h>
+
+class KDChartObjectFactory :public QSObjectFactory {
+
+public:
+ KDChartObjectFactory();
+ virtual QObject* create( const QString& className, const QSArgumentList& args, QObject* context );
+protected:
+ QObject* createKDChartWidget( const QSArgumentList& args );
+ QObject* createKDChartTableData( const QSArgumentList& args );
+ QObject* createQDateTime( const QSArgumentList& args );
+ QObject* createQDate( const QSArgumentList& args );
+ QObject* createQTime( const QSArgumentList& args );
+ QObject* createKDChartTextPiece( const QSArgumentList& args );
+ QObject* createQFont( const QSArgumentList& args );
+ QObject* createKDChartCustomBox( const QSArgumentList& args );
+ QObject* createQColor(const QSArgumentList& args );
+ QObject* createKDChartPropertySet(const QSArgumentList& args );
+
+ bool isNumber( const QVariant& );
+ bool checkArgCount( const QString& className, int count, int min, int max );
+ bool checkArgsIsQtClass( const QSArgumentList& args, int index, const char* expected, const char* constructing );
+ bool getString( const QSArgumentList& arg, int index, QString* str, const char* constructing );
+
+ bool getNumber( const QSArgumentList& args, int index, double* number, const char* constructing );
+ bool getNumber( const QSArgumentList& args, int index, int* number, const char* constructing );
+ bool getNumber( const QSArgumentList& args, int index, uint* number, const char* constructing );
+
+ bool getBool( const QSArgumentList& arg, int index, bool* b, const char* constructing );
+ bool checkIsQtVariant( const QSArgumentList& arg, int index, QVariant::Type expected, const QString& variantName, const char* constructing );
+};
+
+
+#endif /* KDCHARTQSA_H */
+