Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSCanvasRectangle_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSCanvasRectangle_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 AQSCANVASRECTANGLE_P_H_
00020 #define AQSCANVASRECTANGLE_P_H_
00021 
00022 #include "AQSCanvasPolygonalItem_p.h"
00023 
00024 class AQSCanvasRectangle : public AQSCanvasPolygonalItem
00025 {
00026   Q_OBJECT
00027 
00028   AQ_DECLARE_AQS_VOID(CanvasRectangle, CanvasPolygonalItem);
00029 
00030   //@AQ_BEGIN_DEF_PUB_SLOTS@
00031 public slots:
00032   int width() const;
00033   int height() const;
00034   void setSize(int, int);
00035   QSize size() const;
00036   QRect rect() const;
00037   virtual int rtti() const;
00038 
00039 protected:
00040   static void *construct(const QSArgumentList &args) {
00041     QMap<int, QStringList> candidates;
00042     candidates[1].append(QString::fromLatin1("QCanvas*"));
00043     candidates[2].append(QString::fromLatin1("QRect,QCanvas*"));
00044     candidates[5].append(QString::fromLatin1("int,int,int,int,QCanvas*"));
00045     QString sgt(castArgsSignature(args, candidates));
00046     if (sgt == QString::fromLatin1("QCanvas*"))
00047       return new QCanvasRectangle(argValue<QCanvas *>(args[0]));
00048     if (sgt == QString::fromLatin1("QRect,QCanvas*"))
00049       return new QCanvasRectangle(*(argValue<QRect *>(args[0])),
00050                                   argValue<QCanvas *>(args[1]));
00051     if (sgt == QString::fromLatin1("int,int,int,int,QCanvas*"))
00052       return new QCanvasRectangle(args[0].variant().toInt(),
00053                                   args[1].variant().toInt(),
00054                                   args[2].variant().toInt(),
00055                                   args[3].variant().toInt(),
00056                                   argValue<QCanvas *>(args[4]));
00057     return 0;
00058   }
00059 
00060 public:
00061   static QMap<int, QStringList> candidateConstructors() {
00062     QMap<int, QStringList> candidates;
00063     candidates[1].append(QString::fromLatin1("QCanvas*"));
00064     candidates[2].append(QString::fromLatin1("QRect,QCanvas*"));
00065     candidates[5].append(QString::fromLatin1("int,int,int,int,QCanvas*"));
00066     return candidates;
00067   }
00068   //@AQ_END_DEF_PUB_SLOTS@
00069 };
00070 
00071 //@AQ_BEGIN_IMP_PUB_SLOTS@
00072 inline int AQSCanvasRectangle::width() const
00073 {
00074   AQ_CALL_RET_V(width(), int);
00075 }
00076 inline int AQSCanvasRectangle::height() const
00077 {
00078   AQ_CALL_RET_V(height(), int);
00079 }
00080 inline void AQSCanvasRectangle::setSize(int arg0,  int arg1)
00081 {
00082   AQ_CALL_VOID(setSize(arg0, arg1));
00083 }
00084 inline QSize AQSCanvasRectangle::size() const
00085 {
00086   AQ_CALL_RET_V(size(), QSize);
00087 }
00088 inline QRect AQSCanvasRectangle::rect() const
00089 {
00090   AQ_CALL_RET_V(rect(), QRect);
00091 }
00092 inline int AQSCanvasRectangle::rtti() const
00093 {
00094   AQ_CALL_RET_V(rtti(), int);
00095 }
00096 //@AQ_END_IMP_PUB_SLOTS@
00097 
00098 #endif /* AQSCANVASRECTANGLE_P_H_ */
00099 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'