Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSVBoxLayout_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSVBoxLayout_p.h
00003  -------------------
00004  begin                : 07/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  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 AQSVBOXLAYOUT_P_H_
00020 #define AQSVBOXLAYOUT_P_H_
00021 
00022 #include "AQSBoxLayout_p.h"
00023 #include <qlayout.h>
00024 
00025 class AQSVBoxLayout : public AQSBoxLayout
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(VBoxLayout, BoxLayout);
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[1].append(QString::fromLatin1("QWidget*"));
00038     candidates[2].append(QString::fromLatin1("QWidget*,int"));
00039     candidates[3].append(QString::fromLatin1("QWidget*,int,int"));
00040     candidates[4].append(QString::fromLatin1("QWidget*,int,int,QString"));
00041     candidates[1].append(QString::fromLatin1("QLayout*"));
00042     candidates[2].append(QString::fromLatin1("QLayout*,int"));
00043     candidates[3].append(QString::fromLatin1("QLayout*,int,QString"));
00044     candidates[0].append(QString::null);
00045     candidates[1].append(QString::fromLatin1("int"));
00046     candidates[2].append(QString::fromLatin1("int,QString"));
00047     QString sgt(castArgsSignature(args, candidates));
00048     if (sgt == QString::fromLatin1("QWidget*"))
00049       return new QVBoxLayout(argValue<QWidget *>(args[0]));
00050     if (sgt == QString::fromLatin1("QWidget*,int"))
00051       return new QVBoxLayout(argValue<QWidget *>(args[0]),
00052                              args[1].variant().toInt());
00053     if (sgt == QString::fromLatin1("QWidget*,int,int"))
00054       return new QVBoxLayout(argValue<QWidget *>(args[0]),
00055                              args[1].variant().toInt(),
00056                              args[2].variant().toInt());
00057     if (sgt == QString::fromLatin1("QWidget*,int,int,QString"))
00058       return new QVBoxLayout(argValue<QWidget *>(args[0]),
00059                              args[1].variant().toInt(),
00060                              args[2].variant().toInt(),
00061                              *(argValue<QString *>(args[3])));
00062     if (sgt == QString::fromLatin1("QLayout*"))
00063       return new QVBoxLayout(argValue<QLayout *>(args[0]));
00064     if (sgt == QString::fromLatin1("QLayout*,int"))
00065       return new QVBoxLayout(argValue<QLayout *>(args[0]),
00066                              args[1].variant().toInt());
00067     if (sgt == QString::fromLatin1("QLayout*,int,QString"))
00068       return new QVBoxLayout(argValue<QLayout *>(args[0]),
00069                              args[1].variant().toInt(),
00070                              *(argValue<QString *>(args[2])));
00071     if (sgt.isEmpty())
00072       return new QVBoxLayout;
00073     if (sgt == QString::fromLatin1("int"))
00074       return new QVBoxLayout(args[0].variant().toInt());
00075     if (sgt == QString::fromLatin1("int,QString"))
00076       return new QVBoxLayout(args[0].variant().toInt(),
00077                              *(argValue<QString *>(args[1])));
00078     return 0;
00079   }
00080 
00081 public:
00082   static QMap<int, QStringList> candidateConstructors() {
00083     QMap<int, QStringList> candidates;
00084     candidates[1].append(QString::fromLatin1("QWidget*"));
00085     candidates[2].append(QString::fromLatin1("QWidget*,int"));
00086     candidates[3].append(QString::fromLatin1("QWidget*,int,int"));
00087     candidates[4].append(QString::fromLatin1("QWidget*,int,int,QString"));
00088     candidates[1].append(QString::fromLatin1("QLayout*"));
00089     candidates[2].append(QString::fromLatin1("QLayout*,int"));
00090     candidates[3].append(QString::fromLatin1("QLayout*,int,QString"));
00091     candidates[0].append(QString::null);
00092     candidates[1].append(QString::fromLatin1("int"));
00093     candidates[2].append(QString::fromLatin1("int,QString"));
00094     return candidates;
00095   }
00096   //@AQ_END_DEF_PUB_SLOTS@
00097 };
00098 
00099 //@AQ_BEGIN_IMP_PUB_SLOTS@
00100 //@AQ_END_IMP_PUB_SLOTS@
00101 
00102 #endif /* AQSVBOXLAYOUT_P_H_ */
00103 // @AQSOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'