diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-08-15 11:48:23 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-08-15 11:48:23 +0000 |
commit | 1ef199b2369d78558df6c706592ae1def10adfd7 (patch) | |
tree | a12aab066c9def5cc248cf6da4d71ddb294e2daa /FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp | |
parent | e5fbf0ed808cc530bd411251d32159c9f04522d8 (diff) |
Some minor changes to the interface. Also moved to new dev.hardware
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@89 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp')
-rw-r--r-- | FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp b/FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp index 83b21f7b..82857745 100644 --- a/FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp +++ b/FTNoIR_Protocol_FTIR/FTNoIR_Protocol_FTIR.cpp @@ -62,9 +62,11 @@ FTNoIR_Protocol_FTIR::~FTNoIR_Protocol_FTIR() //
// Kill the dummy TrackIR process.
//
- qDebug() << "FTIRServer::~FTIRServer() about to kill TrackIR.exe process";
+// qDebug() << "FTIRServer::~FTIRServer() about to kill TrackIR.exe process";
try {
if (dummyTrackIR) {
+ qDebug() << "FTIRServer::~FTIRServer() about to kill TrackIR.exe process";
+// dummyTrackIR->close();
dummyTrackIR->kill();
}
}
@@ -115,6 +117,7 @@ void FTNoIR_Protocol_FTIR::loadSettings() { iniFile.beginGroup ( "FTIR" );
useTIRViews = iniFile.value ( "useTIRViews", 0 ).toBool();
+ useDummyExe = iniFile.value ( "useDummyExe", 1 ).toBool();
iniFile.endGroup ();
}
@@ -217,9 +220,11 @@ bool FTNoIR_Protocol_FTIR::checkServerInstallationOK( HANDLE handle ) // Some TrackIR clients check if a process called TrackIR.exe is running.
// This should do the trick
//
- QString program = "TrackIR.exe";
- dummyTrackIR = new QProcess();
- dummyTrackIR->start(program);
+ if (useDummyExe) {
+ QString program = "TrackIR.exe";
+ dummyTrackIR = new QProcess();
+ dummyTrackIR->start(program);
+ }
} catch(...) {
settings.~QSettings();
@@ -380,6 +385,7 @@ QWidget() connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
connect(ui.chkTIRViews, SIGNAL(stateChanged(int)), this, SLOT(chkTIRViewsChanged()));
+ connect(ui.chkStartDummy, SIGNAL(stateChanged(int)), this, SLOT(settingChanged()));
aFileName = QCoreApplication::applicationDirPath() + "/";
aFileName.append(FTIR_VIEWS_FILENAME);
@@ -479,6 +485,8 @@ void FTIRControls::loadSettings() { iniFile.beginGroup ( "FTIR" );
ui.chkTIRViews->setChecked (iniFile.value ( "useTIRViews", 0 ).toBool());
+ ui.chkStartDummy->setChecked (iniFile.value ( "useDummyExe", 1 ).toBool());
+
iniFile.endGroup ();
settingsDirty = false;
@@ -495,6 +503,7 @@ void FTIRControls::save() { iniFile.beginGroup ( "FTIR" );
iniFile.setValue ( "useTIRViews", ui.chkTIRViews->isChecked() );
+ iniFile.setValue ( "useDummyExe", ui.chkStartDummy->isChecked() );
iniFile.endGroup ();
settingsDirty = false;
|