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/FaceTrackNoIR.cpp | |
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/FaceTrackNoIR.cpp')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index ffa38344..3f3d3018 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -26,6 +26,7 @@ #include "tracker.h"
#include "PPJoyServer.h"
#include "FSUIPCServer.h"
+#include "FTIRServer.h"
using namespace sm::faceapi;
using namespace sm::faceapi::qt;
@@ -661,7 +662,6 @@ void FaceTrackNoIR::showServerControls() { case FREE_TRACK:
case FLIGHTGEAR:
case FTNOIR:
- case TRACKIR:
case SIMCONNECT:
break;
case PPJOY:
@@ -670,6 +670,9 @@ void FaceTrackNoIR::showServerControls() { case FSUIPC:
_server_controls = new FSUIPCControls( this, Qt::Dialog );
break;
+ case TRACKIR:
+ _server_controls = new FTIRControls( this, Qt::Dialog );
+ break;
default:
break;
}
@@ -757,16 +760,16 @@ void FaceTrackNoIR::createIconGroupBox() //
void FaceTrackNoIR::createActions()
{
- minimizeAction = new QAction(tr("Mi&nimize"), this);
+ minimizeAction = new QAction(tr("Mi&nimize FaceTrackNoIR"), this);
connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));
//maximizeAction = new QAction(tr("Ma&ximize"), this);
//connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));
- restoreAction = new QAction(tr("&Restore"), this);
+ restoreAction = new QAction(tr("&Restore FaceTrackNoIR"), this);
connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));
- quitAction = new QAction(tr("&Quit"), this);
+ quitAction = new QAction(tr("&Quit FaceTrackNoIR"), this);
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
}
@@ -810,16 +813,12 @@ void FaceTrackNoIR::setIcon(int index) case FREE_TRACK:
case FLIGHTGEAR:
case FTNOIR:
- case TRACKIR:
case SIMCONNECT:
ui.btnShowServerControls->hide();
break;
case PPJOY:
- ui.btnShowServerControls->show();
- ui.btnShowServerControls->setEnabled ( true );
- break;
-
case FSUIPC:
+ case TRACKIR:
ui.btnShowServerControls->show();
ui.btnShowServerControls->setEnabled ( true );
break;
|