QEventsAdapter.h

00001 /*
00002  * @(#)QEventsAdapter.h  0.2.0 / 2007-09-09
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef QEVENTSADAPTER_H
00010 #define QEVENTSADAPTER_H
00011 
00012 #include "JavaQxCore.h"
00013 
00014 #include <QKeyEvent>
00015 #include <QMouseEvent>
00016 
00017 #include "yu_ac_bg_etf_javaqx_qswing_events_KeyEvent.h"
00018 #include "yu_ac_bg_etf_javaqx_qswing_events_QSwingEvent.h"
00019 
00020 /*^**************************************************************************^*/
00021 /*- QSwingMouseClickedEvent Class.                                           -*/
00022 /*^**************************************************************************^*/
00023 
00030 class JAVAQX_EXPORT QSwingKeyTypedEvent : public QKeyEvent
00031 {
00032 public:
00033   QSwingKeyTypedEvent(int key, Qt::KeyboardModifiers modifiers);
00034   QSwingKeyTypedEvent(QKeyEvent *ke);
00035 public:
00036   static const int TYPE = QEvent::User + 1;
00037 };
00038 
00039 /*^**************************************************************************^*/
00040 /*- QSwingMouseClickedEvent Class.                                           -*/
00041 /*^**************************************************************************^*/
00042 
00049 class QSwingMouseClickedEvent : public QMouseEvent
00050 {
00051 public:
00052   QSwingMouseClickedEvent(const QPoint &position, Qt::MouseButton button,
00053                           Qt::MouseButtons buttons,
00054                           Qt::KeyboardModifiers modifiers);
00055   QSwingMouseClickedEvent(QMouseEvent *me);
00056 public:
00057   static const int TYPE = QEvent::User + 2;
00058 };
00059 
00060 /*^**************************************************************************^*/
00061 /*- Macro Definition.                                                        -*/
00062 /*^**************************************************************************^*/
00063 
00064 #define QSWING_EVENT(mask) yu_ac_bg_etf_javaqx_qswing_events_QSwingEvent_##mask
00065 
00066 #endif //QEVENTSADAPTER_H
00067 
00068 /*^*****************************************************************************
00069   File History:
00070 
00071  - 2007-09-09 10:29:33 Slobodan
00072    Initial version
00073 
00074 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.