Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSListBoxItem_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 AQSLISTBOXITEM_P_H_ 00020 #define AQSLISTBOXITEM_P_H_ 00021 00022 #include "AQSPixmap_p.h" 00023 #include <qlistbox.h> 00024 00025 class AQSListBoxItem : public AQSVoidPtr 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(ListBoxItem, VoidPtr); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 QString text() const; 00034 const QPixmap *pixmap() const; 00035 int height(const QListBox *) const; 00036 int width(const QListBox *) const; 00037 bool isSelected() const; 00038 bool isCurrent() const; 00039 QListBox *listBox() const; 00040 void setSelectable(bool); 00041 bool isSelectable() const; 00042 QListBoxItem *next() const; 00043 QListBoxItem *prev() const; 00044 00045 protected: 00046 static void *construct(const QSArgumentList &args) { 00047 return 0; 00048 } 00049 //@AQ_END_DEF_PUB_SLOTS@ 00050 }; 00051 00052 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00053 inline QString AQSListBoxItem::text() const 00054 { 00055 AQ_CALL_RET_V(text(), QString); 00056 } 00057 inline const QPixmap *AQSListBoxItem::pixmap() const 00058 { 00059 AQ_CALL_RET(pixmap()); 00060 } 00061 inline int AQSListBoxItem::height(const QListBox *arg0) const 00062 { 00063 AQ_CALL_RET_V(height(arg0), int); 00064 } 00065 inline int AQSListBoxItem::width(const QListBox *arg0) const 00066 { 00067 AQ_CALL_RET_V(width(arg0), int); 00068 } 00069 inline bool AQSListBoxItem::isSelected() const 00070 { 00071 AQ_CALL_RET_V(isSelected(), bool); 00072 } 00073 inline bool AQSListBoxItem::isCurrent() const 00074 { 00075 AQ_CALL_RET_V(isCurrent(), bool); 00076 } 00077 inline QListBox *AQSListBoxItem::listBox() const 00078 { 00079 AQ_CALL_RET(listBox()); 00080 } 00081 inline void AQSListBoxItem::setSelectable(bool arg0) 00082 { 00083 AQ_CALL_VOID(setSelectable(arg0)); 00084 } 00085 inline bool AQSListBoxItem::isSelectable() const 00086 { 00087 AQ_CALL_RET_V(isSelectable(), bool); 00088 } 00089 inline QListBoxItem *AQSListBoxItem::next() const 00090 { 00091 AQ_CALL_RET(next()); 00092 } 00093 inline QListBoxItem *AQSListBoxItem::prev() const 00094 { 00095 AQ_CALL_RET(prev()); 00096 } 00097 //@AQ_END_IMP_PUB_SLOTS@ 00098 00099 #endif /* AQSLISTBOXITEM_P_H_ */ 00100 // @AQSVOIDPTR@