Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSSplitter_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSSplitter_p.h
00003  -------------------
00004  begin                : 05/11/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 AQSSPLITTER_P_H_
00020 #define AQSSPLITTER_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include <qsplitter.h>
00024 
00025 class AQSSplitter : public AQSFrame
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(Splitter, Frame);
00030 
00031 public slots:
00032   QValueList<QVariant> sizes() const {
00033     QVariantList ret;
00034     if (!o_)
00035       return ret;
00036     QValueList<int> l(o_->sizes());
00037     for (QValueList<int>::const_iterator it = l.begin(); it != l.end(); ++it)
00038       ret << *it;
00039     return ret;
00040   }
00041 
00042   //@AQ_BEGIN_DEF_PUB_SLOTS@
00043 public slots:
00044   void setCollapsible(QWidget *, bool);
00045   virtual void setResizeMode(QWidget *, uint);
00046   void moveToFirst(QWidget *);
00047   void moveToLast(QWidget *);
00048   void refresh();
00049   void setSizes(QValueList<int>);
00050   int handleWidth() const;
00051   void setHandleWidth(int);
00052 
00053 protected:
00054   static void *construct(const QSArgumentList &args) {
00055     QMap<int, QStringList> candidates;
00056     candidates[0].append(QString::null);
00057     candidates[1].append(QString::fromLatin1("QWidget*"));
00058     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00059     candidates[1].append(QString::fromLatin1("Qt::Orientation"));
00060     candidates[2].append(QString::fromLatin1("Qt::Orientation,QWidget*"));
00061     candidates[3].append(QString::fromLatin1("Qt::Orientation,QWidget*,QString"));
00062     QString sgt(castArgsSignature(args, candidates));
00063     if (sgt.isEmpty())
00064       return new QSplitter;
00065     if (sgt == QString::fromLatin1("QWidget*"))
00066       return new QSplitter(argValue<QWidget *>(args[0]));
00067     if (sgt == QString::fromLatin1("QWidget*,QString"))
00068       return new QSplitter(argValue<QWidget *>(args[0]),
00069                            *(argValue<QString *>(args[1])));
00070     if (sgt == QString::fromLatin1("Qt::Orientation"))
00071       return new QSplitter(static_cast<Qt::Orientation>(args[0].variant().toUInt()));
00072     if (sgt == QString::fromLatin1("Qt::Orientation,QWidget*"))
00073       return new QSplitter(static_cast<Qt::Orientation>(args[0].variant().toUInt()),
00074                            argValue<QWidget *>(args[1]));
00075     if (sgt == QString::fromLatin1("Qt::Orientation,QWidget*,QString"))
00076       return new QSplitter(static_cast<Qt::Orientation>(args[0].variant().toUInt()),
00077                            argValue<QWidget *>(args[1]),
00078                            *(argValue<QString *>(args[2])));
00079     return 0;
00080   }
00081 
00082 public:
00083   static QMap<int, QStringList> candidateConstructors() {
00084     QMap<int, QStringList> candidates;
00085     candidates[0].append(QString::null);
00086     candidates[1].append(QString::fromLatin1("QWidget*"));
00087     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00088     candidates[1].append(QString::fromLatin1("Qt::Orientation"));
00089     candidates[2].append(QString::fromLatin1("Qt::Orientation,QWidget*"));
00090     candidates[3].append(QString::fromLatin1("Qt::Orientation,QWidget*,QString"));
00091     return candidates;
00092   }
00093   //@AQ_END_DEF_PUB_SLOTS@
00094 };
00095 
00096 //@AQ_BEGIN_IMP_PUB_SLOTS@
00097 inline void AQSSplitter::setCollapsible(QWidget *arg0,  bool arg1)
00098 {
00099   AQ_CALL_VOID(setCollapsible(arg0, arg1));
00100 }
00101 inline void AQSSplitter::setResizeMode(QWidget *arg0,  uint arg1)
00102 {
00103   AQ_CALL_VOID(setResizeMode(arg0, static_cast<QSplitter::ResizeMode>(arg1)));
00104 }
00105 inline void AQSSplitter::moveToFirst(QWidget *arg0)
00106 {
00107   AQ_CALL_VOID(moveToFirst(arg0));
00108 }
00109 inline void AQSSplitter::moveToLast(QWidget *arg0)
00110 {
00111   AQ_CALL_VOID(moveToLast(arg0));
00112 }
00113 inline void AQSSplitter::refresh()
00114 {
00115   AQ_CALL_VOID(refresh());
00116 }
00117 inline void AQSSplitter::setSizes(QValueList<int> arg0)
00118 {
00119   AQ_CALL_VOID(setSizes(arg0));
00120 }
00121 inline int AQSSplitter::handleWidth() const
00122 {
00123   AQ_CALL_RET_V(handleWidth(), int);
00124 }
00125 inline void AQSSplitter::setHandleWidth(int arg0)
00126 {
00127   AQ_CALL_VOID(setHandleWidth(arg0));
00128 }
00129 //@AQ_END_IMP_PUB_SLOTS@
00130 
00131 #endif /* AQSSPLITTER_P_H_ */
00132 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'