summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FT
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2012-04-27 09:50:19 +0000
committerWim Vriend <facetracknoir@gmail.com>2012-04-27 09:50:19 +0000
commit289ee4f5352edab1fa31311ef6a800e7d9998acd (patch)
treeb655579fbf7238ef1c9dda99d9b41298e54a2e75 /FTNoIR_Protocol_FT
parent8c1c7aca57b2eb12cbc5766e62fcb1d18d5a7e6a (diff)
Changed filling protocol Listbox to match the Filter and Tracker.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@109 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_FT')
-rw-r--r--FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h9
-rw-r--r--FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.vcproj46
-rw-r--r--FTNoIR_Protocol_FT/Protocol.qrc5
-rw-r--r--FTNoIR_Protocol_FT/images/Freetrack.icobin0 -> 17542 bytes
4 files changed, 60 insertions, 0 deletions
diff --git a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h
index 02e9525f..9d0a5033 100644
--- a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h
+++ b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h
@@ -55,6 +55,10 @@ public:
void sendHeadposeToGame( T6DOF *headpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack protocol"); };
+
private:
bool FTCreateMapping(HANDLE handle);
void FTDestroyMapping();
@@ -88,6 +92,11 @@ public:
void Release(); // Member functions which are accessible from outside the DLL
void Initialize(QWidget *parent);
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack protocol"); };
+ void getIcon(QIcon *icon) { *icon = QIcon(":/images/Freetrack.ico"); };
+
private:
Ui::UICFTControls ui;
void loadSettings();
diff --git a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.vcproj b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.vcproj
index 3b5a21dc..80fcdfed 100644
--- a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.vcproj
+++ b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.vcproj
@@ -254,6 +254,32 @@
UniqueIdentifier="{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}"
ParseFiles="false"
>
+ <File
+ RelativePath=".\Protocol.qrc"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Rcc&apos;ing $(InputFileName)..."
+ CommandLine="&quot;$(QTDIR)\bin\rcc.exe&quot; -name &quot;$(InputName)&quot; -no-compress &quot;$(InputPath)&quot; -o .\GeneratedFiles\qrc_$(InputName).cpp&#x0D;&#x0A;"
+ AdditionalDependencies="$(InputPath);.\images\FS9.ico"
+ Outputs=".\GeneratedFiles\qrc_$(InputName).cpp"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Rcc&apos;ing $(InputFileName)..."
+ CommandLine="&quot;$(QTDIR)\bin\rcc.exe&quot; -name &quot;$(InputName)&quot; -no-compress &quot;$(InputPath)&quot; -o .\GeneratedFiles\qrc_$(InputName).cpp&#x0D;&#x0A;"
+ AdditionalDependencies="$(InputPath);.\images\FS9.ico"
+ Outputs=".\GeneratedFiles\qrc_$(InputName).cpp"
+ />
+ </FileConfiguration>
+ </File>
</Filter>
<Filter
Name="Generated Files"
@@ -262,6 +288,26 @@
SourceControlFiles="false"
>
<File
+ RelativePath=".\generatedfiles\qrc_Protocol.cpp"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ </File>
+ <File
RelativePath=".\GeneratedFiles\ui_FTNoIR_FTcontrols.h"
>
</File>
diff --git a/FTNoIR_Protocol_FT/Protocol.qrc b/FTNoIR_Protocol_FT/Protocol.qrc
new file mode 100644
index 00000000..25ecc6fe
--- /dev/null
+++ b/FTNoIR_Protocol_FT/Protocol.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/">
+ <file>images/Freetrack.ico</file>
+ </qresource>
+</RCC>
diff --git a/FTNoIR_Protocol_FT/images/Freetrack.ico b/FTNoIR_Protocol_FT/images/Freetrack.ico
new file mode 100644
index 00000000..02554c3d
--- /dev/null
+++ b/FTNoIR_Protocol_FT/images/Freetrack.ico
Binary files differ