Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSToolBox_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSToolBox_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 AQSTOOLBOX_P_H_
00020 #define AQSTOOLBOX_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include "AQSIconSet_p.h"
00024 #include <qtoolbox.h>
00025 
00026 class AQSToolBox : public AQSFrame
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_OBJECT(ToolBox, Frame);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   int addItem(QWidget *, const QString &);
00035   int addItem(QWidget *, QIconSet *, const QString &);
00036   int addItem(QWidget *, AQSIconSet *, const QString &);
00037   int insertItem(int, QWidget *, const QString &);
00038   int insertItem(int, QWidget *, QIconSet *, const QString &);
00039   int insertItem(int, QWidget *, AQSIconSet *, const QString &);
00040   int removeItem(QWidget *);
00041   void setItemEnabled(int, bool);
00042   bool isItemEnabled(int) const;
00043   void setItemLabel(int, const QString &);
00044   QString itemLabel(int) const;
00045   void setItemIconSet(int, QIconSet *);
00046   void setItemIconSet(int, AQSIconSet *);
00047   QIconSet *itemIconSet(int) const;
00048   void setItemToolTip(int, const QString &);
00049   QString itemToolTip(int) const;
00050   QWidget *currentItem() const;
00051   void setCurrentItem(QWidget *);
00052   QWidget *item(int) const;
00053   int indexOf(QWidget *) const;
00054 
00055 protected:
00056   static void *construct(const QSArgumentList &args) {
00057     QMap<int, QStringList> candidates;
00058     candidates[0].append(QString::null);
00059     candidates[1].append(QString::fromLatin1("QWidget*"));
00060     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00061     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00062     QString sgt(castArgsSignature(args, candidates));
00063     if (sgt.isEmpty())
00064       return new QToolBox;
00065     if (sgt == QString::fromLatin1("QWidget*"))
00066       return new QToolBox(argValue<QWidget *>(args[0]));
00067     if (sgt == QString::fromLatin1("QWidget*,QString"))
00068       return new QToolBox(argValue<QWidget *>(args[0]),
00069                           *(argValue<QString *>(args[1])));
00070     if (sgt == QString::fromLatin1("QWidget*,QString,WFlags"))
00071       return new QToolBox(argValue<QWidget *>(args[0]),
00072                           *(argValue<QString *>(args[1])),
00073                           static_cast<WFlags>(args[2].variant().toUInt()));
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[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00084     return candidates;
00085   }
00086   //@AQ_END_DEF_PUB_SLOTS@
00087 };
00088 
00089 //@AQ_BEGIN_IMP_PUB_SLOTS@
00090 inline int AQSToolBox::addItem(QWidget *arg0,  const QString &arg1)
00091 {
00092   AQ_CALL_RET_V(addItem(arg0, arg1), int);
00093 }
00094 inline int AQSToolBox::addItem(QWidget *arg0,  QIconSet *arg1,  const QString &arg2)
00095 {
00096   AQ_CALL_RET_V(addItem(arg0, *arg1, arg2), int);
00097 }
00098 inline int AQSToolBox::addItem(QWidget *arg0, AQSIconSet *arg1,  const QString &arg2)
00099 {
00100   AQ_CALL_RET_V(addItem(arg0, *arg1, arg2), int);
00101 }
00102 inline int AQSToolBox::insertItem(int arg0,  QWidget *arg1,  const QString &arg2)
00103 {
00104   AQ_CALL_RET_V(insertItem(arg0, arg1, arg2), int);
00105 }
00106 inline int AQSToolBox::insertItem(int arg0,  QWidget *arg1,  QIconSet *arg2,  const QString &arg3)
00107 {
00108   AQ_CALL_RET_V(insertItem(arg0, arg1, *arg2, arg3), int);
00109 }
00110 inline int AQSToolBox::insertItem(int arg0,  QWidget *arg1, AQSIconSet *arg2,  const QString &arg3)
00111 {
00112   AQ_CALL_RET_V(insertItem(arg0, arg1, *arg2, arg3), int);
00113 }
00114 inline int AQSToolBox::removeItem(QWidget *arg0)
00115 {
00116   AQ_CALL_RET_V(removeItem(arg0), int);
00117 }
00118 inline void AQSToolBox::setItemEnabled(int arg0,  bool arg1)
00119 {
00120   AQ_CALL_VOID(setItemEnabled(arg0, arg1));
00121 }
00122 inline bool AQSToolBox::isItemEnabled(int arg0) const
00123 {
00124   AQ_CALL_RET_V(isItemEnabled(arg0), bool);
00125 }
00126 inline void AQSToolBox::setItemLabel(int arg0,  const QString &arg1)
00127 {
00128   AQ_CALL_VOID(setItemLabel(arg0, arg1));
00129 }
00130 inline QString AQSToolBox::itemLabel(int arg0) const
00131 {
00132   AQ_CALL_RET_V(itemLabel(arg0), QString);
00133 }
00134 inline void AQSToolBox::setItemIconSet(int arg0,  QIconSet *arg1)
00135 {
00136   AQ_CALL_VOID(setItemIconSet(arg0, *arg1));
00137 }
00138 inline void AQSToolBox::setItemIconSet(int arg0, AQSIconSet *arg1)
00139 {
00140   AQ_CALL_VOID(setItemIconSet(arg0, *arg1));
00141 }
00142 inline QIconSet *AQSToolBox::itemIconSet(int arg0) const
00143 {
00144   AQ_CALL_RET_PTR(itemIconSet(arg0), QIconSet);
00145 }
00146 inline void AQSToolBox::setItemToolTip(int arg0,  const QString &arg1)
00147 {
00148   AQ_CALL_VOID(setItemToolTip(arg0, arg1));
00149 }
00150 inline QString AQSToolBox::itemToolTip(int arg0) const
00151 {
00152   AQ_CALL_RET_V(itemToolTip(arg0), QString);
00153 }
00154 inline QWidget *AQSToolBox::currentItem() const
00155 {
00156   AQ_CALL_RET(currentItem());
00157 }
00158 inline void AQSToolBox::setCurrentItem(QWidget *arg0)
00159 {
00160   AQ_CALL_VOID(setCurrentItem(arg0));
00161 }
00162 inline QWidget *AQSToolBox::item(int arg0) const
00163 {
00164   AQ_CALL_RET(item(arg0));
00165 }
00166 inline int AQSToolBox::indexOf(QWidget *arg0) const
00167 {
00168   AQ_CALL_RET_V(indexOf(arg0), int);
00169 }
00170 //@AQ_END_IMP_PUB_SLOTS@
00171 
00172 #endif /* AQSTOOLBOX_P_H_ */
00173 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'