direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
joystickDialog.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) Markus Knapp *
3  * www.direcs.de *
4  * *
5  * This file is part of direcs. *
6  * *
7  * direcs is free software: you can redistribute it and/or modify it *
8  * under the terms of the GNU General Public License as published *
9  * by the Free Software Foundation, version 3 of the License. *
10  * *
11  * direcs is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with direcs. If not, see <http://www.gnu.org/licenses/>. *
18  * *
19  *************************************************************************/
20 
21 #ifndef JOYSTICKDIALOG_H
22 #define JOYSTICKDIALOG_H
23 
24 #include <QtGui>
25 #include <QDialog>
26 
27 #include "ui_joystickDialog.h"
28 
29 
36 class JoystickDialog : public QDialog
37 {
38  Q_OBJECT
39 
40  public:
41  JoystickDialog(QWidget* parent = 0);
42 
43 
44  public slots:
48  void showJoystickButtons(int buttonNumber, bool buttonState);
49 
53  void showJoystickPOVButtons(int buttonsState);
54 
58  void showJoystickAxes(int axisNumber, int axisValue);
59 
60 
61  protected slots:
65  //void on_btnAboutQt_clicked(bool checked);
66 
67 
68  private:
69  Ui::joystickDialog ui;
70 
74  static const int JOYSTICKAXISY2 = 2; // ok
75  static const int JOYSTICKAXISX3 = 3; // ok
76  static const int JOYSTICKAXISX4 = 4;
77  static const int JOYSTICKAXISY5 = 5;
78 };
79 
80 #endif