|
| 1 | +/*********************************************************************/ |
| 2 | +/* Copyright (c) 2016, EPFL/Blue Brain Project */ |
| 3 | +/* Raphael Dumusc <raphael.dumusc@epfl.ch> */ |
| 4 | +/* All rights reserved. */ |
| 5 | +/* */ |
| 6 | +/* Redistribution and use in source and binary forms, with or */ |
| 7 | +/* without modification, are permitted provided that the following */ |
| 8 | +/* conditions are met: */ |
| 9 | +/* */ |
| 10 | +/* 1. Redistributions of source code must retain the above */ |
| 11 | +/* copyright notice, this list of conditions and the following */ |
| 12 | +/* disclaimer. */ |
| 13 | +/* */ |
| 14 | +/* 2. Redistributions in binary form must reproduce the above */ |
| 15 | +/* copyright notice, this list of conditions and the following */ |
| 16 | +/* disclaimer in the documentation and/or other materials */ |
| 17 | +/* provided with the distribution. */ |
| 18 | +/* */ |
| 19 | +/* THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT */ |
| 20 | +/* AUSTIN ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, */ |
| 21 | +/* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ |
| 22 | +/* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ |
| 23 | +/* DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT */ |
| 24 | +/* AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, */ |
| 25 | +/* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */ |
| 26 | +/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE */ |
| 27 | +/* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR */ |
| 28 | +/* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ |
| 29 | +/* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */ |
| 30 | +/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT */ |
| 31 | +/* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */ |
| 32 | +/* POSSIBILITY OF SUCH DAMAGE. */ |
| 33 | +/* */ |
| 34 | +/* The views and conclusions contained in the software and */ |
| 35 | +/* documentation are those of the authors and should not be */ |
| 36 | +/* interpreted as representing official policies, either expressed */ |
| 37 | +/* or implied, of Ecole polytechnique federale de Lausanne. */ |
| 38 | +/*********************************************************************/ |
| 39 | + |
| 40 | +#ifndef QMLGESTURES_H |
| 41 | +#define QMLGESTURES_H |
| 42 | + |
| 43 | +#include <QObject> |
| 44 | + |
| 45 | +namespace deflect |
| 46 | +{ |
| 47 | +namespace qt |
| 48 | +{ |
| 49 | + |
| 50 | +/** |
| 51 | + * Expose gesture events as a Qml context property object. |
| 52 | + */ |
| 53 | +class QmlGestures : public QObject |
| 54 | +{ |
| 55 | + Q_OBJECT |
| 56 | + |
| 57 | +signals: |
| 58 | + void swipeLeft(); |
| 59 | + void swipeRight(); |
| 60 | + void swipeUp(); |
| 61 | + void swipeDown(); |
| 62 | +}; |
| 63 | + |
| 64 | +} |
| 65 | +} |
| 66 | + |
| 67 | +#endif |
0 commit comments