Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSLabel_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSLabel_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 AQSLABEL_P_H_
00020 #define AQSLABEL_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include "AQSPixmap_p.h"
00024 #include "AQSPicture_p.h"
00025 #include <qlabel.h>
00026 
00027 class AQSLabel : public AQSFrame
00028 {
00029   Q_OBJECT
00030 
00031   AQ_DECLARE_AQS_OBJECT(Label, Frame);
00032 
00033   //@AQ_BEGIN_DEF_PUB_SLOTS@
00034 public slots:
00035   QPicture *picture() const;
00036   void setBuddy(QWidget *);
00037   QWidget *buddy() const;
00038   virtual void setPixmap(QPixmap *);
00039   virtual void setPixmap(AQSPixmap *);
00040   virtual void setPicture(QPicture *);
00041   virtual void setPicture(AQSPicture *);
00042 
00043 protected:
00044   static void *construct(const QSArgumentList &args) {
00045     QMap<int, QStringList> candidates;
00046     candidates[1].append(QString::fromLatin1("QWidget*"));
00047     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00048     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00049     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00050     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00051     candidates[4].append(QString::fromLatin1("QString,QWidget*,QString,WFlags"));
00052     candidates[3].append(QString::fromLatin1("QWidget*,QString,QWidget*"));
00053     candidates[4].append(QString::fromLatin1("QWidget*,QString,QWidget*,QString"));
00054     candidates[5].append(QString::fromLatin1("QWidget*,QString,QWidget*,QString,WFlags"));
00055     QString sgt(castArgsSignature(args, candidates));
00056     if (sgt == QString::fromLatin1("QWidget*"))
00057       return new QLabel(argValue<QWidget *>(args[0]));
00058     if (sgt == QString::fromLatin1("QWidget*,QString"))
00059       return new QLabel(argValue<QWidget *>(args[0]),
00060                         *(argValue<QString *>(args[1])));
00061     if (sgt == QString::fromLatin1("QWidget*,QString,WFlags"))
00062       return new QLabel(argValue<QWidget *>(args[0]),
00063                         *(argValue<QString *>(args[1])),
00064                         static_cast<WFlags>(args[2].variant().toUInt()));
00065     if (sgt == QString::fromLatin1("QString,QWidget*"))
00066       return new QLabel(*(argValue<QString *>(args[0])),
00067                         argValue<QWidget *>(args[1]));
00068     if (sgt == QString::fromLatin1("QString,QWidget*,QString"))
00069       return new QLabel(*(argValue<QString *>(args[0])),
00070                         argValue<QWidget *>(args[1]),
00071                         *(argValue<QString *>(args[2])));
00072     if (sgt == QString::fromLatin1("QString,QWidget*,QString,WFlags"))
00073       return new QLabel(*(argValue<QString *>(args[0])),
00074                         argValue<QWidget *>(args[1]),
00075                         *(argValue<QString *>(args[2])),
00076                         static_cast<WFlags>(args[3].variant().toUInt()));
00077     if (sgt == QString::fromLatin1("QWidget*,QString,QWidget*"))
00078       return new QLabel(argValue<QWidget *>(args[0]),
00079                         *(argValue<QString *>(args[1])),
00080                         argValue<QWidget *>(args[2]));
00081     if (sgt == QString::fromLatin1("QWidget*,QString,QWidget*,QString"))
00082       return new QLabel(argValue<QWidget *>(args[0]),
00083                         *(argValue<QString *>(args[1])),
00084                         argValue<QWidget *>(args[2]),
00085                         *(argValue<QString *>(args[3])));
00086     if (sgt == QString::fromLatin1("QWidget*,QString,QWidget*,QString,WFlags"))
00087       return new QLabel(argValue<QWidget *>(args[0]),
00088                         *(argValue<QString *>(args[1])),
00089                         argValue<QWidget *>(args[2]),
00090                         *(argValue<QString *>(args[3])),
00091                         static_cast<WFlags>(args[4].variant().toUInt()));
00092     return 0;
00093   }
00094 
00095 public:
00096   static QMap<int, QStringList> candidateConstructors() {
00097     QMap<int, QStringList> candidates;
00098     candidates[1].append(QString::fromLatin1("QWidget*"));
00099     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00100     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00101     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00102     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00103     candidates[4].append(QString::fromLatin1("QString,QWidget*,QString,WFlags"));
00104     candidates[3].append(QString::fromLatin1("QWidget*,QString,QWidget*"));
00105     candidates[4].append(QString::fromLatin1("QWidget*,QString,QWidget*,QString"));
00106     candidates[5].append(QString::fromLatin1("QWidget*,QString,QWidget*,QString,WFlags"));
00107     return candidates;
00108   }
00109   //@AQ_END_DEF_PUB_SLOTS@
00110 };
00111 
00112 //@AQ_BEGIN_IMP_PUB_SLOTS@
00113 inline QPicture *AQSLabel::picture() const
00114 {
00115   AQ_CALL_RET(picture());
00116 }
00117 inline void AQSLabel::setBuddy(QWidget *arg0)
00118 {
00119   AQ_CALL_VOID(setBuddy(arg0));
00120 }
00121 inline QWidget *AQSLabel::buddy() const
00122 {
00123   AQ_CALL_RET(buddy());
00124 }
00125 inline void AQSLabel::setPixmap(QPixmap *arg0)
00126 {
00127   AQ_CALL_VOID(setPixmap(*arg0));
00128 }
00129 inline void AQSLabel::setPixmap(AQSPixmap *arg0)
00130 {
00131   AQ_CALL_VOID(setPixmap(*arg0));
00132 }
00133 inline void AQSLabel::setPicture(QPicture *arg0)
00134 {
00135   AQ_CALL_VOID(setPicture(*arg0));
00136 }
00137 inline void AQSLabel::setPicture(AQSPicture *arg0)
00138 {
00139   AQ_CALL_VOID(setPicture(*arg0));
00140 }
00141 //@AQ_END_IMP_PUB_SLOTS@
00142 
00143 #endif /* AQSLABEL_P_H_ */
00144 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'