Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSCanvasPixmapArray_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSCanvasPixmapArray_p.h
00003  -------------------
00004  begin                : 06/10/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 AQSCANVASPIXMAPARRAY_P_H_
00020 #define AQSCANVASPIXMAPARRAY_P_H_
00021 
00022 #include "AQSCanvasPixmap_p.h"
00023 
00024 class AQSCanvasPixmapArray : public AQSVoidPtr
00025 {
00026   Q_OBJECT
00027 
00028   AQ_DECLARE_AQS_VOID(CanvasPixmapArray, VoidPtr);
00029 
00030   //@AQ_BEGIN_DEF_PUB_SLOTS@
00031 public slots:
00032   bool readPixmaps(const QString &, int = 0);
00033   bool readCollisionMasks(const QString &);
00034   bool isValid() const;
00035   QCanvasPixmap *image(int) const;
00036   void setImage(int, QCanvasPixmap *);
00037   void setImage(int, AQSCanvasPixmap *);
00038   uint count() const;
00039 
00040 protected:
00041   static void *construct(const QSArgumentList &args) {
00042     QMap<int, QStringList> candidates;
00043     candidates[0].append(QString::null);
00044     candidates[1].append(QString::fromLatin1("QString"));
00045     candidates[2].append(QString::fromLatin1("QString,int"));
00046     candidates[1].append(QString::fromLatin1("QValueList<QPixmap>"));
00047     candidates[2].append(QString::fromLatin1("QValueList<QPixmap>,QPointArray*"));
00048     QString sgt(castArgsSignature(args, candidates));
00049     if (sgt.isEmpty())
00050       return new QCanvasPixmapArray;
00051     if (sgt == QString::fromLatin1("QString"))
00052       return new QCanvasPixmapArray(*(argValue<QString *>(args[0])));
00053     if (sgt == QString::fromLatin1("QString,int"))
00054       return new QCanvasPixmapArray(*(argValue<QString *>(args[0])),
00055                                     args[1].variant().toInt());
00056     if (sgt == QString::fromLatin1("QValueList<QPixmap>"))
00057       return new QCanvasPixmapArray(*(argValue<QValueList<QPixmap>*>(args[0])));
00058     if (sgt == QString::fromLatin1("QValueList<QPixmap>,QPointArray*"))
00059       return new QCanvasPixmapArray(*(argValue<QValueList<QPixmap>*>(args[0])),
00060                                     *argValue<QPointArray *>(args[1]));
00061     return 0;
00062   }
00063 
00064 public:
00065   static QMap<int, QStringList> candidateConstructors() {
00066     QMap<int, QStringList> candidates;
00067     candidates[0].append(QString::null);
00068     candidates[1].append(QString::fromLatin1("QString"));
00069     candidates[2].append(QString::fromLatin1("QString,int"));
00070     candidates[1].append(QString::fromLatin1("QValueList<QPixmap>"));
00071     candidates[2].append(QString::fromLatin1("QValueList<QPixmap>,QPointArray*"));
00072     return candidates;
00073   }
00074   //@AQ_END_DEF_PUB_SLOTS@
00075 };
00076 
00077 //@AQ_BEGIN_IMP_PUB_SLOTS@
00078 inline bool AQSCanvasPixmapArray::readPixmaps(const QString &arg0,  int arg1)
00079 {
00080   AQ_CALL_RET_V(readPixmaps(arg0, arg1), bool);
00081 }
00082 inline bool AQSCanvasPixmapArray::readCollisionMasks(const QString &arg0)
00083 {
00084   AQ_CALL_RET_V(readCollisionMasks(arg0), bool);
00085 }
00086 inline bool AQSCanvasPixmapArray::isValid() const
00087 {
00088   AQ_CALL_RET_V(isValid(), bool);
00089 }
00090 inline QCanvasPixmap *AQSCanvasPixmapArray::image(int arg0) const
00091 {
00092   AQ_CALL_RET(image(arg0));
00093 }
00094 inline void AQSCanvasPixmapArray::setImage(int arg0,  QCanvasPixmap *arg1)
00095 {
00096   AQ_CALL_VOID(setImage(arg0, arg1));
00097 }
00098 inline void AQSCanvasPixmapArray::setImage(int arg0, AQSCanvasPixmap *arg1)
00099 {
00100   AQ_CALL_VOID(setImage(arg0, *arg1));
00101 }
00102 inline uint AQSCanvasPixmapArray::count() const
00103 {
00104   AQ_CALL_RET_V(count(), uint);
00105 }
00106 //@AQ_END_IMP_PUB_SLOTS@
00107 
00108 #endif /* AQSCANVASPIXMAPARRAY_P_H_ */
00109 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'