summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FTIRServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'FaceTrackNoIR/FTIRServer.h')
-rw-r--r--FaceTrackNoIR/FTIRServer.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/FaceTrackNoIR/FTIRServer.h b/FaceTrackNoIR/FTIRServer.h
index 503514ec..8585b30f 100644
--- a/FaceTrackNoIR/FTIRServer.h
+++ b/FaceTrackNoIR/FTIRServer.h
@@ -23,7 +23,6 @@
#ifndef INCLUDED_FTIRSERVER_H
#define INCLUDED_FTIRSERVER_H
-//#include "Windows.h"
#include "FTIRTypes.h"
#include <QString>
#include <QMessageBox>
@@ -37,8 +36,10 @@
#include <QUdpSocket>
typedef void (WINAPI *importSetPosition)(float x, float y, float z, float xRot, float yRot, float zRot);
-//typedef bool (WINAPI *importGetData)(TFreeTrackData * data);
-//typedef HANDLE (WINAPI *importGetMapHandle)(void);
+typedef void (WINAPI *importTIRViewsStart)(void);
+typedef void (WINAPI *importTIRViewsStop)(void);
+
+#include "ui_FTNoIR_FTIRcontrols.h"
using namespace std;
@@ -71,7 +72,11 @@ private:
// Private properties
QString ProgramName;
QLibrary FTIRClientLib;
+ QLibrary FTIRViewsLib;
+ bool useTIRViews;
+
static float scale2AnalogLimits( float x, float min_x, float max_x );
+ void loadSettings();
public:
@@ -94,6 +99,30 @@ public:
};
+// Widget that has controls for FTIR server-settings.
+class FTIRControls: public QWidget, public Ui::UICFTIRControls
+{
+ Q_OBJECT
+public:
+
+ explicit FTIRControls( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~FTIRControls();
+ void showEvent ( QShowEvent * event );
+
+private:
+ Ui::UICFTIRControls ui;
+ void loadSettings();
+ void save();
+
+ /** helper **/
+ bool settingsDirty;
+
+private slots:
+ void doOK();
+ void doCancel();
+ void chkTIRViewsChanged() { settingsDirty = true; };
+};
+
#endif//INCLUDED_FTIRSERVER_H
//END