Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSSpinBox_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSSpinBox_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 AQSSPINBOX_P_H_
00020 #define AQSSPINBOX_P_H_
00021 
00022 #include "AQSWidget_p.h"
00023 #include <qspinbox.h>
00024 
00025 class AQSSpinBox : public AQSWidget
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(SpinBox, Widget);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void setValidator(const QValidator *);
00034   const QValidator *validator() const;
00035   QRect upRect() const;
00036   QRect downRect() const;
00037 
00038 protected:
00039   static void *construct(const QSArgumentList &args) {
00040     QMap<int, QStringList> candidates;
00041     candidates[0].append(QString::null);
00042     candidates[1].append(QString::fromLatin1("QWidget*"));
00043     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00044     candidates[2].append(QString::fromLatin1("int,int"));
00045     candidates[3].append(QString::fromLatin1("int,int,int"));
00046     candidates[4].append(QString::fromLatin1("int,int,int,QWidget*"));
00047     candidates[5].append(QString::fromLatin1("int,int,int,QWidget*,QString"));
00048     QString sgt(castArgsSignature(args, candidates));
00049     if (sgt.isEmpty())
00050       return new QSpinBox;
00051     if (sgt == QString::fromLatin1("QWidget*"))
00052       return new QSpinBox(argValue<QWidget *>(args[0]));
00053     if (sgt == QString::fromLatin1("QWidget*,QString"))
00054       return new QSpinBox(argValue<QWidget *>(args[0]),
00055                           *(argValue<QString *>(args[1])));
00056     if (sgt == QString::fromLatin1("int,int"))
00057       return new QSpinBox(args[0].variant().toInt(),
00058                           args[1].variant().toInt());
00059     if (sgt == QString::fromLatin1("int,int,int"))
00060       return new QSpinBox(args[0].variant().toInt(),
00061                           args[1].variant().toInt(),
00062                           args[2].variant().toInt());
00063     if (sgt == QString::fromLatin1("int,int,int,QWidget*"))
00064       return new QSpinBox(args[0].variant().toInt(),
00065                           args[1].variant().toInt(),
00066                           args[2].variant().toInt(),
00067                           argValue<QWidget *>(args[3]));
00068     if (sgt == QString::fromLatin1("int,int,int,QWidget*,QString"))
00069       return new QSpinBox(args[0].variant().toInt(),
00070                           args[1].variant().toInt(),
00071                           args[2].variant().toInt(),
00072                           argValue<QWidget *>(args[3]),
00073                           *(argValue<QString *>(args[4])));
00074     return 0;
00075   }
00076 
00077 public:
00078   static QMap<int, QStringList> candidateConstructors() {
00079     QMap<int, QStringList> candidates;
00080     candidates[0].append(QString::null);
00081     candidates[1].append(QString::fromLatin1("QWidget*"));
00082     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00083     candidates[2].append(QString::fromLatin1("int,int"));
00084     candidates[3].append(QString::fromLatin1("int,int,int"));
00085     candidates[4].append(QString::fromLatin1("int,int,int,QWidget*"));
00086     candidates[5].append(QString::fromLatin1("int,int,int,QWidget*,QString"));
00087     return candidates;
00088   }
00089   //@AQ_END_DEF_PUB_SLOTS@
00090 };
00091 
00092 //@AQ_BEGIN_IMP_PUB_SLOTS@
00093 inline void AQSSpinBox::setValidator(const QValidator *arg0)
00094 {
00095   AQ_CALL_VOID(setValidator(arg0));
00096 }
00097 inline const QValidator *AQSSpinBox::validator() const
00098 {
00099   AQ_CALL_RET(validator());
00100 }
00101 inline QRect AQSSpinBox::upRect() const
00102 {
00103   AQ_CALL_RET_V(upRect(), QRect);
00104 }
00105 inline QRect AQSSpinBox::downRect() const
00106 {
00107   AQ_CALL_RET_V(downRect(), QRect);
00108 }
00109 //@AQ_END_IMP_PUB_SLOTS@
00110 
00111 #endif /* AQSSPINBOX_P_H_ */
00112 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'