Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSCheckListItem_p.h 00003 ------------------- 00004 begin : 30/01/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 AQSCHECKLISTITEM_P_H_ 00020 #define AQSCHECKLISTITEM_P_H_ 00021 00022 #include "AQSListViewItem_p.h" 00023 #include <qlistview.h> 00024 00025 class AQSCheckListItem : public AQSListViewItem 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(CheckListItem, ListViewItem); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 void setOn(bool); 00034 bool isOn() const; 00035 uint type() const; 00036 QString text() const; 00037 void setTristate(bool); 00038 bool isTristate() const; 00039 uint state() const; 00040 void setState(uint); 00041 00042 protected: 00043 static void *construct(const QSArgumentList &args) { 00044 QMap<int, QStringList> candidates; 00045 candidates[2].append(QString::fromLatin1("QCheckListItem*,QString")); 00046 candidates[3].append(QString::fromLatin1("QCheckListItem*,QString,QCheckListItem::Type")); 00047 candidates[3].append(QString::fromLatin1("QCheckListItem*,QListViewItem*,QString")); 00048 candidates[4].append(QString::fromLatin1("QCheckListItem*,QListViewItem*,QString,QCheckListItem::Type")); 00049 candidates[2].append(QString::fromLatin1("QListViewItem*,QString")); 00050 candidates[3].append(QString::fromLatin1("QListViewItem*,QString,QCheckListItem::Type")); 00051 candidates[3].append(QString::fromLatin1("QListViewItem*,QListViewItem*,QString")); 00052 candidates[4].append(QString::fromLatin1("QListViewItem*,QListViewItem*,QString,QCheckListItem::Type")); 00053 candidates[2].append(QString::fromLatin1("QListView*,QString")); 00054 candidates[3].append(QString::fromLatin1("QListView*,QString,QCheckListItem::Type")); 00055 candidates[3].append(QString::fromLatin1("QListView*,QListViewItem*,QString")); 00056 candidates[4].append(QString::fromLatin1("QListView*,QListViewItem*,QString,QCheckListItem::Type")); 00057 candidates[3].append(QString::fromLatin1("QListViewItem*,QString,QPixmap*")); 00058 candidates[3].append(QString::fromLatin1("QListView*,QString,QPixmap*")); 00059 QString sgt(castArgsSignature(args, candidates)); 00060 if (sgt == QString::fromLatin1("QCheckListItem*,QString")) 00061 return new QCheckListItem(argValue<QCheckListItem *>(args[0]), 00062 *(argValue<QString *>(args[1]))); 00063 if (sgt == QString::fromLatin1("QCheckListItem*,QString,QCheckListItem::Type")) 00064 return new QCheckListItem(argValue<QCheckListItem *>(args[0]), 00065 *(argValue<QString *>(args[1])), 00066 static_cast<QCheckListItem::Type>(args[2].variant().toUInt())); 00067 if (sgt == QString::fromLatin1("QCheckListItem*,QListViewItem*,QString")) 00068 return new QCheckListItem(argValue<QCheckListItem *>(args[0]), 00069 argValue<QListViewItem *>(args[1]), 00070 *(argValue<QString *>(args[2]))); 00071 if (sgt == QString::fromLatin1("QCheckListItem*,QListViewItem*,QString,QCheckListItem::Type")) 00072 return new QCheckListItem(argValue<QCheckListItem *>(args[0]), 00073 argValue<QListViewItem *>(args[1]), 00074 *(argValue<QString *>(args[2])), 00075 static_cast<QCheckListItem::Type>(args[3].variant().toUInt())); 00076 if (sgt == QString::fromLatin1("QListViewItem*,QString")) 00077 return new QCheckListItem(argValue<QListViewItem *>(args[0]), 00078 *(argValue<QString *>(args[1]))); 00079 if (sgt == QString::fromLatin1("QListViewItem*,QString,QCheckListItem::Type")) 00080 return new QCheckListItem(argValue<QListViewItem *>(args[0]), 00081 *(argValue<QString *>(args[1])), 00082 static_cast<QCheckListItem::Type>(args[2].variant().toUInt())); 00083 if (sgt == QString::fromLatin1("QListViewItem*,QListViewItem*,QString")) 00084 return new QCheckListItem(argValue<QListViewItem *>(args[0]), 00085 argValue<QListViewItem *>(args[1]), 00086 *(argValue<QString *>(args[2]))); 00087 if (sgt == QString::fromLatin1("QListViewItem*,QListViewItem*,QString,QCheckListItem::Type")) 00088 return new QCheckListItem(argValue<QListViewItem *>(args[0]), 00089 argValue<QListViewItem *>(args[1]), 00090 *(argValue<QString *>(args[2])), 00091 static_cast<QCheckListItem::Type>(args[3].variant().toUInt())); 00092 if (sgt == QString::fromLatin1("QListView*,QString")) 00093 return new QCheckListItem(argValue<QListView *>(args[0]), 00094 *(argValue<QString *>(args[1]))); 00095 if (sgt == QString::fromLatin1("QListView*,QString,QCheckListItem::Type")) 00096 return new QCheckListItem(argValue<QListView *>(args[0]), 00097 *(argValue<QString *>(args[1])), 00098 static_cast<QCheckListItem::Type>(args[2].variant().toUInt())); 00099 if (sgt == QString::fromLatin1("QListView*,QListViewItem*,QString")) 00100 return new QCheckListItem(argValue<QListView *>(args[0]), 00101 argValue<QListViewItem *>(args[1]), 00102 *(argValue<QString *>(args[2]))); 00103 if (sgt == QString::fromLatin1("QListView*,QListViewItem*,QString,QCheckListItem::Type")) 00104 return new QCheckListItem(argValue<QListView *>(args[0]), 00105 argValue<QListViewItem *>(args[1]), 00106 *(argValue<QString *>(args[2])), 00107 static_cast<QCheckListItem::Type>(args[3].variant().toUInt())); 00108 if (sgt == QString::fromLatin1("QListViewItem*,QString,QPixmap*")) 00109 return new QCheckListItem(argValue<QListViewItem *>(args[0]), 00110 *(argValue<QString *>(args[1])), 00111 *argValue<QPixmap *>(args[2])); 00112 if (sgt == QString::fromLatin1("QListView*,QString,QPixmap*")) 00113 return new QCheckListItem(argValue<QListView *>(args[0]), 00114 *(argValue<QString *>(args[1])), 00115 *argValue<QPixmap *>(args[2])); 00116 return 0; 00117 } 00118 00119 public: 00120 static QMap<int, QStringList> candidateConstructors() { 00121 QMap<int, QStringList> candidates; 00122 candidates[2].append(QString::fromLatin1("QCheckListItem*,QString")); 00123 candidates[3].append(QString::fromLatin1("QCheckListItem*,QString,QCheckListItem::Type")); 00124 candidates[3].append(QString::fromLatin1("QCheckListItem*,QListViewItem*,QString")); 00125 candidates[4].append(QString::fromLatin1("QCheckListItem*,QListViewItem*,QString,QCheckListItem::Type")); 00126 candidates[2].append(QString::fromLatin1("QListViewItem*,QString")); 00127 candidates[3].append(QString::fromLatin1("QListViewItem*,QString,QCheckListItem::Type")); 00128 candidates[3].append(QString::fromLatin1("QListViewItem*,QListViewItem*,QString")); 00129 candidates[4].append(QString::fromLatin1("QListViewItem*,QListViewItem*,QString,QCheckListItem::Type")); 00130 candidates[2].append(QString::fromLatin1("QListView*,QString")); 00131 candidates[3].append(QString::fromLatin1("QListView*,QString,QCheckListItem::Type")); 00132 candidates[3].append(QString::fromLatin1("QListView*,QListViewItem*,QString")); 00133 candidates[4].append(QString::fromLatin1("QListView*,QListViewItem*,QString,QCheckListItem::Type")); 00134 candidates[3].append(QString::fromLatin1("QListViewItem*,QString,QPixmap*")); 00135 candidates[3].append(QString::fromLatin1("QListView*,QString,QPixmap*")); 00136 return candidates; 00137 } 00138 //@AQ_END_DEF_PUB_SLOTS@ 00139 }; 00140 00141 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00142 inline void AQSCheckListItem::setOn(bool arg0) 00143 { 00144 AQ_CALL_VOID(setOn(arg0)); 00145 } 00146 inline bool AQSCheckListItem::isOn() const 00147 { 00148 AQ_CALL_RET_V(isOn(), bool); 00149 } 00150 inline uint AQSCheckListItem::type() const 00151 { 00152 AQ_CALL_RET_V(type(), uint); 00153 } 00154 inline QString AQSCheckListItem::text() const 00155 { 00156 AQ_CALL_RET_V(text(), QString); 00157 } 00158 inline void AQSCheckListItem::setTristate(bool arg0) 00159 { 00160 AQ_CALL_VOID(setTristate(arg0)); 00161 } 00162 inline bool AQSCheckListItem::isTristate() const 00163 { 00164 AQ_CALL_RET_V(isTristate(), bool); 00165 } 00166 inline uint AQSCheckListItem::state() const 00167 { 00168 AQ_CALL_RET_V(state(), uint); 00169 } 00170 inline void AQSCheckListItem::setState(uint arg0) 00171 { 00172 AQ_CALL_VOID(setState(static_cast<QCheckListItem::ToggleState>(arg0))); 00173 } 00174 //@AQ_END_IMP_PUB_SLOTS@ 00175 00176 #endif /* AQSCHECKLISTITEM_P_H_ */ 00177 // @AQSVOIDPTR@