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