summaryrefslogtreecommitdiffhomepage
path: root/tracker-freepie-udp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-freepie-udp')
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp12
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp.h12
-rw-r--r--tracker-freepie-udp/ftnoir_tracker_freepie-udp_dialog.cpp6
3 files changed, 15 insertions, 15 deletions
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
index d6d53803..4c5d14ef 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -6,11 +6,11 @@
#include <cmath>
-TrackerImpl::TrackerImpl() : pose { 0,0,0, 0,0,0 }, should_quit(false)
+tracker_freepie::tracker_freepie() : pose { 0,0,0, 0,0,0 }, should_quit(false)
{
}
-TrackerImpl::~TrackerImpl()
+tracker_freepie::~tracker_freepie()
{
should_quit = true;
wait();
@@ -26,7 +26,7 @@ static const t bound(t datum, t least, t max)
return datum;
}
-void TrackerImpl::run() {
+void tracker_freepie::run() {
#pragma pack(push, 1)
struct {
uint8_t pad1;
@@ -103,13 +103,13 @@ void TrackerImpl::run() {
}
}
-void TrackerImpl::start_tracker(QFrame*)
+void tracker_freepie::start_tracker(QFrame*)
{
start();
sock.moveToThread(this);
}
-void TrackerImpl::data(double *data)
+void tracker_freepie::data(double *data)
{
QMutexLocker foo(&mtx);
@@ -118,4 +118,4 @@ void TrackerImpl::data(double *data)
data[Roll] = pose[Roll];
}
-OPENTRACK_DECLARE_TRACKER(TrackerImpl, TrackerDialog, TrackerMeta)
+OPENTRACK_DECLARE_TRACKER(tracker_freepie, dialog_freepie, meta_freepie)
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.h b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.h
index 4e79c207..d7bc3733 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp.h
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp.h
@@ -28,11 +28,11 @@ struct settings : opts {
{}
};
-class TrackerImpl : public ITracker, private QThread
+class tracker_freepie : public ITracker, private QThread
{
public:
- TrackerImpl();
- ~TrackerImpl() override;
+ tracker_freepie();
+ ~tracker_freepie() override;
void start_tracker(QFrame *) override;
void data(double *data) override;
protected:
@@ -45,11 +45,11 @@ private:
volatile bool should_quit;
};
-class TrackerDialog : public ITrackerDialog
+class dialog_freepie : public ITrackerDialog
{
Q_OBJECT
public:
- TrackerDialog();
+ dialog_freepie();
void register_tracker(ITracker *) override {}
void unregister_tracker() override {}
private:
@@ -60,7 +60,7 @@ private slots:
void doCancel();
};
-class TrackerMeta : public Metadata
+class meta_freepie : public Metadata
{
public:
QString name() { return QString("FreePIE UDP receiver"); }
diff --git a/tracker-freepie-udp/ftnoir_tracker_freepie-udp_dialog.cpp b/tracker-freepie-udp/ftnoir_tracker_freepie-udp_dialog.cpp
index 42a8308b..5e162bc4 100644
--- a/tracker-freepie-udp/ftnoir_tracker_freepie-udp_dialog.cpp
+++ b/tracker-freepie-udp/ftnoir_tracker_freepie-udp_dialog.cpp
@@ -1,7 +1,7 @@
#include "ftnoir_tracker_freepie-udp.h"
#include "api/plugin-api.hpp"
-TrackerDialog::TrackerDialog()
+dialog_freepie::dialog_freepie()
{
ui.setupUi(this);
@@ -18,12 +18,12 @@ TrackerDialog::TrackerDialog()
tie_setting(s.add_roll, ui.add_roll);
}
-void TrackerDialog::doOK() {
+void dialog_freepie::doOK() {
s.b->save();
close();
}
-void TrackerDialog::doCancel()
+void dialog_freepie::doCancel()
{
close();
}