Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSTab_p.h 00003 ------------------- 00004 begin : 06/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 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 AQSTAB_P_H_ 00020 #define AQSTAB_P_H_ 00021 00022 #include "AQSIconSet_p.h" 00023 #include <qtabbar.h> 00024 00025 class AQSTab : public AQSVoidPtr 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(Tab, VoidPtr); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 void setText(const QString &); 00034 QString text() const; 00035 void setIconSet(QIconSet *); 00036 void setIconSet(AQSIconSet *); 00037 QIconSet *iconSet() const; 00038 void setRect(const QRect &); 00039 QRect rect() const; 00040 void setEnabled(bool); 00041 bool isEnabled() const; 00042 void setIdentifier(int); 00043 int identifier() const; 00044 00045 protected: 00046 static void *construct(const QSArgumentList &args) { 00047 QMap<int, QStringList> candidates; 00048 candidates[0].append(QString::null); 00049 candidates[1].append(QString::fromLatin1("QString")); 00050 candidates[1].append(QString::fromLatin1("QIconSet*")); 00051 candidates[2].append(QString::fromLatin1("QIconSet*,QString")); 00052 QString sgt(castArgsSignature(args, candidates)); 00053 if (sgt.isEmpty()) 00054 return new QTab; 00055 if (sgt == QString::fromLatin1("QString")) 00056 return new QTab(*(argValue<QString *>(args[0]))); 00057 if (sgt == QString::fromLatin1("QIconSet*")) 00058 return new QTab(*argValue<QIconSet *>(args[0])); 00059 if (sgt == QString::fromLatin1("QIconSet*,QString")) 00060 return new QTab(*argValue<QIconSet *>(args[0]), 00061 *(argValue<QString *>(args[1]))); 00062 return 0; 00063 } 00064 00065 public: 00066 static QMap<int, QStringList> candidateConstructors() { 00067 QMap<int, QStringList> candidates; 00068 candidates[0].append(QString::null); 00069 candidates[1].append(QString::fromLatin1("QString")); 00070 candidates[1].append(QString::fromLatin1("QIconSet*")); 00071 candidates[2].append(QString::fromLatin1("QIconSet*,QString")); 00072 return candidates; 00073 } 00074 //@AQ_END_DEF_PUB_SLOTS@ 00075 }; 00076 00077 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00078 inline void AQSTab::setText(const QString &arg0) 00079 { 00080 AQ_CALL_VOID(setText(arg0)); 00081 } 00082 inline QString AQSTab::text() const 00083 { 00084 AQ_CALL_RET_V(text(), QString); 00085 } 00086 inline void AQSTab::setIconSet(QIconSet *arg0) 00087 { 00088 AQ_CALL_VOID(setIconSet(*arg0)); 00089 } 00090 inline void AQSTab::setIconSet(AQSIconSet *arg0) 00091 { 00092 AQ_CALL_VOID(setIconSet(*arg0)); 00093 } 00094 inline QIconSet *AQSTab::iconSet() const 00095 { 00096 AQ_CALL_RET(iconSet()); 00097 } 00098 inline void AQSTab::setRect(const QRect &arg0) 00099 { 00100 AQ_CALL_VOID(setRect(arg0)); 00101 } 00102 inline QRect AQSTab::rect() const 00103 { 00104 AQ_CALL_RET_V(rect(), QRect); 00105 } 00106 inline void AQSTab::setEnabled(bool arg0) 00107 { 00108 AQ_CALL_VOID(setEnabled(arg0)); 00109 } 00110 inline bool AQSTab::isEnabled() const 00111 { 00112 AQ_CALL_RET_V(isEnabled(), bool); 00113 } 00114 inline void AQSTab::setIdentifier(int arg0) 00115 { 00116 AQ_CALL_VOID(setIdentifier(arg0)); 00117 } 00118 inline int AQSTab::identifier() const 00119 { 00120 AQ_CALL_RET_V(identifier(), int); 00121 } 00122 //@AQ_END_IMP_PUB_SLOTS@ 00123 00124 #endif /* AQSTAB_P_H_ */ 00125 // @AQSVOIDPTR@