summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FaceTrackNoIR.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-11-19 14:55:47 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-11-19 14:55:47 +0000
commitab77b86507c65c56ec8aeda181bb43cc96cebc18 (patch)
tree2dfebccb04ffd4bc8687e6101840f03a488d3bb4 /FaceTrackNoIR/FaceTrackNoIR.cpp
parent04ec6d036899a126e2d7fad1523c1c262442423d (diff)
Donation buttons and layout improved
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@28 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r--FaceTrackNoIR/FaceTrackNoIR.cpp25
1 files changed, 21 insertions, 4 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp
index 3a259cba..cbed2ffd 100644
--- a/FaceTrackNoIR/FaceTrackNoIR.cpp
+++ b/FaceTrackNoIR/FaceTrackNoIR.cpp
@@ -27,6 +27,7 @@
#include "PPJoyServer.h"
#include "FSUIPCServer.h"
#include "FTIRServer.h"
+#include "FGServer.h"
using namespace sm::faceapi;
using namespace sm::faceapi::qt;
@@ -85,6 +86,9 @@ void FaceTrackNoIR::setupFaceTrackNoIR() {
connect(ui.actionCurve_Configuration, SIGNAL(triggered()), this, SLOT(showCurveConfiguration()));
connect(ui.btnEditCurves, SIGNAL(clicked()), this, SLOT(showCurveConfiguration()));
+ connect(ui.actionSupport, SIGNAL(triggered()), this, SLOT(openurl_support()));
+ connect(ui.actionYour_Support, SIGNAL(triggered()), this, SLOT(openurl_donation()));
+ connect(ui.btnDonate, SIGNAL(clicked()), this, SLOT(openurl_donation()));
connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(about()));
connect(ui.actionVideoWidget, SIGNAL(triggered()), this, SLOT(showVideoWidget()));
@@ -359,7 +363,7 @@ void FaceTrackNoIR::saveAs()
save();
// Put the filename in the window-title
- setWindowTitle ( "FaceTrackNoIR (1.4) - " + newFileInfo.fileName() );
+ setWindowTitle ( "FaceTrackNoIR (1.5) - " + newFileInfo.fileName() );
}
}
@@ -402,10 +406,21 @@ void FaceTrackNoIR::loadSettings() {
// Put the filename in the window-title
QFileInfo pathInfo ( currentFile );
- setWindowTitle ( "FaceTrackNoIR (1.4) - " + pathInfo.fileName() );
+ setWindowTitle ( "FaceTrackNoIR (1.5) - " + pathInfo.fileName() );
}
+/** show support page in web-browser **/
+void FaceTrackNoIR::openurl_support() {
+ QDesktopServices::openUrl(QUrl("http://facetracknoir.sourceforge.net/manual/manual.htm", QUrl::TolerantMode));
+}
+
+/** show donations page in web-browser **/
+void FaceTrackNoIR::openurl_donation() {
+ QDesktopServices::openUrl(QUrl("http://facetracknoir.sourceforge.net/information_links/donate.htm", QUrl::TolerantMode));
+}
+
+
/** show about dialog **/
void FaceTrackNoIR::about() {
aboutDialog.move(this->width()/2-135,
@@ -669,7 +684,6 @@ void FaceTrackNoIR::showServerControls() {
// Show the appropriate Protocol-server Settings
switch (ui.iconcomboBox->currentIndex()) {
case FREE_TRACK:
- case FLIGHTGEAR:
case FTNOIR:
case SIMCONNECT:
break;
@@ -682,6 +696,9 @@ void FaceTrackNoIR::showServerControls() {
case TRACKIR:
_server_controls = new FTIRControls( this, Qt::Dialog );
break;
+ case FLIGHTGEAR:
+ _server_controls = new FGControls( this, Qt::Dialog );
+ break;
default:
break;
}
@@ -821,7 +838,6 @@ void FaceTrackNoIR::setIcon(int index)
// Enable/disable Protocol-server Settings
switch (ui.iconcomboBox->currentIndex()) {
case FREE_TRACK:
- case FLIGHTGEAR:
case FTNOIR:
case SIMCONNECT:
ui.btnShowServerControls->hide();
@@ -829,6 +845,7 @@ void FaceTrackNoIR::setIcon(int index)
case PPJOY:
case FSUIPC:
case TRACKIR:
+ case FLIGHTGEAR:
ui.btnShowServerControls->show();
ui.btnShowServerControls->setEnabled ( true );
break;