Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSCanvasText_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 AQSCANVASTEXT_P_H_ 00020 #define AQSCANVASTEXT_P_H_ 00021 00022 #include "AQSCanvasItem_p.h" 00023 00024 class AQSCanvasText : public AQSCanvasItem 00025 { 00026 Q_OBJECT 00027 00028 AQ_DECLARE_AQS_VOID(CanvasText, CanvasItem); 00029 00030 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00031 public slots: 00032 void setText(const QString &); 00033 void setFont(const QFont &); 00034 void setColor(QColor *); 00035 void setColor(AQSColor *); 00036 QString text() const; 00037 QFont font() const; 00038 QColor *color() const; 00039 int textFlags() const; 00040 void setTextFlags(int); 00041 virtual QRect boundingRect() const; 00042 virtual int rtti() const; 00043 00044 protected: 00045 static void *construct(const QSArgumentList &args) { 00046 QMap<int, QStringList> candidates; 00047 candidates[1].append(QString::fromLatin1("QCanvas*")); 00048 candidates[2].append(QString::fromLatin1("QString,QCanvas*")); 00049 candidates[3].append(QString::fromLatin1("QString,QFont,QCanvas*")); 00050 QString sgt(castArgsSignature(args, candidates)); 00051 if (sgt == QString::fromLatin1("QCanvas*")) 00052 return new QCanvasText(argValue<QCanvas *>(args[0])); 00053 if (sgt == QString::fromLatin1("QString,QCanvas*")) 00054 return new QCanvasText(*(argValue<QString *>(args[0])), 00055 argValue<QCanvas *>(args[1])); 00056 if (sgt == QString::fromLatin1("QString,QFont,QCanvas*")) 00057 return new QCanvasText(*(argValue<QString *>(args[0])), 00058 *(argValue<QFont *>(args[1])), 00059 argValue<QCanvas *>(args[2])); 00060 return 0; 00061 } 00062 00063 public: 00064 static QMap<int, QStringList> candidateConstructors() { 00065 QMap<int, QStringList> candidates; 00066 candidates[1].append(QString::fromLatin1("QCanvas*")); 00067 candidates[2].append(QString::fromLatin1("QString,QCanvas*")); 00068 candidates[3].append(QString::fromLatin1("QString,QFont,QCanvas*")); 00069 return candidates; 00070 } 00071 //@AQ_END_DEF_PUB_SLOTS@ 00072 }; 00073 00074 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00075 inline void AQSCanvasText::setText(const QString &arg0) 00076 { 00077 AQ_CALL_VOID(setText(arg0)); 00078 } 00079 inline void AQSCanvasText::setFont(const QFont &arg0) 00080 { 00081 AQ_CALL_VOID(setFont(arg0)); 00082 } 00083 inline void AQSCanvasText::setColor(QColor *arg0) 00084 { 00085 AQ_CALL_VOID(setColor(*arg0)); 00086 } 00087 inline void AQSCanvasText::setColor(AQSColor *arg0) 00088 { 00089 AQ_CALL_VOID(setColor(*arg0)); 00090 } 00091 inline QString AQSCanvasText::text() const 00092 { 00093 AQ_CALL_RET_V(text(), QString); 00094 } 00095 inline QFont AQSCanvasText::font() const 00096 { 00097 AQ_CALL_RET_V(font(), QFont); 00098 } 00099 inline QColor *AQSCanvasText::color() const 00100 { 00101 AQ_CALL_RET_PTR(color(), QColor); 00102 } 00103 inline int AQSCanvasText::textFlags() const 00104 { 00105 AQ_CALL_RET_V(textFlags(), int); 00106 } 00107 inline void AQSCanvasText::setTextFlags(int arg0) 00108 { 00109 AQ_CALL_VOID(setTextFlags(arg0)); 00110 } 00111 inline QRect AQSCanvasText::boundingRect() const 00112 { 00113 AQ_CALL_RET_V(boundingRect(), QRect); 00114 } 00115 inline int AQSCanvasText::rtti() const 00116 { 00117 AQ_CALL_RET_V(rtti(), int); 00118 } 00119 //@AQ_END_IMP_PUB_SLOTS@ 00120 00121 #endif /* AQSCANVASTEXT_P_H_ */ 00122 // @AQSVOIDPTR@