Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSWheelEvent_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSWheelEvent_p.h
00003  -------------------
00004  begin                : 22/02/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 AQSWHEELEVENT_P_H_
00020 #define AQSWHEELEVENT_P_H_
00021 
00022 #include "AQSEvent_p.h"
00023 #include <qevent.h>
00024 
00025 class AQSWheelEvent : public AQSEvent
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(WheelEvent, Event);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   int delta() const;
00034   QPoint pos() const;
00035   QPoint globalPos() const;
00036   int x() const;
00037   int y() const;
00038   int globalX() const;
00039   int globalY() const;
00040   uint state() const;
00041   uint orientation() const;
00042   bool isAccepted() const;
00043   void accept();
00044   void ignore();
00045 
00046 protected:
00047   static void *construct(const QSArgumentList &args) {
00048     QMap<int, QStringList> candidates;
00049     candidates[3].append(QString::fromLatin1("QPoint,int,int"));
00050     candidates[4].append(QString::fromLatin1("QPoint,int,int,Qt::Orientation"));
00051     candidates[4].append(QString::fromLatin1("QPoint,QPoint,int,int"));
00052     candidates[5].append(QString::fromLatin1("QPoint,QPoint,int,int,Qt::Orientation"));
00053     QString sgt(castArgsSignature(args, candidates));
00054     if (sgt == QString::fromLatin1("QPoint,int,int"))
00055       return new QWheelEvent(*(argValue<QPoint *>(args[0])),
00056                              args[1].variant().toInt(),
00057                              args[2].variant().toInt());
00058     if (sgt == QString::fromLatin1("QPoint,int,int,Qt::Orientation"))
00059       return new QWheelEvent(*(argValue<QPoint *>(args[0])),
00060                              args[1].variant().toInt(),
00061                              args[2].variant().toInt(),
00062                              static_cast<Qt::Orientation>(args[3].variant().toUInt()));
00063     if (sgt == QString::fromLatin1("QPoint,QPoint,int,int"))
00064       return new QWheelEvent(*(argValue<QPoint *>(args[0])),
00065                              *(argValue<QPoint *>(args[1])),
00066                              args[2].variant().toInt(),
00067                              args[3].variant().toInt());
00068     if (sgt == QString::fromLatin1("QPoint,QPoint,int,int,Qt::Orientation"))
00069       return new QWheelEvent(*(argValue<QPoint *>(args[0])),
00070                              *(argValue<QPoint *>(args[1])),
00071                              args[2].variant().toInt(),
00072                              args[3].variant().toInt(),
00073                              static_cast<Qt::Orientation>(args[4].variant().toUInt()));
00074     return 0;
00075   }
00076 
00077 public:
00078   static QMap<int, QStringList> candidateConstructors() {
00079     QMap<int, QStringList> candidates;
00080     candidates[3].append(QString::fromLatin1("QPoint,int,int"));
00081     candidates[4].append(QString::fromLatin1("QPoint,int,int,Qt::Orientation"));
00082     candidates[4].append(QString::fromLatin1("QPoint,QPoint,int,int"));
00083     candidates[5].append(QString::fromLatin1("QPoint,QPoint,int,int,Qt::Orientation"));
00084     return candidates;
00085   }
00086   //@AQ_END_DEF_PUB_SLOTS@
00087 };
00088 
00089 //@AQ_BEGIN_IMP_PUB_SLOTS@
00090 inline int AQSWheelEvent::delta() const
00091 {
00092   AQ_CALL_RET_V(delta(), int);
00093 }
00094 inline QPoint AQSWheelEvent::pos() const
00095 {
00096   AQ_CALL_RET_V(pos(), QPoint);
00097 }
00098 inline QPoint AQSWheelEvent::globalPos() const
00099 {
00100   AQ_CALL_RET_V(globalPos(), QPoint);
00101 }
00102 inline int AQSWheelEvent::x() const
00103 {
00104   AQ_CALL_RET_V(x(), int);
00105 }
00106 inline int AQSWheelEvent::y() const
00107 {
00108   AQ_CALL_RET_V(y(), int);
00109 }
00110 inline int AQSWheelEvent::globalX() const
00111 {
00112   AQ_CALL_RET_V(globalX(), int);
00113 }
00114 inline int AQSWheelEvent::globalY() const
00115 {
00116   AQ_CALL_RET_V(globalY(), int);
00117 }
00118 inline uint AQSWheelEvent::state() const
00119 {
00120   AQ_CALL_RET_V(state(), uint);
00121 }
00122 inline uint AQSWheelEvent::orientation() const
00123 {
00124   AQ_CALL_RET_V(orientation(), uint);
00125 }
00126 inline bool AQSWheelEvent::isAccepted() const
00127 {
00128   AQ_CALL_RET_V(isAccepted(), bool);
00129 }
00130 inline void AQSWheelEvent::accept()
00131 {
00132   AQ_CALL_VOID(accept());
00133 }
00134 inline void AQSWheelEvent::ignore()
00135 {
00136   AQ_CALL_VOID(ignore());
00137 }
00138 //@AQ_END_IMP_PUB_SLOTS@
00139 
00140 #endif /* AQSWHEELEVENT_P_H_ */
00141 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'