Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSFormDB_p.h 00003 ------------------- 00004 begin : 19/04/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSFORMDB_P_H_ 00020 #define AQSFORMDB_P_H_ 00021 00022 #include "AQSWidget_p.h" 00023 #include "AQSImage_p.h" 00024 #include "AQObjects.h" 00025 00026 class AQSFormDB : public AQSWidget 00027 { 00028 Q_OBJECT 00029 00030 AQ_DECLARE_AQS_AQOBJECT(FormDB, Widget); 00031 00032 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00033 public slots: 00034 virtual void setCursor(FLSqlCursor *); 00035 FLSqlCursor *cursor() const; 00036 QWidget *mainWidget() const; 00037 void setIdMDI(const QString &); 00038 QString idMDI() const; 00039 virtual void setMainWidget(QWidget *); 00040 virtual void setMainWidget(); 00041 virtual void setMainWidget(const QString &); 00042 QImage *snapShot(); 00043 void saveSnapShot(const QString &); 00044 00045 protected: 00046 static void *construct(const QSArgumentList &args) { 00047 QMap<int, QStringList> candidates; 00048 candidates[0].append(QString::null); 00049 candidates[1].append(QString::fromLatin1("QWidget*")); 00050 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00051 candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags")); 00052 candidates[1].append(QString::fromLatin1("QString")); 00053 candidates[2].append(QString::fromLatin1("QString,QWidget*")); 00054 candidates[3].append(QString::fromLatin1("QString,QWidget*,WFlags")); 00055 candidates[1].append(QString::fromLatin1("FLSqlCursor*")); 00056 candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString")); 00057 candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*")); 00058 candidates[4].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*,WFlags")); 00059 QString sgt(castArgsSignature(args, candidates)); 00060 if (sgt.isEmpty()) 00061 return new AQFormDB; 00062 if (sgt == QString::fromLatin1("QWidget*")) 00063 return new AQFormDB(argValue<QWidget *>(args[0])); 00064 if (sgt == QString::fromLatin1("QWidget*,QString")) 00065 return new AQFormDB(argValue<QWidget *>(args[0]), 00066 *(argValue<QString *>(args[1]))); 00067 if (sgt == QString::fromLatin1("QWidget*,QString,WFlags")) 00068 return new AQFormDB(argValue<QWidget *>(args[0]), 00069 *(argValue<QString *>(args[1])), 00070 static_cast<WFlags>(args[2].variant().toUInt())); 00071 if (sgt == QString::fromLatin1("QString")) 00072 return new AQFormDB(*(argValue<QString *>(args[0]))); 00073 if (sgt == QString::fromLatin1("QString,QWidget*")) 00074 return new AQFormDB(*(argValue<QString *>(args[0])), 00075 argValue<QWidget *>(args[1])); 00076 if (sgt == QString::fromLatin1("QString,QWidget*,WFlags")) 00077 return new AQFormDB(*(argValue<QString *>(args[0])), 00078 argValue<QWidget *>(args[1]), 00079 static_cast<WFlags>(args[2].variant().toUInt())); 00080 if (sgt == QString::fromLatin1("FLSqlCursor*")) 00081 return new AQFormDB(argValue<FLSqlCursor *>(args[0])); 00082 if (sgt == QString::fromLatin1("FLSqlCursor*,QString")) 00083 return new AQFormDB(argValue<FLSqlCursor *>(args[0]), 00084 *(argValue<QString *>(args[1]))); 00085 if (sgt == QString::fromLatin1("FLSqlCursor*,QString,QWidget*")) 00086 return new AQFormDB(argValue<FLSqlCursor *>(args[0]), 00087 *(argValue<QString *>(args[1])), 00088 argValue<QWidget *>(args[2])); 00089 if (sgt == QString::fromLatin1("FLSqlCursor*,QString,QWidget*,WFlags")) 00090 return new AQFormDB(argValue<FLSqlCursor *>(args[0]), 00091 *(argValue<QString *>(args[1])), 00092 argValue<QWidget *>(args[2]), 00093 static_cast<WFlags>(args[3].variant().toUInt())); 00094 return 0; 00095 } 00096 00097 public: 00098 static QMap<int, QStringList> candidateConstructors() { 00099 QMap<int, QStringList> candidates; 00100 candidates[0].append(QString::null); 00101 candidates[1].append(QString::fromLatin1("QWidget*")); 00102 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00103 candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags")); 00104 candidates[1].append(QString::fromLatin1("QString")); 00105 candidates[2].append(QString::fromLatin1("QString,QWidget*")); 00106 candidates[3].append(QString::fromLatin1("QString,QWidget*,WFlags")); 00107 candidates[1].append(QString::fromLatin1("FLSqlCursor*")); 00108 candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString")); 00109 candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*")); 00110 candidates[4].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*,WFlags")); 00111 return candidates; 00112 } 00113 //@AQ_END_DEF_PUB_SLOTS@ 00114 }; 00115 00116 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00117 inline void AQSFormDB::setCursor(FLSqlCursor *arg0) 00118 { 00119 AQ_CALL_VOID(setCursor(arg0)); 00120 } 00121 inline FLSqlCursor *AQSFormDB::cursor() const 00122 { 00123 AQ_CALL_RET(cursor()); 00124 } 00125 inline QWidget *AQSFormDB::mainWidget() const 00126 { 00127 AQ_CALL_RET(mainWidget()); 00128 } 00129 inline void AQSFormDB::setIdMDI(const QString &arg0) 00130 { 00131 AQ_CALL_VOID(setIdMDI(arg0)); 00132 } 00133 inline QString AQSFormDB::idMDI() const 00134 { 00135 AQ_CALL_RET_V(idMDI(), QString); 00136 } 00137 inline void AQSFormDB::setMainWidget(QWidget *arg0) 00138 { 00139 AQ_CALL_VOID(setMainWidget(arg0)); 00140 } 00141 inline void AQSFormDB::setMainWidget() 00142 { 00143 AQ_CALL_VOID(setMainWidget()); 00144 } 00145 inline void AQSFormDB::setMainWidget(const QString &arg0) 00146 { 00147 AQ_CALL_VOID(setMainWidget(arg0)); 00148 } 00149 inline QImage *AQSFormDB::snapShot() 00150 { 00151 AQ_CALL_RET_PTR(snapShot(), QImage); 00152 } 00153 inline void AQSFormDB::saveSnapShot(const QString &arg0) 00154 { 00155 AQ_CALL_VOID(saveSnapShot(arg0)); 00156 } 00157 //@AQ_END_IMP_PUB_SLOTS@ 00158 00159 #endif /* AQSFORMDB_P_H_ */ 00160 // @AQWIDGET@