Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSComboTableItem_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 AQSCOMBOTABLEITEM_P_H_ 00020 #define AQSCOMBOTABLEITEM_P_H_ 00021 00022 #include "AQSTableItem_p.h" 00023 #include <qtable.h> 00024 00025 class AQSComboTableItem : public AQSTableItem 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(ComboTableItem, TableItem); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 void setCurrentItem(int); 00034 void setCurrentItem(const QString &); 00035 int currentItem() const; 00036 QString currentText() const; 00037 int count() const; 00038 QString text(int) const; 00039 void setEditable(bool); 00040 bool isEditable() const; 00041 void setStringList(const QStringList &); 00042 00043 protected: 00044 static void *construct(const QSArgumentList &args) { 00045 QMap<int, QStringList> candidates; 00046 candidates[2].append(QString::fromLatin1("QTable*,QStringList")); 00047 candidates[3].append(QString::fromLatin1("QTable*,QStringList,bool")); 00048 QString sgt(castArgsSignature(args, candidates)); 00049 if (sgt == QString::fromLatin1("QTable*,QStringList")) 00050 return new QComboTableItem(argValue<QTable *>(args[0]), 00051 *(argValue<QStringList *>(args[1]))); 00052 if (sgt == QString::fromLatin1("QTable*,QStringList,bool")) 00053 return new QComboTableItem(argValue<QTable *>(args[0]), 00054 *(argValue<QStringList *>(args[1])), 00055 args[2].variant().toBool()); 00056 return 0; 00057 } 00058 00059 public: 00060 static QMap<int, QStringList> candidateConstructors() { 00061 QMap<int, QStringList> candidates; 00062 candidates[2].append(QString::fromLatin1("QTable*,QStringList")); 00063 candidates[3].append(QString::fromLatin1("QTable*,QStringList,bool")); 00064 return candidates; 00065 } 00066 //@AQ_END_DEF_PUB_SLOTS@ 00067 }; 00068 00069 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00070 inline void AQSComboTableItem::setCurrentItem(int arg0) 00071 { 00072 AQ_CALL_VOID(setCurrentItem(arg0)); 00073 } 00074 inline void AQSComboTableItem::setCurrentItem(const QString &arg0) 00075 { 00076 AQ_CALL_VOID(setCurrentItem(arg0)); 00077 } 00078 inline int AQSComboTableItem::currentItem() const 00079 { 00080 AQ_CALL_RET_V(currentItem(), int); 00081 } 00082 inline QString AQSComboTableItem::currentText() const 00083 { 00084 AQ_CALL_RET_V(currentText(), QString); 00085 } 00086 inline int AQSComboTableItem::count() const 00087 { 00088 AQ_CALL_RET_V(count(), int); 00089 } 00090 inline QString AQSComboTableItem::text(int arg0) const 00091 { 00092 AQ_CALL_RET_V(text(arg0), QString); 00093 } 00094 inline void AQSComboTableItem::setEditable(bool arg0) 00095 { 00096 AQ_CALL_VOID(setEditable(arg0)); 00097 } 00098 inline bool AQSComboTableItem::isEditable() const 00099 { 00100 AQ_CALL_RET_V(isEditable(), bool); 00101 } 00102 inline void AQSComboTableItem::setStringList(const QStringList &arg0) 00103 { 00104 AQ_CALL_VOID(setStringList(arg0)); 00105 } 00106 //@AQ_END_IMP_PUB_SLOTS@ 00107 00108 #endif /* AQSCOMBOTABLEITEM_P_H_ */ 00109 // @AQSVOIDPTR@