Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSProgressDialog_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSProgressDialog_p.h
00003  -------------------
00004  begin                : 18/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 AQSPROGRESSDIALOG_P_H_
00020 #define AQSPROGRESSDIALOG_P_H_
00021 
00022 #include "AQSDialog_p.h"
00023 #include <qprogressdialog.h>
00024 
00025 class AQSProgressDialog : public AQSDialog
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(ProgressDialog, Dialog);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void setLabel(QLabel *);
00034   void setCancelButton(QPushButton *);
00035   void setBar(QProgressBar *);
00036   virtual QSize sizeHint() const;
00037   QString labelText() const;
00038   void setAutoReset(bool);
00039   bool autoReset() const;
00040   void setAutoClose(bool);
00041   bool autoClose() const;
00042   int minimumDuration() const;
00043 
00044 protected:
00045   static void *construct(const QSArgumentList &args) {
00046     QMap<int, QStringList> candidates;
00047     candidates[0].append(QString::null);
00048     candidates[1].append(QString::fromLatin1("QWidget*"));
00049     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00050     candidates[3].append(QString::fromLatin1("QWidget*,QString,bool"));
00051     candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags"));
00052     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00053     candidates[4].append(QString::fromLatin1("QString,QString,int,QWidget*"));
00054     candidates[5].append(QString::fromLatin1("QString,QString,int,QWidget*,QString"));
00055     candidates[6].append(QString::fromLatin1("QString,QString,int,QWidget*,QString,bool"));
00056     candidates[7].append(QString::fromLatin1("QString,QString,int,QWidget*,QString,bool,WFlags"));
00057     QString sgt(castArgsSignature(args, candidates));
00058     if (sgt.isEmpty())
00059       return new QProgressDialog;
00060     if (sgt == QString::fromLatin1("QWidget*"))
00061       return new QProgressDialog(argValue<QWidget *>(args[0]));
00062     if (sgt == QString::fromLatin1("QWidget*,QString"))
00063       return new QProgressDialog(argValue<QWidget *>(args[0]),
00064                                  *(argValue<QString *>(args[1])));
00065     if (sgt == QString::fromLatin1("QWidget*,QString,bool"))
00066       return new QProgressDialog(argValue<QWidget *>(args[0]),
00067                                  *(argValue<QString *>(args[1])),
00068                                  args[2].variant().toBool());
00069     if (sgt == QString::fromLatin1("QWidget*,QString,bool,WFlags"))
00070       return new QProgressDialog(argValue<QWidget *>(args[0]),
00071                                  *(argValue<QString *>(args[1])),
00072                                  args[2].variant().toBool(),
00073                                  static_cast<WFlags>(args[3].variant().toUInt()));
00074     if (sgt == QString::fromLatin1("QString,QString,int"))
00075       return new QProgressDialog(*(argValue<QString *>(args[0])),
00076                                  *(argValue<QString *>(args[1])),
00077                                  args[2].variant().toInt());
00078     if (sgt == QString::fromLatin1("QString,QString,int,QWidget*"))
00079       return new QProgressDialog(*(argValue<QString *>(args[0])),
00080                                  *(argValue<QString *>(args[1])),
00081                                  args[2].variant().toInt(),
00082                                  argValue<QWidget *>(args[3]));
00083     if (sgt == QString::fromLatin1("QString,QString,int,QWidget*,QString"))
00084       return new QProgressDialog(*(argValue<QString *>(args[0])),
00085                                  *(argValue<QString *>(args[1])),
00086                                  args[2].variant().toInt(),
00087                                  argValue<QWidget *>(args[3]),
00088                                  *(argValue<QString *>(args[4])));
00089     if (sgt == QString::fromLatin1("QString,QString,int,QWidget*,QString,bool"))
00090       return new QProgressDialog(*(argValue<QString *>(args[0])),
00091                                  *(argValue<QString *>(args[1])),
00092                                  args[2].variant().toInt(),
00093                                  argValue<QWidget *>(args[3]),
00094                                  *(argValue<QString *>(args[4])),
00095                                  args[5].variant().toBool());
00096     if (sgt == QString::fromLatin1("QString,QString,int,QWidget*,QString,bool,WFlags"))
00097       return new QProgressDialog(*(argValue<QString *>(args[0])),
00098                                  *(argValue<QString *>(args[1])),
00099                                  args[2].variant().toInt(),
00100                                  argValue<QWidget *>(args[3]),
00101                                  *(argValue<QString *>(args[4])),
00102                                  args[5].variant().toBool(),
00103                                  static_cast<WFlags>(args[6].variant().toUInt()));
00104     return 0;
00105   }
00106 
00107 public:
00108   static QMap<int, QStringList> candidateConstructors() {
00109     QMap<int, QStringList> candidates;
00110     candidates[0].append(QString::null);
00111     candidates[1].append(QString::fromLatin1("QWidget*"));
00112     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00113     candidates[3].append(QString::fromLatin1("QWidget*,QString,bool"));
00114     candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags"));
00115     candidates[3].append(QString::fromLatin1("QString,QString,int"));
00116     candidates[4].append(QString::fromLatin1("QString,QString,int,QWidget*"));
00117     candidates[5].append(QString::fromLatin1("QString,QString,int,QWidget*,QString"));
00118     candidates[6].append(QString::fromLatin1("QString,QString,int,QWidget*,QString,bool"));
00119     candidates[7].append(QString::fromLatin1("QString,QString,int,QWidget*,QString,bool,WFlags"));
00120     return candidates;
00121   }
00122   //@AQ_END_DEF_PUB_SLOTS@
00123 };
00124 
00125 //@AQ_BEGIN_IMP_PUB_SLOTS@
00126 inline void AQSProgressDialog::setLabel(QLabel *arg0)
00127 {
00128   AQ_CALL_VOID(setLabel(arg0));
00129 }
00130 inline void AQSProgressDialog::setCancelButton(QPushButton *arg0)
00131 {
00132   AQ_CALL_VOID(setCancelButton(arg0));
00133 }
00134 inline void AQSProgressDialog::setBar(QProgressBar *arg0)
00135 {
00136   AQ_CALL_VOID(setBar(arg0));
00137 }
00138 inline QSize AQSProgressDialog::sizeHint() const
00139 {
00140   AQ_CALL_RET_V(sizeHint(), QSize);
00141 }
00142 inline QString AQSProgressDialog::labelText() const
00143 {
00144   AQ_CALL_RET_V(labelText(), QString);
00145 }
00146 inline void AQSProgressDialog::setAutoReset(bool arg0)
00147 {
00148   AQ_CALL_VOID(setAutoReset(arg0));
00149 }
00150 inline bool AQSProgressDialog::autoReset() const
00151 {
00152   AQ_CALL_RET_V(autoReset(), bool);
00153 }
00154 inline void AQSProgressDialog::setAutoClose(bool arg0)
00155 {
00156   AQ_CALL_VOID(setAutoClose(arg0));
00157 }
00158 inline bool AQSProgressDialog::autoClose() const
00159 {
00160   AQ_CALL_RET_V(autoClose(), bool);
00161 }
00162 inline int AQSProgressDialog::minimumDuration() const
00163 {
00164   AQ_CALL_RET_V(minimumDuration(), int);
00165 }
00166 //@AQ_END_IMP_PUB_SLOTS@
00167 
00168 #endif /* AQSPROGRESSDIALOG_P_H_ */
00169 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'