Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSIconView_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSIconView_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 AQSICONVIEW_P_H_
00020 #define AQSICONVIEW_P_H_
00021 
00022 #include "AQSScrollView_p.h"
00023 #include "AQSIconViewItem_p.h"
00024 #include <qiconview.h>
00025 
00026 class AQSIconView : public AQSScrollView
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_OBJECT(IconView, ScrollView);
00031 
00032 public slots:
00033   void removeCurrentItem() {
00034     if (!o_)
00035       return;
00036     delete o_->currentItem();
00037   }
00038 
00039   //@AQ_BEGIN_DEF_PUB_SLOTS@
00040 public slots:
00041   int index(const QIconViewItem *) const;
00042   int index(AQSIconViewItem *) const;
00043   QIconViewItem *firstItem() const;
00044   QIconViewItem *lastItem() const;
00045   QIconViewItem *currentItem() const;
00046   void setCurrentItem(QIconViewItem *);
00047   void setCurrentItem(AQSIconViewItem *);
00048   void setSelected(QIconViewItem *, bool, bool = FALSE);
00049   void setSelected(AQSIconViewItem *, bool, bool = FALSE);
00050   QIconViewItem *findItem(const QPoint &) const;
00051   QIconViewItem *findItem(const QString &, uint = BeginsWith) const;
00052   void selectAll(bool);
00053   void clearSelection();
00054   void invertSelection();
00055   void repaintItem(QIconViewItem *);
00056   void repaintItem(AQSIconViewItem *);
00057   void repaintSelectedItems();
00058   void ensureItemVisible(QIconViewItem *);
00059   void ensureItemVisible(AQSIconViewItem *);
00060   QIconViewItem *findFirstVisibleItem(const QRect &) const;
00061   QIconViewItem *findLastVisibleItem(const QRect &) const;
00062   void clear();
00063 
00064 protected:
00065   static void *construct(const QSArgumentList &args) {
00066     QMap<int, QStringList> candidates;
00067     candidates[0].append(QString::null);
00068     candidates[1].append(QString::fromLatin1("QWidget*"));
00069     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00070     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00071     QString sgt(castArgsSignature(args, candidates));
00072     if (sgt.isEmpty())
00073       return new QIconView;
00074     if (sgt == QString::fromLatin1("QWidget*"))
00075       return new QIconView(argValue<QWidget *>(args[0]));
00076     if (sgt == QString::fromLatin1("QWidget*,QString"))
00077       return new QIconView(argValue<QWidget *>(args[0]),
00078                            *(argValue<QString *>(args[1])));
00079     if (sgt == QString::fromLatin1("QWidget*,QString,WFlags"))
00080       return new QIconView(argValue<QWidget *>(args[0]),
00081                            *(argValue<QString *>(args[1])),
00082                            static_cast<WFlags>(args[2].variant().toUInt()));
00083     return 0;
00084   }
00085 
00086 public:
00087   static QMap<int, QStringList> candidateConstructors() {
00088     QMap<int, QStringList> candidates;
00089     candidates[0].append(QString::null);
00090     candidates[1].append(QString::fromLatin1("QWidget*"));
00091     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00092     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00093     return candidates;
00094   }
00095   //@AQ_END_DEF_PUB_SLOTS@
00096 };
00097 
00098 //@AQ_BEGIN_IMP_PUB_SLOTS@
00099 inline int AQSIconView::index(const QIconViewItem *arg0) const
00100 {
00101   AQ_CALL_RET_V(index(arg0), int);
00102 }
00103 inline int AQSIconView::index(AQSIconViewItem *arg0) const
00104 {
00105   AQ_CALL_RET_V(index(*arg0), int);
00106 }
00107 inline QIconViewItem *AQSIconView::firstItem() const
00108 {
00109   AQ_CALL_RET(firstItem());
00110 }
00111 inline QIconViewItem *AQSIconView::lastItem() const
00112 {
00113   AQ_CALL_RET(lastItem());
00114 }
00115 inline QIconViewItem *AQSIconView::currentItem() const
00116 {
00117   AQ_CALL_RET(currentItem());
00118 }
00119 inline void AQSIconView::setCurrentItem(QIconViewItem *arg0)
00120 {
00121   AQ_CALL_VOID(setCurrentItem(arg0));
00122 }
00123 inline void AQSIconView::setCurrentItem(AQSIconViewItem *arg0)
00124 {
00125   AQ_CALL_VOID(setCurrentItem(*arg0));
00126 }
00127 inline void AQSIconView::setSelected(QIconViewItem *arg0,  bool arg1,  bool arg2)
00128 {
00129   AQ_CALL_VOID(setSelected(arg0, arg1, arg2));
00130 }
00131 inline void AQSIconView::setSelected(AQSIconViewItem *arg0,  bool arg1,  bool arg2)
00132 {
00133   AQ_CALL_VOID(setSelected(*arg0, arg1, arg2));
00134 }
00135 inline QIconViewItem *AQSIconView::findItem(const QPoint &arg0) const
00136 {
00137   AQ_CALL_RET(findItem(arg0));
00138 }
00139 inline QIconViewItem *AQSIconView::findItem(const QString &arg0,  uint arg1) const
00140 {
00141   AQ_CALL_RET(findItem(arg0, arg1));
00142 }
00143 inline void AQSIconView::selectAll(bool arg0)
00144 {
00145   AQ_CALL_VOID(selectAll(arg0));
00146 }
00147 inline void AQSIconView::clearSelection()
00148 {
00149   AQ_CALL_VOID(clearSelection());
00150 }
00151 inline void AQSIconView::invertSelection()
00152 {
00153   AQ_CALL_VOID(invertSelection());
00154 }
00155 inline void AQSIconView::repaintItem(QIconViewItem *arg0)
00156 {
00157   AQ_CALL_VOID(repaintItem(arg0));
00158 }
00159 inline void AQSIconView::repaintItem(AQSIconViewItem *arg0)
00160 {
00161   AQ_CALL_VOID(repaintItem(*arg0));
00162 }
00163 inline void AQSIconView::repaintSelectedItems()
00164 {
00165   AQ_CALL_VOID(repaintSelectedItems());
00166 }
00167 inline void AQSIconView::ensureItemVisible(QIconViewItem *arg0)
00168 {
00169   AQ_CALL_VOID(ensureItemVisible(arg0));
00170 }
00171 inline void AQSIconView::ensureItemVisible(AQSIconViewItem *arg0)
00172 {
00173   AQ_CALL_VOID(ensureItemVisible(*arg0));
00174 }
00175 inline QIconViewItem *AQSIconView::findFirstVisibleItem(const QRect &arg0) const
00176 {
00177   AQ_CALL_RET(findFirstVisibleItem(arg0));
00178 }
00179 inline QIconViewItem *AQSIconView::findLastVisibleItem(const QRect &arg0) const
00180 {
00181   AQ_CALL_RET(findLastVisibleItem(arg0));
00182 }
00183 inline void AQSIconView::clear()
00184 {
00185   AQ_CALL_VOID(clear());
00186 }
00187 //@AQ_END_IMP_PUB_SLOTS@
00188 
00189 #endif /* AQSICONVIEW_P_H_ */
00190 
00191 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'