Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSPicture_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSPicture_p.h
00003  -------------------
00004  begin                : 14/02/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  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSPICTURE_P_H_
00020 #define AQSPICTURE_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include <qpicture.h>
00024 
00025 // @AQ_PTR_INDIRECTION@
00026 
00027 class AQSPicture : public AQSVoidPtr
00028 {
00029   Q_OBJECT
00030 
00031   AQ_DECLARE_AQS_VOID(Picture, VoidPtr);
00032 
00033 protected:
00034   void specializedInternalFinish() {
00035     if (!wrap_)
00036       delete o_;
00037   }
00038 
00039 public slots:
00040   QPaintDevice *paintDevice() const {
00041     return static_cast<QPaintDevice *>(o_);
00042   }
00043 
00044   //@AQ_BEGIN_DEF_PUB_SLOTS@
00045 public slots:
00046   bool isNull() const;
00047   uint size() const;
00048   bool load(const QString &, const char* = 0);
00049   bool save(const QString &, const char* = 0);
00050   QRect boundingRect() const;
00051   void setBoundingRect(const QRect &);
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("int"));
00058     QString sgt(castArgsSignature(args, candidates));
00059     if (sgt.isEmpty())
00060       return new QPicture;
00061     if (sgt == QString::fromLatin1("int"))
00062       return new QPicture(args[0].variant().toInt());
00063     return 0;
00064   }
00065 
00066 public:
00067   static QMap<int, QStringList> candidateConstructors() {
00068     QMap<int, QStringList> candidates;
00069     candidates[0].append(QString::null);
00070     candidates[1].append(QString::fromLatin1("int"));
00071     return candidates;
00072   }
00073   //@AQ_END_DEF_PUB_SLOTS@
00074 };
00075 
00076 //@AQ_BEGIN_IMP_PUB_SLOTS@
00077 inline bool AQSPicture::isNull() const
00078 {
00079   AQ_CALL_RET_V(isNull(), bool);
00080 }
00081 inline uint AQSPicture::size() const
00082 {
00083   AQ_CALL_RET_V(size(), uint);
00084 }
00085 inline bool AQSPicture::load(const QString &arg0,  const char *arg1)
00086 {
00087   AQ_CALL_RET_V(load(arg0, arg1), bool);
00088 }
00089 inline bool AQSPicture::save(const QString &arg0,  const char *arg1)
00090 {
00091   AQ_CALL_RET_V(save(arg0, arg1), bool);
00092 }
00093 inline QRect AQSPicture::boundingRect() const
00094 {
00095   AQ_CALL_RET_V(boundingRect(), QRect);
00096 }
00097 inline void AQSPicture::setBoundingRect(const QRect &arg0)
00098 {
00099   AQ_CALL_VOID(setBoundingRect(arg0));
00100 }
00101 //@AQ_END_IMP_PUB_SLOTS@
00102 
00103 #endif /* AQSPICTURE_P_H_ */
00104 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'