Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSActionGroup_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSActionGroup_p.h
00003  -------------------
00004  begin                : 05/04/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 AQSACTIONGROUP_P_H_
00020 #define AQSACTIONGROUP_P_H_
00021 
00022 #include "AQSAction_p.h"
00023 #include <qaction.h>
00024 
00025 class AQSActionGroup : public AQSAction
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(ActionGroup, Action);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void setExclusive(bool);
00034   bool isExclusive() const;
00035   void add(QAction *);
00036   void addSeparator();
00037   virtual bool addTo(QWidget *);
00038   void setUsesDropDown(bool);
00039 
00040 protected:
00041   static void *construct(const QSArgumentList &args) {
00042     QMap<int, QStringList> candidates;
00043     candidates[1].append(QString::fromLatin1("QObject*"));
00044     candidates[2].append(QString::fromLatin1("QObject*,QString"));
00045     candidates[3].append(QString::fromLatin1("QObject*,QString,bool"));
00046     QString sgt(castArgsSignature(args, candidates));
00047     if (sgt == QString::fromLatin1("QObject*"))
00048       return new QActionGroup(argValue<QObject *>(args[0]));
00049     if (sgt == QString::fromLatin1("QObject*,QString"))
00050       return new QActionGroup(argValue<QObject *>(args[0]),
00051                               *(argValue<QString *>(args[1])));
00052     if (sgt == QString::fromLatin1("QObject*,QString,bool"))
00053       return new QActionGroup(argValue<QObject *>(args[0]),
00054                               *(argValue<QString *>(args[1])),
00055                               args[2].variant().toBool());
00056     return 0;
00057   }
00058 
00059 public:
00060   static QMap<int, QStringList> candidateConstructors() {
00061     QMap<int, QStringList> candidates;
00062     candidates[1].append(QString::fromLatin1("QObject*"));
00063     candidates[2].append(QString::fromLatin1("QObject*,QString"));
00064     candidates[3].append(QString::fromLatin1("QObject*,QString,bool"));
00065     return candidates;
00066   }
00067   //@AQ_END_DEF_PUB_SLOTS@
00068 };
00069 
00070 //@AQ_BEGIN_IMP_PUB_SLOTS@
00071 inline void AQSActionGroup::setExclusive(bool arg0)
00072 {
00073   AQ_CALL_VOID(setExclusive(arg0));
00074 }
00075 inline bool AQSActionGroup::isExclusive() const
00076 {
00077   AQ_CALL_RET_V(isExclusive(), bool);
00078 }
00079 inline void AQSActionGroup::add(QAction *arg0)
00080 {
00081   AQ_CALL_VOID(add(arg0));
00082 }
00083 inline void AQSActionGroup::addSeparator()
00084 {
00085   AQ_CALL_VOID(addSeparator());
00086 }
00087 inline bool AQSActionGroup::addTo(QWidget *arg0)
00088 {
00089   AQ_CALL_RET_V(addTo(arg0), bool);
00090 }
00091 inline void AQSActionGroup::setUsesDropDown(bool arg0)
00092 {
00093   AQ_CALL_VOID(setUsesDropDown(arg0));
00094 }
00095 //@AQ_END_IMP_PUB_SLOTS@
00096 
00097 #endif /* AQSACTIONGROUP_P_H_ */
00098 // @AQSOBJECT@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'