Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSComboBox_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSComboBox_p.h
00003  -------------------
00004  begin                : 29/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 AQSCOMBOBOX_P_H_
00020 #define AQSCOMBOBOX_P_H_
00021 
00022 #include "AQSWidget_p.h"
00023 #include "AQSPixmap_p.h"
00024 #include <qcombobox.h>
00025 
00026 class AQSComboBox : public AQSWidget
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_OBJECT(ComboBox, Widget);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   void insertStringList(const QStringList &, int = -1);
00035   void insertItem(QPixmap *, int = -1);
00036   void insertItem(AQSPixmap *, int = -1);
00037   void insertItem(QPixmap *, const QString &, int = -1);
00038   void insertItem(AQSPixmap *, const QString &, int = -1);
00039   void removeItem(int);
00040   void setCurrentItem(int);
00041   void setCurrentText(const QString &);
00042   QString text(int) const;
00043   const QPixmap *pixmap(int) const;
00044   void changeItem(const QString &, int);
00045   void changeItem(QPixmap *, int);
00046   void changeItem(AQSPixmap *, int);
00047   void changeItem(QPixmap *, const QString &, int);
00048   void changeItem(AQSPixmap *, const QString &, int);
00049   void setValidator(const QValidator *);
00050   const QValidator *validator() const;
00051   void setListBox(QListBox *);
00052   QListBox *listBox() const;
00053   void setLineEdit(QLineEdit *);
00054   QLineEdit *lineEdit() const;
00055   void popup();
00056 
00057 protected:
00058   static void *construct(const QSArgumentList &args) {
00059     QMap<int, QStringList> candidates;
00060     candidates[0].append(QString::null);
00061     candidates[1].append(QString::fromLatin1("QWidget*"));
00062     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00063     candidates[1].append(QString::fromLatin1("bool"));
00064     candidates[2].append(QString::fromLatin1("bool,QWidget*"));
00065     candidates[3].append(QString::fromLatin1("bool,QWidget*,QString"));
00066     candidates[0].append(QString::null);
00067     candidates[0].append(QString::null);
00068     QString sgt(castArgsSignature(args, candidates));
00069     if (sgt.isEmpty())
00070       return new QComboBox;
00071     if (sgt == QString::fromLatin1("QWidget*"))
00072       return new QComboBox(argValue<QWidget *>(args[0]));
00073     if (sgt == QString::fromLatin1("QWidget*,QString"))
00074       return new QComboBox(argValue<QWidget *>(args[0]),
00075                            *(argValue<QString *>(args[1])));
00076     if (sgt == QString::fromLatin1("bool"))
00077       return new QComboBox(args[0].variant().toBool());
00078     if (sgt == QString::fromLatin1("bool,QWidget*"))
00079       return new QComboBox(args[0].variant().toBool(),
00080                            argValue<QWidget *>(args[1]));
00081     if (sgt == QString::fromLatin1("bool,QWidget*,QString"))
00082       return new QComboBox(args[0].variant().toBool(),
00083                            argValue<QWidget *>(args[1]),
00084                            *(argValue<QString *>(args[2])));
00085     if (sgt.isEmpty())
00086       return new QComboBox;
00087     if (sgt.isEmpty())
00088       return new QComboBox;
00089     return 0;
00090   }
00091 
00092 public:
00093   static QMap<int, QStringList> candidateConstructors() {
00094     QMap<int, QStringList> candidates;
00095     candidates[0].append(QString::null);
00096     candidates[1].append(QString::fromLatin1("QWidget*"));
00097     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00098     candidates[1].append(QString::fromLatin1("bool"));
00099     candidates[2].append(QString::fromLatin1("bool,QWidget*"));
00100     candidates[3].append(QString::fromLatin1("bool,QWidget*,QString"));
00101     candidates[0].append(QString::null);
00102     candidates[0].append(QString::null);
00103     return candidates;
00104   }
00105   //@AQ_END_DEF_PUB_SLOTS@
00106 };
00107 
00108 //@AQ_BEGIN_IMP_PUB_SLOTS@
00109 inline void AQSComboBox::insertStringList(const QStringList &arg0,  int arg1)
00110 {
00111   AQ_CALL_VOID(insertStringList(arg0, arg1));
00112 }
00113 inline void AQSComboBox::insertItem(QPixmap *arg0,  int arg1)
00114 {
00115   AQ_CALL_VOID(insertItem(*arg0, arg1));
00116 }
00117 inline void AQSComboBox::insertItem(AQSPixmap *arg0,  int arg1)
00118 {
00119   AQ_CALL_VOID(insertItem(*arg0, arg1));
00120 }
00121 inline void AQSComboBox::insertItem(QPixmap *arg0,  const QString &arg1,  int arg2)
00122 {
00123   AQ_CALL_VOID(insertItem(*arg0, arg1, arg2));
00124 }
00125 inline void AQSComboBox::insertItem(AQSPixmap *arg0,  const QString &arg1,  int arg2)
00126 {
00127   AQ_CALL_VOID(insertItem(*arg0, arg1, arg2));
00128 }
00129 inline void AQSComboBox::removeItem(int arg0)
00130 {
00131   AQ_CALL_VOID(removeItem(arg0));
00132 }
00133 inline void AQSComboBox::setCurrentItem(int arg0)
00134 {
00135   AQ_CALL_VOID(setCurrentItem(arg0));
00136 }
00137 inline void AQSComboBox::setCurrentText(const QString &arg0)
00138 {
00139   AQ_CALL_VOID(setCurrentText(arg0));
00140 }
00141 inline QString AQSComboBox::text(int arg0) const
00142 {
00143   AQ_CALL_RET_V(text(arg0), QString);
00144 }
00145 inline const QPixmap *AQSComboBox::pixmap(int arg0) const
00146 {
00147   AQ_CALL_RET(pixmap(arg0));
00148 }
00149 inline void AQSComboBox::changeItem(const QString &arg0,  int arg1)
00150 {
00151   AQ_CALL_VOID(changeItem(arg0, arg1));
00152 }
00153 inline void AQSComboBox::changeItem(QPixmap *arg0,  int arg1)
00154 {
00155   AQ_CALL_VOID(changeItem(*arg0, arg1));
00156 }
00157 inline void AQSComboBox::changeItem(AQSPixmap *arg0,  int arg1)
00158 {
00159   AQ_CALL_VOID(changeItem(*arg0, arg1));
00160 }
00161 inline void AQSComboBox::changeItem(QPixmap *arg0,  const QString &arg1,  int arg2)
00162 {
00163   AQ_CALL_VOID(changeItem(*arg0, arg1, arg2));
00164 }
00165 inline void AQSComboBox::changeItem(AQSPixmap *arg0,  const QString &arg1,  int arg2)
00166 {
00167   AQ_CALL_VOID(changeItem(*arg0, arg1, arg2));
00168 }
00169 inline void AQSComboBox::setValidator(const QValidator *arg0)
00170 {
00171   AQ_CALL_VOID(setValidator(arg0));
00172 }
00173 inline const QValidator *AQSComboBox::validator() const
00174 {
00175   AQ_CALL_RET(validator());
00176 }
00177 inline void AQSComboBox::setListBox(QListBox *arg0)
00178 {
00179   AQ_CALL_VOID(setListBox(arg0));
00180 }
00181 inline QListBox *AQSComboBox::listBox() const
00182 {
00183   AQ_CALL_RET(listBox());
00184 }
00185 inline void AQSComboBox::setLineEdit(QLineEdit *arg0)
00186 {
00187   AQ_CALL_VOID(setLineEdit(arg0));
00188 }
00189 inline QLineEdit *AQSComboBox::lineEdit() const
00190 {
00191   AQ_CALL_RET(lineEdit());
00192 }
00193 inline void AQSComboBox::popup()
00194 {
00195   AQ_CALL_VOID(popup());
00196 }
00197 //@AQ_END_IMP_PUB_SLOTS@
00198 
00199 #endif /* AQSCOMBOBOX_P_H_ */
00200 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'