author | František Kučera <franta-hg@frantovo.cz> |
Thu, 24 Oct 2019 21:49:24 +0200 | |
branch | v_0 |
changeset 11 | aaa89fe98b63 |
parent 9 | d3716f03efcd |
permissions | -rw-r--r-- |
4 | 1 |
/** |
2 |
* Spacenav Demo Qt |
|
3 |
* Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
|
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
11
aaa89fe98b63
fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
9
diff
changeset
|
7 |
* the Free Software Foundation, version 3 of the License. |
4 | 8 |
* |
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
16 |
*/ |
|
17 |
#pragma once |
|
18 |
||
5 | 19 |
#include "ui_SpacenavWindow.h" |
4 | 20 |
#include "SpacenavWrapper.h" |
21 |
||
22 |
class SpacenavWindow : public QMainWindow { |
|
23 |
Q_OBJECT |
|
24 |
public: |
|
5 | 25 |
SpacenavWindow(); |
26 |
virtual ~SpacenavWindow(); |
|
4 | 27 |
public slots: |
6
49560660d230
emit MotionEvent and ButtonEvent + display button status
František Kučera <franta-hg@frantovo.cz>
parents:
5
diff
changeset
|
28 |
void spacenavMotionEvent(SpacenavWrapper::Event::MotionEvent e); |
49560660d230
emit MotionEvent and ButtonEvent + display button status
František Kučera <franta-hg@frantovo.cz>
parents:
5
diff
changeset
|
29 |
void spacenavButtonEvent(SpacenavWrapper::Event::ButtonEvent e); |
9
d3716f03efcd
display status – connection type (domain socket or X11)
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
30 |
void spacenavConnectionStatus(SpacenavWrapper::ConnectionStatus s); |
5 | 31 |
private: |
32 |
Ui::SpacenavWindow widget; |
|
33 |
}; |