Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSToolBar_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSToolBar_p.h
00003  -------------------
00004  begin                : 02/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 AQSTOOLBAR_P_H_
00020 #define AQSTOOLBAR_P_H_
00021 
00022 #include "AQSDockWindow_p.h"
00023 #include <qtoolbar.h>
00024 
00025 class AQSToolBar : public AQSDockWindow
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(ToolBar, DockWindow);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void addSeparator();
00034   QMainWindow *mainWindow() const;
00035   virtual void setStretchableWidget(QWidget *);
00036   virtual void setLabel(const QString &);
00037   virtual void clear();
00038 
00039 protected:
00040   static void *construct(const QSArgumentList &args) {
00041     QMap<int, QStringList> candidates;
00042     candidates[3].append(QString::fromLatin1("QString,QMainWindow*,QWidget*"));
00043     candidates[4].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool"));
00044     candidates[5].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString"));
00045     candidates[6].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString,WFlags"));
00046     candidates[0].append(QString::null);
00047     candidates[1].append(QString::fromLatin1("QMainWindow*"));
00048     candidates[2].append(QString::fromLatin1("QMainWindow*,QString"));
00049     QString sgt(castArgsSignature(args, candidates));
00050     if (sgt == QString::fromLatin1("QString,QMainWindow*,QWidget*"))
00051       return new QToolBar(*(argValue<QString *>(args[0])),
00052                           argValue<QMainWindow *>(args[1]),
00053                           argValue<QWidget *>(args[2]));
00054     if (sgt == QString::fromLatin1("QString,QMainWindow*,QWidget*,bool"))
00055       return new QToolBar(*(argValue<QString *>(args[0])),
00056                           argValue<QMainWindow *>(args[1]),
00057                           argValue<QWidget *>(args[2]),
00058                           args[3].variant().toBool());
00059     if (sgt == QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString"))
00060       return new QToolBar(*(argValue<QString *>(args[0])),
00061                           argValue<QMainWindow *>(args[1]),
00062                           argValue<QWidget *>(args[2]),
00063                           args[3].variant().toBool(),
00064                           *(argValue<QString *>(args[4])));
00065     if (sgt == QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString,WFlags"))
00066       return new QToolBar(*(argValue<QString *>(args[0])),
00067                           argValue<QMainWindow *>(args[1]),
00068                           argValue<QWidget *>(args[2]),
00069                           args[3].variant().toBool(),
00070                           *(argValue<QString *>(args[4])),
00071                           static_cast<WFlags>(args[5].variant().toUInt()));
00072     if (sgt.isEmpty())
00073       return new QToolBar;
00074     if (sgt == QString::fromLatin1("QMainWindow*"))
00075       return new QToolBar(argValue<QMainWindow *>(args[0]));
00076     if (sgt == QString::fromLatin1("QMainWindow*,QString"))
00077       return new QToolBar(argValue<QMainWindow *>(args[0]),
00078                           *(argValue<QString *>(args[1])));
00079     return 0;
00080   }
00081 
00082 public:
00083   static QMap<int, QStringList> candidateConstructors() {
00084     QMap<int, QStringList> candidates;
00085     candidates[3].append(QString::fromLatin1("QString,QMainWindow*,QWidget*"));
00086     candidates[4].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool"));
00087     candidates[5].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString"));
00088     candidates[6].append(QString::fromLatin1("QString,QMainWindow*,QWidget*,bool,QString,WFlags"));
00089     candidates[0].append(QString::null);
00090     candidates[1].append(QString::fromLatin1("QMainWindow*"));
00091     candidates[2].append(QString::fromLatin1("QMainWindow*,QString"));
00092     return candidates;
00093   }
00094   //@AQ_END_DEF_PUB_SLOTS@
00095 };
00096 
00097 //@AQ_BEGIN_IMP_PUB_SLOTS@
00098 inline void AQSToolBar::addSeparator()
00099 {
00100   AQ_CALL_VOID(addSeparator());
00101 }
00102 inline QMainWindow *AQSToolBar::mainWindow() const
00103 {
00104   AQ_CALL_RET(mainWindow());
00105 }
00106 inline void AQSToolBar::setStretchableWidget(QWidget *arg0)
00107 {
00108   AQ_CALL_VOID(setStretchableWidget(arg0));
00109 }
00110 inline void AQSToolBar::setLabel(const QString &arg0)
00111 {
00112   AQ_CALL_VOID(setLabel(arg0));
00113 }
00114 inline void AQSToolBar::clear()
00115 {
00116   AQ_CALL_VOID(clear());
00117 }
00118 //@AQ_END_IMP_PUB_SLOTS@
00119 
00120 #endif /* AQSTOOLBAR_P_H_ */
00121 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'