Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSButtonGroup_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSButtonGroup_p.h
00003  -------------------
00004  begin                : 06/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 AQSBUTTONGROUP_P_H_
00020 #define AQSBUTTONGROUP_P_H_
00021 
00022 #include "AQSGroupBox_p.h"
00023 #include <qbuttongroup.h>
00024 
00025 class AQSButtonGroup : public AQSGroupBox
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(ButtonGroup, GroupBox);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   int insert(QButton *, int = -1);
00034   void remove(QButton *);
00035   QButton *find(int) const;
00036   int id(QButton *) const;
00037   int count() const;
00038   void moveFocus(int);
00039   QButton *selected() const;
00040 
00041 protected:
00042   static void *construct(const QSArgumentList &args) {
00043     QMap<int, QStringList> candidates;
00044     candidates[0].append(QString::null);
00045     candidates[1].append(QString::fromLatin1("QWidget*"));
00046     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00047     candidates[1].append(QString::fromLatin1("QString"));
00048     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00049     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00050     candidates[2].append(QString::fromLatin1("int,Qt::Orientation"));
00051     candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QWidget*"));
00052     candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QWidget*,QString"));
00053     candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QString"));
00054     candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*"));
00055     candidates[5].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString"));
00056     QString sgt(castArgsSignature(args, candidates));
00057     if (sgt.isEmpty())
00058       return new QButtonGroup;
00059     if (sgt == QString::fromLatin1("QWidget*"))
00060       return new QButtonGroup(argValue<QWidget *>(args[0]));
00061     if (sgt == QString::fromLatin1("QWidget*,QString"))
00062       return new QButtonGroup(argValue<QWidget *>(args[0]),
00063                               *(argValue<QString *>(args[1])));
00064     if (sgt == QString::fromLatin1("QString"))
00065       return new QButtonGroup(*(argValue<QString *>(args[0])));
00066     if (sgt == QString::fromLatin1("QString,QWidget*"))
00067       return new QButtonGroup(*(argValue<QString *>(args[0])),
00068                               argValue<QWidget *>(args[1]));
00069     if (sgt == QString::fromLatin1("QString,QWidget*,QString"))
00070       return new QButtonGroup(*(argValue<QString *>(args[0])),
00071                               argValue<QWidget *>(args[1]),
00072                               *(argValue<QString *>(args[2])));
00073     if (sgt == QString::fromLatin1("int,Qt::Orientation"))
00074       return new QButtonGroup(args[0].variant().toInt(),
00075                               static_cast<Qt::Orientation>(args[1].variant().toUInt()));
00076     if (sgt == QString::fromLatin1("int,Qt::Orientation,QWidget*"))
00077       return new QButtonGroup(args[0].variant().toInt(),
00078                               static_cast<Qt::Orientation>(args[1].variant().toUInt()),
00079                               argValue<QWidget *>(args[2]));
00080     if (sgt == QString::fromLatin1("int,Qt::Orientation,QWidget*,QString"))
00081       return new QButtonGroup(args[0].variant().toInt(),
00082                               static_cast<Qt::Orientation>(args[1].variant().toUInt()),
00083                               argValue<QWidget *>(args[2]),
00084                               *(argValue<QString *>(args[3])));
00085     if (sgt == QString::fromLatin1("int,Qt::Orientation,QString"))
00086       return new QButtonGroup(args[0].variant().toInt(),
00087                               static_cast<Qt::Orientation>(args[1].variant().toUInt()),
00088                               *(argValue<QString *>(args[2])));
00089     if (sgt == QString::fromLatin1("int,Qt::Orientation,QString,QWidget*"))
00090       return new QButtonGroup(args[0].variant().toInt(),
00091                               static_cast<Qt::Orientation>(args[1].variant().toUInt()),
00092                               *(argValue<QString *>(args[2])),
00093                               argValue<QWidget *>(args[3]));
00094     if (sgt == QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString"))
00095       return new QButtonGroup(args[0].variant().toInt(),
00096                               static_cast<Qt::Orientation>(args[1].variant().toUInt()),
00097                               *(argValue<QString *>(args[2])),
00098                               argValue<QWidget *>(args[3]),
00099                               *(argValue<QString *>(args[4])));
00100     return 0;
00101   }
00102 
00103 public:
00104   static QMap<int, QStringList> candidateConstructors() {
00105     QMap<int, QStringList> candidates;
00106     candidates[0].append(QString::null);
00107     candidates[1].append(QString::fromLatin1("QWidget*"));
00108     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00109     candidates[1].append(QString::fromLatin1("QString"));
00110     candidates[2].append(QString::fromLatin1("QString,QWidget*"));
00111     candidates[3].append(QString::fromLatin1("QString,QWidget*,QString"));
00112     candidates[2].append(QString::fromLatin1("int,Qt::Orientation"));
00113     candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QWidget*"));
00114     candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QWidget*,QString"));
00115     candidates[3].append(QString::fromLatin1("int,Qt::Orientation,QString"));
00116     candidates[4].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*"));
00117     candidates[5].append(QString::fromLatin1("int,Qt::Orientation,QString,QWidget*,QString"));
00118     return candidates;
00119   }
00120   //@AQ_END_DEF_PUB_SLOTS@
00121 };
00122 
00123 //@AQ_BEGIN_IMP_PUB_SLOTS@
00124 inline int AQSButtonGroup::insert(QButton *arg0,  int arg1)
00125 {
00126   AQ_CALL_RET_V(insert(arg0, arg1), int);
00127 }
00128 inline void AQSButtonGroup::remove(QButton *arg0)
00129 {
00130   AQ_CALL_VOID(remove(arg0));
00131 }
00132 inline QButton *AQSButtonGroup::find(int arg0) const
00133 {
00134   AQ_CALL_RET(find(arg0));
00135 }
00136 inline int AQSButtonGroup::id(QButton *arg0) const
00137 {
00138   AQ_CALL_RET_V(id(arg0), int);
00139 }
00140 inline int AQSButtonGroup::count() const
00141 {
00142   AQ_CALL_RET_V(count(), int);
00143 }
00144 inline void AQSButtonGroup::moveFocus(int arg0)
00145 {
00146   AQ_CALL_VOID(moveFocus(arg0));
00147 }
00148 inline QButton *AQSButtonGroup::selected() const
00149 {
00150   AQ_CALL_RET(selected());
00151 }
00152 //@AQ_END_IMP_PUB_SLOTS@
00153 
00154 #endif /* AQSBUTTONGROUP_P_H_ */
00155 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'