Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSWizard_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSWizard_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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSWIZARD_P_H_
00020 #define AQSWIZARD_P_H_
00021 
00022 #include "AQSDialog_p.h"
00023 #include <qwizard.h>
00024 
00025 class AQSWizard : public AQSDialog
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(Wizard, Dialog);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void addPage(QWidget *, const QString &);
00034   void insertPage(QWidget *, const QString &, int);
00035   void removePage(QWidget *);
00036   QString title(QWidget *) const;
00037   void setTitle(QWidget *, const QString &);
00038   void showPage(QWidget *);
00039   QWidget *currentPage() const;
00040   QWidget *page(int) const;
00041   int pageCount() const;
00042   int indexOf(QWidget *) const;
00043   bool appropriate(QWidget *) const;
00044   void setAppropriate(QWidget *, bool);
00045   QPushButton *backButton() const;
00046   QPushButton *nextButton() const;
00047   QPushButton *finishButton() const;
00048   QPushButton *cancelButton() const;
00049   QPushButton *helpButton() const;
00050 
00051 protected:
00052   static void *construct(const QSArgumentList &args) {
00053     QMap<int, QStringList> candidates;
00054     candidates[0].append(QString::null);
00055     candidates[1].append(QString::fromLatin1("QWidget*"));
00056     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00057     candidates[3].append(QString::fromLatin1("QWidget*,QString,bool"));
00058     candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags"));
00059     QString sgt(castArgsSignature(args, candidates));
00060     if (sgt.isEmpty())
00061       return new QWizard;
00062     if (sgt == QString::fromLatin1("QWidget*"))
00063       return new QWizard(argValue<QWidget *>(args[0]));
00064     if (sgt == QString::fromLatin1("QWidget*,QString"))
00065       return new QWizard(argValue<QWidget *>(args[0]),
00066                          *(argValue<QString *>(args[1])));
00067     if (sgt == QString::fromLatin1("QWidget*,QString,bool"))
00068       return new QWizard(argValue<QWidget *>(args[0]),
00069                          *(argValue<QString *>(args[1])),
00070                          args[2].variant().toBool());
00071     if (sgt == QString::fromLatin1("QWidget*,QString,bool,WFlags"))
00072       return new QWizard(argValue<QWidget *>(args[0]),
00073                          *(argValue<QString *>(args[1])),
00074                          args[2].variant().toBool(),
00075                          static_cast<WFlags>(args[3].variant().toUInt()));
00076     return 0;
00077   }
00078 
00079 public:
00080   static QMap<int, QStringList> candidateConstructors() {
00081     QMap<int, QStringList> candidates;
00082     candidates[0].append(QString::null);
00083     candidates[1].append(QString::fromLatin1("QWidget*"));
00084     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00085     candidates[3].append(QString::fromLatin1("QWidget*,QString,bool"));
00086     candidates[4].append(QString::fromLatin1("QWidget*,QString,bool,WFlags"));
00087     return candidates;
00088   }
00089   //@AQ_END_DEF_PUB_SLOTS@
00090 };
00091 
00092 //@AQ_BEGIN_IMP_PUB_SLOTS@
00093 inline void AQSWizard::addPage(QWidget *arg0,  const QString &arg1)
00094 {
00095   AQ_CALL_VOID(addPage(arg0, arg1));
00096 }
00097 inline void AQSWizard::insertPage(QWidget *arg0,  const QString &arg1,  int arg2)
00098 {
00099   AQ_CALL_VOID(insertPage(arg0, arg1, arg2));
00100 }
00101 inline void AQSWizard::removePage(QWidget *arg0)
00102 {
00103   AQ_CALL_VOID(removePage(arg0));
00104 }
00105 inline QString AQSWizard::title(QWidget *arg0) const
00106 {
00107   AQ_CALL_RET_V(title(arg0), QString);
00108 }
00109 inline void AQSWizard::setTitle(QWidget *arg0,  const QString &arg1)
00110 {
00111   AQ_CALL_VOID(setTitle(arg0, arg1));
00112 }
00113 inline void AQSWizard::showPage(QWidget *arg0)
00114 {
00115   AQ_CALL_VOID(showPage(arg0));
00116 }
00117 inline QWidget *AQSWizard::currentPage() const
00118 {
00119   AQ_CALL_RET(currentPage());
00120 }
00121 inline QWidget *AQSWizard::page(int arg0) const
00122 {
00123   AQ_CALL_RET(page(arg0));
00124 }
00125 inline int AQSWizard::pageCount() const
00126 {
00127   AQ_CALL_RET_V(pageCount(), int);
00128 }
00129 inline int AQSWizard::indexOf(QWidget *arg0) const
00130 {
00131   AQ_CALL_RET_V(indexOf(arg0), int);
00132 }
00133 inline bool AQSWizard::appropriate(QWidget *arg0) const
00134 {
00135   AQ_CALL_RET_V(appropriate(arg0), bool);
00136 }
00137 inline void AQSWizard::setAppropriate(QWidget *arg0,  bool arg1)
00138 {
00139   AQ_CALL_VOID(setAppropriate(arg0, arg1));
00140 }
00141 inline QPushButton *AQSWizard::backButton() const
00142 {
00143   AQ_CALL_RET(backButton());
00144 }
00145 inline QPushButton *AQSWizard::nextButton() const
00146 {
00147   AQ_CALL_RET(nextButton());
00148 }
00149 inline QPushButton *AQSWizard::finishButton() const
00150 {
00151   AQ_CALL_RET(finishButton());
00152 }
00153 inline QPushButton *AQSWizard::cancelButton() const
00154 {
00155   AQ_CALL_RET(cancelButton());
00156 }
00157 inline QPushButton *AQSWizard::helpButton() const
00158 {
00159   AQ_CALL_RET(helpButton());
00160 }
00161 //@AQ_END_IMP_PUB_SLOTS@
00162 
00163 #endif /* AQSWIZARD_P_H_ */
00164 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'