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