Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSFormRecordDB_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 AQSFORMRECORDDB_P_H_ 00020 #define AQSFORMRECORDDB_P_H_ 00021 00022 #include "AQSFormDB_p.h" 00023 00024 class AQSFormRecordDB : public AQSWidget 00025 { 00026 Q_OBJECT 00027 00028 AQ_DECLARE_AQS_AQOBJECT(FormRecordDB, Widget); 00029 00030 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00031 public slots: 00032 FLSqlCursor *cursor() const; 00033 QWidget *mainWidget() const; 00034 void setIdMDI(const QString &); 00035 QString idMDI() const; 00036 virtual void setMainWidget(QWidget *); 00037 virtual void setMainWidget(); 00038 QImage *snapShot(); 00039 void saveSnapShot(const QString &); 00040 00041 protected: 00042 static void *construct(const QSArgumentList &args) { 00043 QMap<int, QStringList> candidates; 00044 candidates[1].append(QString::fromLatin1("FLSqlCursor*")); 00045 candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString")); 00046 candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*")); 00047 candidates[4].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*,bool")); 00048 QString sgt(castArgsSignature(args, candidates)); 00049 if (sgt == QString::fromLatin1("FLSqlCursor*")) 00050 return new AQFormRecordDB(argValue<FLSqlCursor *>(args[0])); 00051 if (sgt == QString::fromLatin1("FLSqlCursor*,QString")) 00052 return new AQFormRecordDB(argValue<FLSqlCursor *>(args[0]), 00053 *(argValue<QString *>(args[1]))); 00054 if (sgt == QString::fromLatin1("FLSqlCursor*,QString,QWidget*")) 00055 return new AQFormRecordDB(argValue<FLSqlCursor *>(args[0]), 00056 *(argValue<QString *>(args[1])), 00057 argValue<QWidget *>(args[2])); 00058 if (sgt == QString::fromLatin1("FLSqlCursor*,QString,QWidget*,bool")) 00059 return new AQFormRecordDB(argValue<FLSqlCursor *>(args[0]), 00060 *(argValue<QString *>(args[1])), 00061 argValue<QWidget *>(args[2]), 00062 args[3].variant().toBool()); 00063 return 0; 00064 } 00065 00066 public: 00067 static QMap<int, QStringList> candidateConstructors() { 00068 QMap<int, QStringList> candidates; 00069 candidates[1].append(QString::fromLatin1("FLSqlCursor*")); 00070 candidates[2].append(QString::fromLatin1("FLSqlCursor*,QString")); 00071 candidates[3].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*")); 00072 candidates[4].append(QString::fromLatin1("FLSqlCursor*,QString,QWidget*,bool")); 00073 return candidates; 00074 } 00075 //@AQ_END_DEF_PUB_SLOTS@ 00076 }; 00077 00078 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00079 inline FLSqlCursor *AQSFormRecordDB::cursor() const 00080 { 00081 AQ_CALL_RET(cursor()); 00082 } 00083 inline QWidget *AQSFormRecordDB::mainWidget() const 00084 { 00085 AQ_CALL_RET(mainWidget()); 00086 } 00087 inline void AQSFormRecordDB::setIdMDI(const QString &arg0) 00088 { 00089 AQ_CALL_VOID(setIdMDI(arg0)); 00090 } 00091 inline QString AQSFormRecordDB::idMDI() const 00092 { 00093 AQ_CALL_RET_V(idMDI(), QString); 00094 } 00095 inline void AQSFormRecordDB::setMainWidget(QWidget *arg0) 00096 { 00097 AQ_CALL_VOID(setMainWidget(arg0)); 00098 } 00099 inline void AQSFormRecordDB::setMainWidget() 00100 { 00101 AQ_CALL_VOID(setMainWidget()); 00102 } 00103 inline QImage *AQSFormRecordDB::snapShot() 00104 { 00105 AQ_CALL_RET_PTR(snapShot(), QImage); 00106 } 00107 inline void AQSFormRecordDB::saveSnapShot(const QString &arg0) 00108 { 00109 AQ_CALL_VOID(saveSnapShot(arg0)); 00110 } 00111 //@AQ_END_IMP_PUB_SLOTS@ 00112 00113 #endif /* AQSFORMRECORDDB_P_H_ */ 00114 // @AQWIDGET@