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