Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSIconViewItem_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSIconViewItem_p.h
00003  -------------------
00004  begin                : 29/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 AQSICONVIEWITEM_P_H_
00020 #define AQSICONVIEWITEM_P_H_
00021 
00022 #include "AQSPixmap_p.h"
00023 #include "AQSPicture_p.h"
00024 #include <qiconview.h>
00025 
00026 class AQSIconViewItem : public AQSVoidPtr
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_VOID(IconViewItem, VoidPtr);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   void setRenameEnabled(bool);
00035   void setDragEnabled(bool);
00036   void setDropEnabled(bool);
00037   QString text() const;
00038   QPixmap *pixmap() const;
00039   QPicture *picture() const;
00040   QString key() const;
00041   bool renameEnabled() const;
00042   bool dragEnabled() const;
00043   bool dropEnabled() const;
00044   QIconView *iconView() const;
00045   QIconViewItem *prevItem() const;
00046   QIconViewItem *nextItem() const;
00047   int index() const;
00048   void setSelected(bool, bool);
00049   void setSelected(bool);
00050   void setSelectable(bool);
00051   bool isSelected() const;
00052   bool isSelectable() const;
00053   void repaint();
00054   bool move(int, int);
00055   void moveBy(int, int);
00056   bool move(const QPoint &);
00057   void moveBy(const QPoint &);
00058   QRect rect() const;
00059   int x() const;
00060   int y() const;
00061   int width() const;
00062   int height() const;
00063   QSize size() const;
00064   QPoint pos() const;
00065   QRect textRect(bool = TRUE) const;
00066   QRect pixmapRect(bool = TRUE) const;
00067   bool contains(const QPoint &) const;
00068   bool intersects(const QRect &) const;
00069   int compare(QIconViewItem *) const;
00070   int compare(AQSIconViewItem *) const;
00071   void setText(const QString &);
00072   void setPixmap(QPixmap *);
00073   void setPixmap(AQSPixmap *);
00074   void setPicture(QPicture *);
00075   void setPicture(AQSPicture *);
00076   void setText(const QString &, bool, bool = TRUE);
00077   void setPixmap(QPixmap *, bool, bool = TRUE);
00078   void setPixmap(AQSPixmap *, bool, bool = TRUE);
00079   void setKey(const QString &);
00080 
00081 protected:
00082   static void *construct(const QSArgumentList &args) {
00083     QMap<int, QStringList> candidates;
00084     candidates[1].append(QString::fromLatin1("QIconView*"));
00085     candidates[2].append(QString::fromLatin1("QIconView*,QIconViewItem*"));
00086     candidates[2].append(QString::fromLatin1("QIconView*,QString"));
00087     candidates[3].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString"));
00088     candidates[3].append(QString::fromLatin1("QIconView*,QString,QPixmap*"));
00089     candidates[4].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPixmap*"));
00090     candidates[3].append(QString::fromLatin1("QIconView*,QString,QPicture*"));
00091     candidates[4].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPicture*"));
00092     QString sgt(castArgsSignature(args, candidates));
00093     if (sgt == QString::fromLatin1("QIconView*"))
00094       return new QIconViewItem(argValue<QIconView *>(args[0]));
00095     if (sgt == QString::fromLatin1("QIconView*,QIconViewItem*"))
00096       return new QIconViewItem(argValue<QIconView *>(args[0]),
00097                                argValue<QIconViewItem *>(args[1]));
00098     if (sgt == QString::fromLatin1("QIconView*,QString"))
00099       return new QIconViewItem(argValue<QIconView *>(args[0]),
00100                                *(argValue<QString *>(args[1])));
00101     if (sgt == QString::fromLatin1("QIconView*,QIconViewItem*,QString"))
00102       return new QIconViewItem(argValue<QIconView *>(args[0]),
00103                                argValue<QIconViewItem *>(args[1]),
00104                                *(argValue<QString *>(args[2])));
00105     if (sgt == QString::fromLatin1("QIconView*,QString,QPixmap*"))
00106       return new QIconViewItem(argValue<QIconView *>(args[0]),
00107                                *(argValue<QString *>(args[1])),
00108                                *argValue<QPixmap *>(args[2]));
00109     if (sgt == QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPixmap*"))
00110       return new QIconViewItem(argValue<QIconView *>(args[0]),
00111                                argValue<QIconViewItem *>(args[1]),
00112                                *(argValue<QString *>(args[2])),
00113                                *argValue<QPixmap *>(args[3]));
00114     if (sgt == QString::fromLatin1("QIconView*,QString,QPicture*"))
00115       return new QIconViewItem(argValue<QIconView *>(args[0]),
00116                                *(argValue<QString *>(args[1])),
00117                                *argValue<QPicture *>(args[2]));
00118     if (sgt == QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPicture*"))
00119       return new QIconViewItem(argValue<QIconView *>(args[0]),
00120                                argValue<QIconViewItem *>(args[1]),
00121                                *(argValue<QString *>(args[2])),
00122                                *argValue<QPicture *>(args[3]));
00123     return 0;
00124   }
00125 
00126 public:
00127   static QMap<int, QStringList> candidateConstructors() {
00128     QMap<int, QStringList> candidates;
00129     candidates[1].append(QString::fromLatin1("QIconView*"));
00130     candidates[2].append(QString::fromLatin1("QIconView*,QIconViewItem*"));
00131     candidates[2].append(QString::fromLatin1("QIconView*,QString"));
00132     candidates[3].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString"));
00133     candidates[3].append(QString::fromLatin1("QIconView*,QString,QPixmap*"));
00134     candidates[4].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPixmap*"));
00135     candidates[3].append(QString::fromLatin1("QIconView*,QString,QPicture*"));
00136     candidates[4].append(QString::fromLatin1("QIconView*,QIconViewItem*,QString,QPicture*"));
00137     return candidates;
00138   }
00139   //@AQ_END_DEF_PUB_SLOTS@
00140 };
00141 
00142 //@AQ_BEGIN_IMP_PUB_SLOTS@
00143 inline void AQSIconViewItem::setRenameEnabled(bool arg0)
00144 {
00145   AQ_CALL_VOID(setRenameEnabled(arg0));
00146 }
00147 inline void AQSIconViewItem::setDragEnabled(bool arg0)
00148 {
00149   AQ_CALL_VOID(setDragEnabled(arg0));
00150 }
00151 inline void AQSIconViewItem::setDropEnabled(bool arg0)
00152 {
00153   AQ_CALL_VOID(setDropEnabled(arg0));
00154 }
00155 inline QString AQSIconViewItem::text() const
00156 {
00157   AQ_CALL_RET_V(text(), QString);
00158 }
00159 inline QPixmap *AQSIconViewItem::pixmap() const
00160 {
00161   AQ_CALL_RET(pixmap());
00162 }
00163 inline QPicture *AQSIconViewItem::picture() const
00164 {
00165   AQ_CALL_RET(picture());
00166 }
00167 inline QString AQSIconViewItem::key() const
00168 {
00169   AQ_CALL_RET_V(key(), QString);
00170 }
00171 inline bool AQSIconViewItem::renameEnabled() const
00172 {
00173   AQ_CALL_RET_V(renameEnabled(), bool);
00174 }
00175 inline bool AQSIconViewItem::dragEnabled() const
00176 {
00177   AQ_CALL_RET_V(dragEnabled(), bool);
00178 }
00179 inline bool AQSIconViewItem::dropEnabled() const
00180 {
00181   AQ_CALL_RET_V(dropEnabled(), bool);
00182 }
00183 inline QIconView *AQSIconViewItem::iconView() const
00184 {
00185   AQ_CALL_RET(iconView());
00186 }
00187 inline QIconViewItem *AQSIconViewItem::prevItem() const
00188 {
00189   AQ_CALL_RET(prevItem());
00190 }
00191 inline QIconViewItem *AQSIconViewItem::nextItem() const
00192 {
00193   AQ_CALL_RET(nextItem());
00194 }
00195 inline int AQSIconViewItem::index() const
00196 {
00197   AQ_CALL_RET_V(index(), int);
00198 }
00199 inline void AQSIconViewItem::setSelected(bool arg0,  bool arg1)
00200 {
00201   AQ_CALL_VOID(setSelected(arg0, arg1));
00202 }
00203 inline void AQSIconViewItem::setSelected(bool arg0)
00204 {
00205   AQ_CALL_VOID(setSelected(arg0));
00206 }
00207 inline void AQSIconViewItem::setSelectable(bool arg0)
00208 {
00209   AQ_CALL_VOID(setSelectable(arg0));
00210 }
00211 inline bool AQSIconViewItem::isSelected() const
00212 {
00213   AQ_CALL_RET_V(isSelected(), bool);
00214 }
00215 inline bool AQSIconViewItem::isSelectable() const
00216 {
00217   AQ_CALL_RET_V(isSelectable(), bool);
00218 }
00219 inline void AQSIconViewItem::repaint()
00220 {
00221   AQ_CALL_VOID(repaint());
00222 }
00223 inline bool AQSIconViewItem::move(int arg0,  int arg1)
00224 {
00225   AQ_CALL_RET_V(move(arg0, arg1), bool);
00226 }
00227 inline void AQSIconViewItem::moveBy(int arg0,  int arg1)
00228 {
00229   AQ_CALL_VOID(moveBy(arg0, arg1));
00230 }
00231 inline bool AQSIconViewItem::move(const QPoint &arg0)
00232 {
00233   AQ_CALL_RET_V(move(arg0), bool);
00234 }
00235 inline void AQSIconViewItem::moveBy(const QPoint &arg0)
00236 {
00237   AQ_CALL_VOID(moveBy(arg0));
00238 }
00239 inline QRect AQSIconViewItem::rect() const
00240 {
00241   AQ_CALL_RET_V(rect(), QRect);
00242 }
00243 inline int AQSIconViewItem::x() const
00244 {
00245   AQ_CALL_RET_V(x(), int);
00246 }
00247 inline int AQSIconViewItem::y() const
00248 {
00249   AQ_CALL_RET_V(y(), int);
00250 }
00251 inline int AQSIconViewItem::width() const
00252 {
00253   AQ_CALL_RET_V(width(), int);
00254 }
00255 inline int AQSIconViewItem::height() const
00256 {
00257   AQ_CALL_RET_V(height(), int);
00258 }
00259 inline QSize AQSIconViewItem::size() const
00260 {
00261   AQ_CALL_RET_V(size(), QSize);
00262 }
00263 inline QPoint AQSIconViewItem::pos() const
00264 {
00265   AQ_CALL_RET_V(pos(), QPoint);
00266 }
00267 inline QRect AQSIconViewItem::textRect(bool arg0) const
00268 {
00269   AQ_CALL_RET_V(textRect(arg0), QRect);
00270 }
00271 inline QRect AQSIconViewItem::pixmapRect(bool arg0) const
00272 {
00273   AQ_CALL_RET_V(pixmapRect(arg0), QRect);
00274 }
00275 inline bool AQSIconViewItem::contains(const QPoint &arg0) const
00276 {
00277   AQ_CALL_RET_V(contains(arg0), bool);
00278 }
00279 inline bool AQSIconViewItem::intersects(const QRect &arg0) const
00280 {
00281   AQ_CALL_RET_V(intersects(arg0), bool);
00282 }
00283 inline int AQSIconViewItem::compare(QIconViewItem *arg0) const
00284 {
00285   AQ_CALL_RET_V(compare(arg0), int);
00286 }
00287 inline int AQSIconViewItem::compare(AQSIconViewItem *arg0) const
00288 {
00289   AQ_CALL_RET_V(compare(*arg0), int);
00290 }
00291 inline void AQSIconViewItem::setText(const QString &arg0)
00292 {
00293   AQ_CALL_VOID(setText(arg0));
00294 }
00295 inline void AQSIconViewItem::setPixmap(QPixmap *arg0)
00296 {
00297   AQ_CALL_VOID(setPixmap(*arg0));
00298 }
00299 inline void AQSIconViewItem::setPixmap(AQSPixmap *arg0)
00300 {
00301   AQ_CALL_VOID(setPixmap(*arg0));
00302 }
00303 inline void AQSIconViewItem::setPicture(QPicture *arg0)
00304 {
00305   AQ_CALL_VOID(setPicture(*arg0));
00306 }
00307 inline void AQSIconViewItem::setPicture(AQSPicture *arg0)
00308 {
00309   AQ_CALL_VOID(setPicture(*arg0));
00310 }
00311 inline void AQSIconViewItem::setText(const QString &arg0,  bool arg1,  bool arg2)
00312 {
00313   AQ_CALL_VOID(setText(arg0, arg1, arg2));
00314 }
00315 inline void AQSIconViewItem::setPixmap(QPixmap *arg0,  bool arg1,  bool arg2)
00316 {
00317   AQ_CALL_VOID(setPixmap(*arg0, arg1, arg2));
00318 }
00319 inline void AQSIconViewItem::setPixmap(AQSPixmap *arg0,  bool arg1,  bool arg2)
00320 {
00321   AQ_CALL_VOID(setPixmap(*arg0, arg1, arg2));
00322 }
00323 inline void AQSIconViewItem::setKey(const QString &arg0)
00324 {
00325   AQ_CALL_VOID(setKey(arg0));
00326 }
00327 //@AQ_END_IMP_PUB_SLOTS@
00328 
00329 #endif /* AQSICONVIEWITEM_P_H_ */
00330 
00331 // @AQSVOIDPTR@
00332 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'