diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-10-23 15:36:16 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-10-23 15:36:16 +0000 |
commit | f3e5ceffbceaf6f9931ad2ac6bad69732d37dd4c (patch) | |
tree | 9e519a8db95212147076d1e14225ca831b34918b /FaceTrackNoIR/FTIRServer.h | |
parent | 4b7af2d35be630472daadf3b85f289603a7092ad (diff) |
Built in support of TIRViews.
Older games like CFS3 require this to be in the program-folder.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@25 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FTIRServer.h')
-rw-r--r-- | FaceTrackNoIR/FTIRServer.h | 35 |
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
|