Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSListBoxPixmap_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSListBoxPixmap_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 AQSLISTBOXPIXMAP_P_H_
00020 #define AQSLISTBOXPIXMAP_P_H_
00021 
00022 #include "AQSListBoxItem_p.h"
00023 #include <qlistbox.h>
00024 
00025 class AQSListBoxPixmap : public AQSListBoxItem
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(ListBoxPixmap, ListBoxItem);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033 
00034 protected:
00035   static void *construct(const QSArgumentList &args) {
00036     QMap<int, QStringList> candidates;
00037     candidates[2].append(QString::fromLatin1("QListBox*,QPixmap*"));
00038     candidates[1].append(QString::fromLatin1("QPixmap*"));
00039     candidates[3].append(QString::fromLatin1("QListBox*,QPixmap*,QListBoxItem*"));
00040     candidates[3].append(QString::fromLatin1("QListBox*,QPixmap*,QString"));
00041     candidates[2].append(QString::fromLatin1("QPixmap*,QString"));
00042     candidates[4].append(QString::fromLatin1("QListBox*,QPixmap*,QString,QListBoxItem*"));
00043     QString sgt(castArgsSignature(args, candidates));
00044     if (sgt == QString::fromLatin1("QListBox*,QPixmap*"))
00045       return new QListBoxPixmap(argValue<QListBox *>(args[0]),
00046                                 *argValue<QPixmap *>(args[1]));
00047     if (sgt == QString::fromLatin1("QPixmap*"))
00048       return new QListBoxPixmap(*argValue<QPixmap *>(args[0]));
00049     if (sgt == QString::fromLatin1("QListBox*,QPixmap*,QListBoxItem*"))
00050       return new QListBoxPixmap(argValue<QListBox *>(args[0]),
00051                                 *argValue<QPixmap *>(args[1]),
00052                                 argValue<QListBoxItem *>(args[2]));
00053     if (sgt == QString::fromLatin1("QListBox*,QPixmap*,QString"))
00054       return new QListBoxPixmap(argValue<QListBox *>(args[0]),
00055                                 *argValue<QPixmap *>(args[1]),
00056                                 *(argValue<QString *>(args[2])));
00057     if (sgt == QString::fromLatin1("QPixmap*,QString"))
00058       return new QListBoxPixmap(*argValue<QPixmap *>(args[0]),
00059                                 *(argValue<QString *>(args[1])));
00060     if (sgt == QString::fromLatin1("QListBox*,QPixmap*,QString,QListBoxItem*"))
00061       return new QListBoxPixmap(argValue<QListBox *>(args[0]),
00062                                 *argValue<QPixmap *>(args[1]),
00063                                 *(argValue<QString *>(args[2])),
00064                                 argValue<QListBoxItem *>(args[3]));
00065     return 0;
00066   }
00067 
00068 public:
00069   static QMap<int, QStringList> candidateConstructors() {
00070     QMap<int, QStringList> candidates;
00071     candidates[2].append(QString::fromLatin1("QListBox*,QPixmap*"));
00072     candidates[1].append(QString::fromLatin1("QPixmap*"));
00073     candidates[3].append(QString::fromLatin1("QListBox*,QPixmap*,QListBoxItem*"));
00074     candidates[3].append(QString::fromLatin1("QListBox*,QPixmap*,QString"));
00075     candidates[2].append(QString::fromLatin1("QPixmap*,QString"));
00076     candidates[4].append(QString::fromLatin1("QListBox*,QPixmap*,QString,QListBoxItem*"));
00077     return candidates;
00078   }
00079   //@AQ_END_DEF_PUB_SLOTS@
00080 };
00081 
00082 //@AQ_BEGIN_IMP_PUB_SLOTS@
00083 //@AQ_END_IMP_PUB_SLOTS@
00084 
00085 #endif /* AQSLISTBOXPIXMAP_P_H_ */
00086 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'