diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-06-13 15:44:02 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-06-13 15:44:02 +0000 |
commit | c6bf844769902c2eda1cb0789dd5872fe9d962ac (patch) | |
tree | 12292eb39811efc74f10c16c8db98127fe467370 /FaceTrackNoIR/PPJoyServer.h | |
parent | 513d1c8521aad3cd5ba7db3b87349553a793c151 (diff) |
PPJoy settings dialog added. First try.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@12 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/PPJoyServer.h')
-rw-r--r-- | FaceTrackNoIR/PPJoyServer.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/FaceTrackNoIR/PPJoyServer.h b/FaceTrackNoIR/PPJoyServer.h index 83b3617a..72d17bd1 100644 --- a/FaceTrackNoIR/PPJoyServer.h +++ b/FaceTrackNoIR/PPJoyServer.h @@ -39,6 +39,8 @@ #include <QMutex>
#include <QLibrary>
+#include "ui_FTNoIR_ppjoycontrols.h"
+
using namespace std;
class Tracker; // pre-define parent-class to avoid circular includes
@@ -87,7 +89,7 @@ private: long *Analog;
char *Digital;
- static long analogDefault,PPJoyCorrection;
+// static long analogDefault,PPJoyCorrection;
long centerPos[3],centerRot[3];
/** member variables for saving the head pose **/
@@ -112,6 +114,24 @@ public: };
+// Widget that has controls for PPJoy server-settings.
+class PPJoyControls: public QWidget, public Ui::UICPPJoyControls
+{
+ Q_OBJECT
+public:
+
+ explicit PPJoyControls( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~PPJoyControls();
+
+private:
+ Ui::UICPPJoyControls ui;
+
+private slots:
+ void doOK();
+ void doCancel();
+
+};
+
#endif//INCLUDED_PPJOYSERVER_H
//END
|