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