Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSWidgetStack_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSWidgetStack_p.h
00003  -------------------
00004  begin                : 05/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 AQSWIDGETSTACK_P_H_
00020 #define AQSWIDGETSTACK_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include <qwidgetstack.h>
00024 
00025 class AQSWidgetStack : public AQSFrame
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(WidgetStack, Frame);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   int addWidget(QWidget *, int = -1);
00034   void removeWidget(QWidget *);
00035   QWidget *widget(int) const;
00036   int id(QWidget *) const;
00037   QWidget *visibleWidget() 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,WFlags"));
00046     QString sgt(castArgsSignature(args, candidates));
00047     if (sgt.isEmpty())
00048       return new QWidgetStack;
00049     if (sgt == QString::fromLatin1("QWidget*"))
00050       return new QWidgetStack(argValue<QWidget *>(args[0]));
00051     if (sgt == QString::fromLatin1("QWidget*,QString"))
00052       return new QWidgetStack(argValue<QWidget *>(args[0]),
00053                               *(argValue<QString *>(args[1])));
00054     if (sgt == QString::fromLatin1("QWidget*,QString,WFlags"))
00055       return new QWidgetStack(argValue<QWidget *>(args[0]),
00056                               *(argValue<QString *>(args[1])),
00057                               static_cast<WFlags>(args[2].variant().toUInt()));
00058     return 0;
00059   }
00060 
00061 public:
00062   static QMap<int, QStringList> candidateConstructors() {
00063     QMap<int, QStringList> candidates;
00064     candidates[0].append(QString::null);
00065     candidates[1].append(QString::fromLatin1("QWidget*"));
00066     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00067     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00068     return candidates;
00069   }
00070   //@AQ_END_DEF_PUB_SLOTS@
00071 };
00072 
00073 //@AQ_BEGIN_IMP_PUB_SLOTS@
00074 inline int AQSWidgetStack::addWidget(QWidget *arg0,  int arg1)
00075 {
00076   AQ_CALL_RET_V(addWidget(arg0, arg1), int);
00077 }
00078 inline void AQSWidgetStack::removeWidget(QWidget *arg0)
00079 {
00080   AQ_CALL_VOID(removeWidget(arg0));
00081 }
00082 inline QWidget *AQSWidgetStack::widget(int arg0) const
00083 {
00084   AQ_CALL_RET(widget(arg0));
00085 }
00086 inline int AQSWidgetStack::id(QWidget *arg0) const
00087 {
00088   AQ_CALL_RET_V(id(arg0), int);
00089 }
00090 inline QWidget *AQSWidgetStack::visibleWidget() const
00091 {
00092   AQ_CALL_RET(visibleWidget());
00093 }
00094 //@AQ_END_IMP_PUB_SLOTS@
00095 
00096 #endif /* AQSWIDGETSTACK_P_H_ */
00097 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'