Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSPushButton_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSPushButton_p.h
00003  -------------------
00004  begin                : 30/01/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 AQSPUSHBUTTON_P_H_
00020 #define AQSPUSHBUTTON_P_H_
00021 
00022 #include "AQSButton_p.h"
00023 #include <qpushbutton.h>
00024 
00025 class AQSPushButton : public AQSButton
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(PushButton, Button);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void setPopup(QPopupMenu *);
00034   QPopupMenu *popup() const;
00035 
00036 protected:
00037   static void *construct(const QSArgumentList &args) {
00038     QMap<int, QStringList> candidates;
00039     candidates[1].append(QString::fromLatin1("QWidget*"));
00040     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00041     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00042     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00043     candidates[3].append(QString::fromLatin1("QIconSet*,QString,QWidget*"));
00044     candidates[4].append(QString::fromLatin1("QIconSet*,QString,QWidget*,QString"));
00045     QString sgt(castArgsSignature(args, candidates));
00046     if (sgt == QString::fromLatin1("QWidget*"))
00047       return new QPushButton(argValue<QWidget *>(args[0]));
00048     if (sgt == QString::fromLatin1("QWidget*,QString"))
00049       return new QPushButton(argValue<QWidget *>(args[0]),
00050                              *(argValue<QString *>(args[1])));
00051     if (sgt == QString::fromLatin1("QString,QWidget*"))
00052       return new QPushButton(*(argValue<QString *>(args[0])),
00053                              argValue<QWidget *>(args[1]));
00054     if (sgt == QString::fromLatin1("QString,QWidget*,QString"))
00055       return new QPushButton(*(argValue<QString *>(args[0])),
00056                              argValue<QWidget *>(args[1]),
00057                              *(argValue<QString *>(args[2])));
00058     if (sgt == QString::fromLatin1("QIconSet*,QString,QWidget*"))
00059       return new QPushButton(*argValue<QIconSet *>(args[0]),
00060                              *(argValue<QString *>(args[1])),
00061                              argValue<QWidget *>(args[2]));
00062     if (sgt == QString::fromLatin1("QIconSet*,QString,QWidget*,QString"))
00063       return new QPushButton(*argValue<QIconSet *>(args[0]),
00064                              *(argValue<QString *>(args[1])),
00065                              argValue<QWidget *>(args[2]),
00066                              *(argValue<QString *>(args[3])));
00067     return 0;
00068   }
00069 
00070 public:
00071   static QMap<int, QStringList> candidateConstructors() {
00072     QMap<int, QStringList> candidates;
00073     candidates[1].append(QString::fromLatin1("QWidget*"));
00074     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00075     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00076     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00077     candidates[3].append(QString::fromLatin1("QIconSet*,QString,QWidget*"));
00078     candidates[4].append(QString::fromLatin1("QIconSet*,QString,QWidget*,QString"));
00079     return candidates;
00080   }
00081   //@AQ_END_DEF_PUB_SLOTS@
00082 };
00083 
00084 //@AQ_BEGIN_IMP_PUB_SLOTS@
00085 inline void AQSPushButton::setPopup(QPopupMenu *arg0)
00086 {
00087   AQ_CALL_VOID(setPopup(arg0));
00088 }
00089 inline QPopupMenu *AQSPushButton::popup() const
00090 {
00091   AQ_CALL_RET(popup());
00092 }
00093 //@AQ_END_IMP_PUB_SLOTS@
00094 
00095 #endif /* AQSPUSHBUTTON_P_H_ */
00096 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'