Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSScrollView_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSScrollView_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 AQSSCROLLVIEW_P_H_
00020 #define AQSSCROLLVIEW_P_H_
00021 
00022 #include "AQSFrame_p.h"
00023 #include <qscrollview.h>
00024 
00025 class AQSScrollView : public AQSFrame
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_OBJECT(ScrollView, Frame);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void addChild(QWidget *, int = 0, int = 0);
00034   void moveChild(QWidget *, int, int);
00035   int childX(QWidget *);
00036   int childY(QWidget *);
00037   QWidget *cornerWidget() const;
00038   void setCornerWidget(QWidget *);
00039   QScrollBar *horizontalScrollBar() const;
00040   QScrollBar *verticalScrollBar() const;
00041   QWidget *viewport() const;
00042   QWidget *clipper() const;
00043   void updateContents(int, int, int, int);
00044   void updateContents(const QRect &);
00045   void updateContents();
00046   void repaintContents(int, int, int, int, bool = TRUE);
00047   void repaintContents(const QRect &, bool = TRUE);
00048   void repaintContents(bool = TRUE);
00049   void contentsToViewport(int, int, int &, int &) const;
00050   void viewportToContents(int, int, int &, int &) const;
00051   QPoint contentsToViewport(const QPoint &) const;
00052   QPoint viewportToContents(const QPoint &) const;
00053   void enableClipper(bool);
00054   void setStaticBackground(bool);
00055   bool hasStaticBackground() const;
00056   QSize viewportSize(int, int) const;
00057   bool isHorizontalSliderPressed();
00058   bool isVerticalSliderPressed();
00059 
00060 protected:
00061   static void *construct(const QSArgumentList &args) {
00062     QMap<int, QStringList> candidates;
00063     candidates[0].append(QString::null);
00064     candidates[1].append(QString::fromLatin1("QWidget*"));
00065     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00066     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00067     QString sgt(castArgsSignature(args, candidates));
00068     if (sgt.isEmpty())
00069       return new QScrollView;
00070     if (sgt == QString::fromLatin1("QWidget*"))
00071       return new QScrollView(argValue<QWidget *>(args[0]));
00072     if (sgt == QString::fromLatin1("QWidget*,QString"))
00073       return new QScrollView(argValue<QWidget *>(args[0]),
00074                              *(argValue<QString *>(args[1])));
00075     if (sgt == QString::fromLatin1("QWidget*,QString,WFlags"))
00076       return new QScrollView(argValue<QWidget *>(args[0]),
00077                              *(argValue<QString *>(args[1])),
00078                              static_cast<WFlags>(args[2].variant().toUInt()));
00079     return 0;
00080   }
00081 
00082 public:
00083   static QMap<int, QStringList> candidateConstructors() {
00084     QMap<int, QStringList> candidates;
00085     candidates[0].append(QString::null);
00086     candidates[1].append(QString::fromLatin1("QWidget*"));
00087     candidates[2].append(QString::fromLatin1("QWidget*,QString"));
00088     candidates[3].append(QString::fromLatin1("QWidget*,QString,WFlags"));
00089     return candidates;
00090   }
00091   //@AQ_END_DEF_PUB_SLOTS@
00092 };
00093 
00094 //@AQ_BEGIN_IMP_PUB_SLOTS@
00095 inline void AQSScrollView::addChild(QWidget *arg0,  int arg1,  int arg2)
00096 {
00097   AQ_CALL_VOID(addChild(arg0, arg1, arg2));
00098 }
00099 inline void AQSScrollView::moveChild(QWidget *arg0,  int arg1,  int arg2)
00100 {
00101   AQ_CALL_VOID(moveChild(arg0, arg1, arg2));
00102 }
00103 inline int AQSScrollView::childX(QWidget *arg0)
00104 {
00105   AQ_CALL_RET_V(childX(arg0), int);
00106 }
00107 inline int AQSScrollView::childY(QWidget *arg0)
00108 {
00109   AQ_CALL_RET_V(childY(arg0), int);
00110 }
00111 inline QWidget *AQSScrollView::cornerWidget() const
00112 {
00113   AQ_CALL_RET(cornerWidget());
00114 }
00115 inline void AQSScrollView::setCornerWidget(QWidget *arg0)
00116 {
00117   AQ_CALL_VOID(setCornerWidget(arg0));
00118 }
00119 inline QScrollBar *AQSScrollView::horizontalScrollBar() const
00120 {
00121   AQ_CALL_RET(horizontalScrollBar());
00122 }
00123 inline QScrollBar *AQSScrollView::verticalScrollBar() const
00124 {
00125   AQ_CALL_RET(verticalScrollBar());
00126 }
00127 inline QWidget *AQSScrollView::viewport() const
00128 {
00129   AQ_CALL_RET(viewport());
00130 }
00131 inline QWidget *AQSScrollView::clipper() const
00132 {
00133   AQ_CALL_RET(clipper());
00134 }
00135 inline void AQSScrollView::updateContents(int arg0,  int arg1,  int arg2,  int arg3)
00136 {
00137   AQ_CALL_VOID(updateContents(arg0, arg1, arg2, arg3));
00138 }
00139 inline void AQSScrollView::updateContents(const QRect &arg0)
00140 {
00141   AQ_CALL_VOID(updateContents(arg0));
00142 }
00143 inline void AQSScrollView::updateContents()
00144 {
00145   AQ_CALL_VOID(updateContents());
00146 }
00147 inline void AQSScrollView::repaintContents(int arg0,  int arg1,  int arg2,  int arg3,  bool arg4)
00148 {
00149   AQ_CALL_VOID(repaintContents(arg0, arg1, arg2, arg3, arg4));
00150 }
00151 inline void AQSScrollView::repaintContents(const QRect &arg0,  bool arg1)
00152 {
00153   AQ_CALL_VOID(repaintContents(arg0, arg1));
00154 }
00155 inline void AQSScrollView::repaintContents(bool arg0)
00156 {
00157   AQ_CALL_VOID(repaintContents(arg0));
00158 }
00159 inline void AQSScrollView::contentsToViewport(int arg0,  int arg1,  int &arg2,  int &arg3) const
00160 {
00161   AQ_CALL_VOID(contentsToViewport(arg0, arg1, arg2, arg3));
00162 }
00163 inline void AQSScrollView::viewportToContents(int arg0,  int arg1,  int &arg2,  int &arg3) const
00164 {
00165   AQ_CALL_VOID(viewportToContents(arg0, arg1, arg2, arg3));
00166 }
00167 inline QPoint AQSScrollView::contentsToViewport(const QPoint &arg0) const
00168 {
00169   AQ_CALL_RET_V(contentsToViewport(arg0), QPoint);
00170 }
00171 inline QPoint AQSScrollView::viewportToContents(const QPoint &arg0) const
00172 {
00173   AQ_CALL_RET_V(viewportToContents(arg0), QPoint);
00174 }
00175 inline void AQSScrollView::enableClipper(bool arg0)
00176 {
00177   AQ_CALL_VOID(enableClipper(arg0));
00178 }
00179 inline void AQSScrollView::setStaticBackground(bool arg0)
00180 {
00181   AQ_CALL_VOID(setStaticBackground(arg0));
00182 }
00183 inline bool AQSScrollView::hasStaticBackground() const
00184 {
00185   AQ_CALL_RET_V(hasStaticBackground(), bool);
00186 }
00187 inline QSize AQSScrollView::viewportSize(int arg0,  int arg1) const
00188 {
00189   AQ_CALL_RET_V(viewportSize(arg0, arg1), QSize);
00190 }
00191 inline bool AQSScrollView::isHorizontalSliderPressed()
00192 {
00193   AQ_CALL_RET_V(isHorizontalSliderPressed(), bool);
00194 }
00195 inline bool AQSScrollView::isVerticalSliderPressed()
00196 {
00197   AQ_CALL_RET_V(isVerticalSliderPressed(), bool);
00198 }
00199 //@AQ_END_IMP_PUB_SLOTS@
00200 
00201 #endif /* AQSSCROLLVIEW_P_H_ */
00202 // @AQSWIDGET@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'