Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSDialog_p.h 00003 ------------------- 00004 begin : 09/02/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 AQSDIALOG_P_H_ 00020 #define AQSDIALOG_P_H_ 00021 00022 #include "AQSWidget_p.h" 00023 #include <qdialog.h> 00024 00025 class AQSDialog : public AQSWidget 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_OBJECT(Dialog, Widget); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 int result() const; 00034 void show(); 00035 void setOrientation(uint); 00036 void setExtension(QWidget *); 00037 QWidget *extension() const; 00038 00039 protected: 00040 static void *construct(const QSArgumentList &args) { 00041 QMap<int, QStringList> candidates; 00042 candidates[0].append(QString::null); 00043 candidates[1].append(QString::fromLatin1("QWidget*")); 00044 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00045 candidates[3].append(QString::fromLatin1("QWidget*,QString,bool")); 00046 candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags")); 00047 candidates[0].append(QString::null); 00048 QString sgt(castArgsSignature(args, candidates)); 00049 if (sgt.isEmpty()) 00050 return new QDialog; 00051 if (sgt == QString::fromLatin1("QWidget*")) 00052 return new QDialog(argValue<QWidget *>(args[0])); 00053 if (sgt == QString::fromLatin1("QWidget*,QString")) 00054 return new QDialog(argValue<QWidget *>(args[0]), 00055 *(argValue<QString *>(args[1]))); 00056 if (sgt == QString::fromLatin1("QWidget*,QString,bool")) 00057 return new QDialog(argValue<QWidget *>(args[0]), 00058 *(argValue<QString *>(args[1])), 00059 args[2].variant().toBool()); 00060 if (sgt == QString::fromLatin1("QWidget*,QString,bool,WFlags")) 00061 return new QDialog(argValue<QWidget *>(args[0]), 00062 *(argValue<QString *>(args[1])), 00063 args[2].variant().toBool(), 00064 static_cast<WFlags>(args[3].variant().toUInt())); 00065 if (sgt.isEmpty()) 00066 return new QDialog; 00067 return 0; 00068 } 00069 00070 public: 00071 static QMap<int, QStringList> candidateConstructors() { 00072 QMap<int, QStringList> candidates; 00073 candidates[0].append(QString::null); 00074 candidates[1].append(QString::fromLatin1("QWidget*")); 00075 candidates[2].append(QString::fromLatin1("QWidget*,QString")); 00076 candidates[3].append(QString::fromLatin1("QWidget*,QString,bool")); 00077 candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags")); 00078 candidates[0].append(QString::null); 00079 return candidates; 00080 } 00081 //@AQ_END_DEF_PUB_SLOTS@ 00082 }; 00083 00084 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00085 inline int AQSDialog::result() const 00086 { 00087 AQ_CALL_RET_V(result(), int); 00088 } 00089 inline void AQSDialog::show() 00090 { 00091 AQ_CALL_VOID(show()); 00092 } 00093 inline void AQSDialog::setOrientation(uint arg0) 00094 { 00095 AQ_CALL_VOID(setOrientation(static_cast<Qt::Orientation>(arg0))); 00096 } 00097 inline void AQSDialog::setExtension(QWidget *arg0) 00098 { 00099 AQ_CALL_VOID(setExtension(arg0)); 00100 } 00101 inline QWidget *AQSDialog::extension() const 00102 { 00103 AQ_CALL_RET(extension()); 00104 } 00105 //@AQ_END_IMP_PUB_SLOTS@ 00106 00107 #endif /* AQSDIALOG_P_H_ */ 00108 // @AQSWIDGET@