Add gamepad detection

half-duplex
Phil Taylor 2022-10-22 20:55:08 +01:00
rodzic 677eb3c944
commit 358375be8a
11 zmienionych plików z 190 dodań i 77 usunięć

Wyświetl plik

@ -1,13 +1,13 @@
#include "shuttlesetup.h" #include "controllersetup.h"
#include "ui_shuttlesetup.h" #include "ui_controllersetup.h"
#include "logcategories.h" #include "logcategories.h"
shuttleSetup::shuttleSetup(QWidget* parent) : controllerSetup::controllerSetup(QWidget* parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::shuttleSetup) ui(new Ui::controllerSetup)
{ {
ui->setupUi(this); ui->setupUi(this);
scene = new shuttleScene(); scene = new controllerScene();
connect(scene, SIGNAL(mousePressed(QPoint)), this, SLOT(mousePressed(QPoint))); connect(scene, SIGNAL(mousePressed(QPoint)), this, SLOT(mousePressed(QPoint)));
ui->graphicsView->setScene(scene); ui->graphicsView->setScene(scene);
textItem = scene->addText("No USB controller found"); textItem = scene->addText("No USB controller found");
@ -18,7 +18,7 @@ shuttleSetup::shuttleSetup(QWidget* parent) :
connect(&offEvent, SIGNAL(currentIndexChanged(int)), this, SLOT(offEventIndexChanged(int))); connect(&offEvent, SIGNAL(currentIndexChanged(int)), this, SLOT(offEventIndexChanged(int)));
} }
shuttleSetup::~shuttleSetup() controllerSetup::~controllerSetup()
{ {
delete textItem; delete textItem;
delete scene; delete scene;
@ -29,7 +29,7 @@ shuttleSetup::~shuttleSetup()
} }
} }
void shuttleSetup::mousePressed(QPoint p) void controllerSetup::mousePressed(QPoint p)
{ {
// Receive mouse event from the scene // Receive mouse event from the scene
qDebug() << "Looking for button Point x=" << p.x() << " y=" << p.y(); qDebug() << "Looking for button Point x=" << p.x() << " y=" << p.y();
@ -71,7 +71,7 @@ void shuttleSetup::mousePressed(QPoint p)
} }
void shuttleSetup::onEventIndexChanged(int index) { void controllerSetup::onEventIndexChanged(int index) {
qDebug() << "On Event for button" << currentButton->num << "Event" << index; qDebug() << "On Event for button" << currentButton->num << "Event" << index;
if (currentButton != Q_NULLPTR && index < commands->size()) { if (currentButton != Q_NULLPTR && index < commands->size()) {
currentButton->onCommand = &commands->at(index); currentButton->onCommand = &commands->at(index);
@ -80,7 +80,7 @@ void shuttleSetup::onEventIndexChanged(int index) {
} }
void shuttleSetup::offEventIndexChanged(int index) { void controllerSetup::offEventIndexChanged(int index) {
qDebug() << "Off Event for button" << currentButton->num << "Event" << index; qDebug() << "Off Event for button" << currentButton->num << "Event" << index;
if (currentButton != Q_NULLPTR && index < commands->size()) { if (currentButton != Q_NULLPTR && index < commands->size()) {
currentButton->offCommand = &commands->at(index); currentButton->offCommand = &commands->at(index);
@ -89,7 +89,7 @@ void shuttleSetup::offEventIndexChanged(int index) {
} }
void shuttleSetup::newDevice(unsigned char devType, QVector<BUTTON>* but, QVector<COMMAND>* cmd) void controllerSetup::newDevice(unsigned char devType, QVector<BUTTON>* but, QVector<COMMAND>* cmd)
{ {
buttons = but; buttons = but;
commands = cmd; commands = cmd;
@ -116,17 +116,21 @@ void shuttleSetup::newDevice(unsigned char devType, QVector<BUTTON>* but, QVecto
switch (devType) { switch (devType) {
case shuttleXpress: case shuttleXpress:
image.load(":/resources/shuttlexpress.png"); image.load(":/resources/controllerxpress.png");
deviceName = "shuttleXpress"; deviceName = "shuttleXpress";
break; break;
case shuttlePro2: case shuttlePro2:
image.load(":/resources/shuttlepro.png"); image.load(":/resources/controllerpro.png");
deviceName = "shuttlePro2"; deviceName = "shuttlePro2";
break; break;
case RC28: case RC28:
image.load(":/resources/rc28.png"); image.load(":/resources/rc28.png");
deviceName = "RC28"; deviceName = "RC28";
break; break;
case xBoxGamepad:
image.load(":resources/xbox.png");
deviceName = "XBox";
break;
default: default:
textItem->show(); textItem->show();
ui->graphicsView->setSceneRect(scene->itemsBoundingRect()); ui->graphicsView->setSceneRect(scene->itemsBoundingRect());

Wyświetl plik

@ -1,5 +1,5 @@
#ifndef SHUTTLESETUP_H #ifndef CONTROLLERSETUP_H
#define SHUTTLESETUP_H #define CONTROLLERSETUP_H
#include <QDialog> #include <QDialog>
#include <QGraphicsView> #include <QGraphicsView>
@ -22,16 +22,16 @@
namespace Ui { namespace Ui {
class shuttleSetup; class controllerSetup;
} }
class shuttleSetup : public QDialog class controllerSetup : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit shuttleSetup(QWidget* parent = 0); explicit controllerSetup(QWidget* parent = 0);
~shuttleSetup(); ~controllerSetup();
signals: signals:
@ -43,9 +43,9 @@ public slots:
void offEventIndexChanged(int index); void offEventIndexChanged(int index);
private: private:
enum { NONE=0, shuttleXpress, shuttlePro2, RC28 } usbDevice; enum { NONE=0, shuttleXpress, shuttlePro2, RC28, xBoxGamepad, unknownGamepad } usbDevice;
Ui::shuttleSetup* ui; Ui::controllerSetup* ui;
QGraphicsScene* scene; QGraphicsScene* scene;
QGraphicsTextItem* textItem; QGraphicsTextItem* textItem;
QGraphicsItem* bgImage = Q_NULLPTR; QGraphicsItem* bgImage = Q_NULLPTR;
@ -64,7 +64,7 @@ private:
class shuttleScene : public QGraphicsScene class controllerScene : public QGraphicsScene
{ {
Q_OBJECT Q_OBJECT
QGraphicsLineItem* item = Q_NULLPTR; QGraphicsLineItem* item = Q_NULLPTR;

Wyświetl plik

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>shuttleSetup</class> <class>controllerSetup</class>
<widget class="QDialog" name="shuttleSetup"> <widget class="QDialog" name="controllerSetup">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Shuttle setup</string> <string>Controller setup</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">
@ -74,7 +74,7 @@
<connection> <connection>
<sender>okButton</sender> <sender>okButton</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>shuttleSetup</receiver> <receiver>controllerSetup</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -90,7 +90,7 @@
<connection> <connection>
<sender>cancelButton</sender> <sender>cancelButton</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>shuttleSetup</receiver> <receiver>controllerSetup</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

BIN
resources/xbox.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 240 KiB

Wyświetl plik

@ -14,6 +14,11 @@ usbController::~usbController()
qInfo(logUsbControl) << "Ending usbController()"; qInfo(logUsbControl) << "Ending usbController()";
hid_close(handle); hid_close(handle);
hid_exit(); hid_exit();
if (gamepad != Q_NULLPTR)
{
delete gamepad;
gamepad = Q_NULLPTR;
}
} }
void usbController::init() void usbController::init()
@ -68,6 +73,78 @@ void usbController::run()
return; return;
} }
if (gamepad == Q_NULLPTR) {
auto gamepads = QGamepadManager::instance()->connectedGamepads();
if (!gamepads.isEmpty()) {
// If we got here, we have detected a gamepad of some description!
gamepad = new QGamepad(*gamepads.begin(), this);
if (gamepad->name() == "Microsoft X-Box 360 pad 0")
{
usbDevice = xBoxGamepad;
}
else {
usbDevice = unknownGamepad;
}
connect(gamepad, &QGamepad::axisLeftXChanged, this, [](double value) {
qDebug() << "Left X" << value;
});
connect(gamepad, &QGamepad::axisLeftYChanged, this, [](double value) {
qDebug() << "Left Y" << value;
});
connect(gamepad, &QGamepad::axisRightXChanged, this, [](double value) {
qDebug() << "Right X" << value;
});
connect(gamepad, &QGamepad::axisRightYChanged, this, [](double value) {
qDebug() << "Right Y" << value;
});
connect(gamepad, &QGamepad::buttonAChanged, this, [](bool pressed) {
qDebug() << "Button A" << pressed;
});
connect(gamepad, &QGamepad::buttonBChanged, this, [](bool pressed) {
qDebug() << "Button B" << pressed;
});
connect(gamepad, &QGamepad::buttonXChanged, this, [](bool pressed) {
qDebug() << "Button X" << pressed;
});
connect(gamepad, &QGamepad::buttonYChanged, this, [](bool pressed) {
qDebug() << "Button Y" << pressed;
});
connect(gamepad, &QGamepad::buttonL1Changed, this, [](bool pressed) {
qDebug() << "Button L1" << pressed;
});
connect(gamepad, &QGamepad::buttonR1Changed, this, [](bool pressed) {
qDebug() << "Button R1" << pressed;
});
connect(gamepad, &QGamepad::buttonL2Changed, this, [](double value) {
qDebug() << "Button L2: " << value;
});
connect(gamepad, &QGamepad::buttonR2Changed, this, [](double value) {
qDebug() << "Button R2: " << value;
});
connect(gamepad, &QGamepad::buttonSelectChanged, this, [](bool pressed) {
qDebug() << "Button Select" << pressed;
});
connect(gamepad, &QGamepad::buttonStartChanged, this, [](bool pressed) {
qDebug() << "Button Start" << pressed;
});
connect(gamepad, &QGamepad::buttonGuideChanged, this, [](bool pressed) {
qDebug() << "Button Guide" << pressed;
});
emit newDevice(usbDevice, buttonList, commands); // Let the UI know we have a new controller
QTimer::singleShot(0, this, SLOT(runTimer()));
}
}
else {
if (!gamepad->isConnected()) {
delete gamepad;
gamepad = Q_NULLPTR;
}
}
handle = hid_open(0x0b33, 0x0020, NULL); handle = hid_open(0x0b33, 0x0020, NULL);
if (!handle) { if (!handle) {
handle = hid_open(0x0b33, 0x0030, NULL); handle = hid_open(0x0b33, 0x0030, NULL);
@ -120,6 +197,7 @@ void usbController::run()
emit newDevice(usbDevice, buttonList, commands); // Let the UI know we have a new controller emit newDevice(usbDevice, buttonList, commands); // Let the UI know we have a new controller
QTimer::singleShot(0, this, SLOT(runTimer())); QTimer::singleShot(0, this, SLOT(runTimer()));
} }
} }
void usbController::runTimer() void usbController::runTimer()

Wyświetl plik

@ -10,6 +10,7 @@
#include <QGraphicsTextItem> #include <QGraphicsTextItem>
#include <QColor> #include <QColor>
#include <QVector> #include <QVector>
#include <QGamepad>
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
#include "hidapi/hidapi.h" #include "hidapi/hidapi.h"
@ -99,7 +100,7 @@ signals:
private: private:
hid_device* handle; hid_device* handle;
enum { NONE, shuttleXpress, shuttlePro2, RC28 }usbDevice; enum { NONE, shuttleXpress, shuttlePro2, RC28, xBoxGamepad, unknownGamepad }usbDevice;
bool isOpen=false; bool isOpen=false;
unsigned int buttons=0; unsigned int buttons=0;
unsigned char jogpos=0; unsigned char jogpos=0;
@ -114,6 +115,7 @@ private:
QString product=""; QString product="";
QString manufacturer=""; QString manufacturer="";
QString serial="<none>"; QString serial="<none>";
QGamepad* gamepad=Q_NULLPTR;
protected: protected:
}; };

Wyświetl plik

@ -48,7 +48,7 @@ wfmain::wfmain(const QString settingsFile, const QString logFile, bool debugMode
rpt = new repeaterSetup(); rpt = new repeaterSetup();
sat = new satelliteSetup(); sat = new satelliteSetup();
trxadj = new transceiverAdjustments(); trxadj = new transceiverAdjustments();
shut = new shuttleSetup(); shut = new controllerSetup();
abtBox = new aboutbox(); abtBox = new aboutbox();
selRad = new selectRadio(); selRad = new selectRadio();
@ -1423,7 +1423,7 @@ void wfmain::setupUsbControllerDevice()
connect(usbControllerDev, SIGNAL(doShuttle(bool, unsigned char)), this, SLOT(doShuttle(bool, unsigned char))); connect(usbControllerDev, SIGNAL(doShuttle(bool, unsigned char)), this, SLOT(doShuttle(bool, unsigned char)));
connect(usbControllerDev, SIGNAL(button(const COMMAND*)), this, SLOT(buttonControl(const COMMAND*))); connect(usbControllerDev, SIGNAL(button(const COMMAND*)), this, SLOT(buttonControl(const COMMAND*)));
connect(usbControllerDev, SIGNAL(setBand(int)), this, SLOT(setBand(int))); connect(usbControllerDev, SIGNAL(setBand(int)), this, SLOT(setBand(int)));
connect(this, SIGNAL(shuttleLed(bool, unsigned char)), usbControllerDev, SLOT(ledControl(bool, unsigned char))); connect(this, SIGNAL(controllerLed(bool, unsigned char)), usbControllerDev, SLOT(ledControl(bool, unsigned char)));
connect(usbControllerDev, SIGNAL(newDevice(unsigned char, QVector<BUTTON>*, QVector<COMMAND>*)), shut, SLOT(newDevice(unsigned char, QVector<BUTTON>*, QVector<COMMAND>*))); connect(usbControllerDev, SIGNAL(newDevice(unsigned char, QVector<BUTTON>*, QVector<COMMAND>*)), shut, SLOT(newDevice(unsigned char, QVector<BUTTON>*, QVector<COMMAND>*)));
usbControllerThread->start(QThread::LowestPriority); usbControllerThread->start(QThread::LowestPriority);
@ -1443,7 +1443,7 @@ void wfmain::pttToggle(bool status)
} }
emit setPTT(status); emit setPTT(status);
emit shuttleLed(status, 1); emit controllerLed(status, 1);
// Start 3 minute timer // Start 3 minute timer
if (status) if (status)
pttTimer->start(); pttTimer->start();

Wyświetl plik

@ -45,7 +45,7 @@
#include <qcustomplot.h> #include <qcustomplot.h>
#include <qserialportinfo.h> #include <qserialportinfo.h>
#include "usbcontroller.h" #include "usbcontroller.h"
#include "shuttlesetup.h" #include "controllersetup.h"
#include <deque> #include <deque>
#include <memory> #include <memory>
@ -193,7 +193,7 @@ signals:
void openShuttle(); void openShuttle();
void requestRigState(); void requestRigState();
void stateUpdated(); void stateUpdated();
void shuttleLed(bool, unsigned char); void controllerLed(bool, unsigned char);
void sendUsbControllerCommands(QVector<COMMAND>* cmds); void sendUsbControllerCommands(QVector<COMMAND>* cmds);
void sendUsbControllerButtons(QVector<BUTTON>* buts); void sendUsbControllerButtons(QVector<BUTTON>* buts);
void setClusterUdpPort(int port); void setClusterUdpPort(int port);
@ -1068,7 +1068,7 @@ private:
repeaterSetup *rpt; repeaterSetup *rpt;
satelliteSetup *sat; satelliteSetup *sat;
transceiverAdjustments *trxadj; transceiverAdjustments *trxadj;
shuttleSetup* shut; controllerSetup* shut;
aboutbox *abtBox; aboutbox *abtBox;
selectRadio *selRad; selectRadio *selRad;
loggingWindow *logWindow; loggingWindow *logWindow;

Wyświetl plik

@ -4,7 +4,7 @@
# #
#------------------------------------------------- #-------------------------------------------------
QT += core gui serialport network multimedia xml QT += core gui serialport network multimedia xml gamepad
#QT += sql #QT += sql
#DEFINES += USESQL #DEFINES += USESQL
@ -181,7 +181,7 @@ SOURCES += main.cpp\
repeatersetup.cpp \ repeatersetup.cpp \
rigctld.cpp \ rigctld.cpp \
usbcontroller.cpp \ usbcontroller.cpp \
shuttlesetup.cpp \ controllersetup.cpp \
transceiveradjustments.cpp \ transceiveradjustments.cpp \
selectradio.cpp \ selectradio.cpp \
tcpserver.cpp \ tcpserver.cpp \
@ -220,7 +220,7 @@ HEADERS += wfmain.h \
rigctld.h \ rigctld.h \
ulaw.h \ ulaw.h \
usbcontroller.h \ usbcontroller.h \
shuttlesetup.h \ controllersetup.h \
transceiveradjustments.h \ transceiveradjustments.h \
audiotaper.h \ audiotaper.h \
selectradio.h \ selectradio.h \
@ -236,7 +236,7 @@ FORMS += wfmain.ui \
selectradio.ui \ selectradio.ui \
repeatersetup.ui \ repeatersetup.ui \
transceiveradjustments.ui \ transceiveradjustments.ui \
shuttlesetup.ui \ controllersetup.ui \
aboutbox.ui aboutbox.ui

Wyświetl plik

@ -44,7 +44,7 @@
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />
</ImportGroup> </ImportGroup>
<PropertyGroup Label="UserMacros" /><ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')"><Import Project="$(QtMsBuild)\qt_defaults.props" /></ImportGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"><OutDir>wfview-debug\</OutDir><IntDir>debug\</IntDir><TargetName>wfview</TargetName><IgnoreImportLibrary>true</IgnoreImportLibrary></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"><OutDir>wfview-release\</OutDir><IntDir>release\</IntDir><TargetName>wfview</TargetName><IgnoreImportLibrary>true</IgnoreImportLibrary><LinkIncremental>false</LinkIncremental></PropertyGroup><PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"><QtInstall>msvc2019</QtInstall><QtModules>core;network;gui;multimedia;widgets;serialport;printsupport</QtModules></PropertyGroup><PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"><QtInstall>msvc2019</QtInstall><QtModules>core;network;gui;multimedia;widgets;serialport;printsupport</QtModules></PropertyGroup><ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')"><Import Project="$(QtMsBuild)\qt.props" /></ImportGroup> <PropertyGroup Label="UserMacros" /><ImportGroup Condition="Exists('$(QtMsBuild)\qt_defaults.props')"><Import Project="$(QtMsBuild)\qt_defaults.props" /></ImportGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"><OutDir>wfview-debug\</OutDir><IntDir>debug\</IntDir><TargetName>wfview</TargetName><IgnoreImportLibrary>true</IgnoreImportLibrary></PropertyGroup><PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"><OutDir>wfview-release\</OutDir><IntDir>release\</IntDir><TargetName>wfview</TargetName><IgnoreImportLibrary>true</IgnoreImportLibrary><LinkIncremental>false</LinkIncremental></PropertyGroup><PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"><QtInstall>msvc2019</QtInstall><QtModules>core;xml;network;gui;multimedia;widgets;serialport;printsupport;gamepad</QtModules></PropertyGroup><PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"><QtInstall>msvc2019</QtInstall><QtModules>core;xml;network;gui;multimedia;widgets;serialport;printsupport;gamepad</QtModules></PropertyGroup><ImportGroup Condition="Exists('$(QtMsBuild)\qt.props')"><Import Project="$(QtMsBuild)\qt.props" /></ImportGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile> <ClCompile>
@ -57,7 +57,7 @@
<ExceptionHandling>Sync</ExceptionHandling> <ExceptionHandling>Sync</ExceptionHandling>
<ObjectFileName>release\</ObjectFileName> <ObjectFileName>release\</ObjectFileName>
<Optimization>MaxSpeed</Optimization> <Optimization>MaxSpeed</Optimization>
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION="1.45";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX="/usr/local";GITSHORT="546330e";HOST="wfview.org";UNAME="build";NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION="1.52";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX="/usr/local";GITSHORT="677eb3c";HOST="wfview.org";UNAME="build";NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessToFile>false</PreprocessToFile> <PreprocessToFile>false</PreprocessToFile>
<ProgramDataBaseFileName></ProgramDataBaseFileName> <ProgramDataBaseFileName></ProgramDataBaseFileName>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
@ -85,7 +85,7 @@
<WarningLevel>0</WarningLevel> <WarningLevel>0</WarningLevel>
</Midl> </Midl>
<ResourceCompile> <ResourceCompile>
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION=\"1.45\";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX=\"/usr/local\";GITSHORT=\"546330e\";HOST=\"wfview.org\";UNAME=\"build\";NDEBUG;QT_NO_DEBUG;QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION=\"1.52\";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX=\"/usr/local\";GITSHORT=\"677eb3c\";HOST=\"wfview.org\";UNAME=\"build\";NDEBUG;QT_NO_DEBUG;QT_MULTIMEDIA_LIB;QT_GAMEPAD_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_CORE_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile> </ResourceCompile>
<QtMoc><CompilerFlavor>msvc</CompilerFlavor><Include>./$(Configuration)/moc_predefs.h</Include><ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription><DynamicSource>output</DynamicSource><QtMocDir>$(Configuration)</QtMocDir><QtMocFileName>moc_%(Filename).cpp</QtMocFileName></QtMoc><QtRcc><Compression>default</Compression><ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription><QtRccDir>$(Configuration)</QtRccDir><QtRccFileName>qrc_%(Filename).cpp</QtRccFileName></QtRcc><QtUic><ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription><QtUicDir>$(ProjectDir)</QtUicDir><QtUicFileName>ui_%(Filename).h</QtUicFileName></QtUic></ItemDefinitionGroup> <QtMoc><CompilerFlavor>msvc</CompilerFlavor><Include>./$(Configuration)/moc_predefs.h</Include><ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription><DynamicSource>output</DynamicSource><QtMocDir>$(Configuration)</QtMocDir><QtMocFileName>moc_%(Filename).cpp</QtMocFileName></QtMoc><QtRcc><Compression>default</Compression><ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription><QtRccDir>$(Configuration)</QtRccDir><QtRccFileName>qrc_%(Filename).cpp</QtRccFileName></QtRcc><QtUic><ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription><QtUicDir>$(ProjectDir)</QtUicDir><QtUicFileName>ui_%(Filename).h</QtUicFileName></QtUic></ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@ -99,7 +99,7 @@
<ExceptionHandling>Sync</ExceptionHandling> <ExceptionHandling>Sync</ExceptionHandling>
<ObjectFileName>debug\</ObjectFileName> <ObjectFileName>debug\</ObjectFileName>
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION="1.45";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX="/usr/local";GITSHORT="546330e";HOST="wfview.org";UNAME="build";%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION="1.52";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX="/usr/local";GITSHORT="677eb3c";HOST="wfview.org";UNAME="build";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessToFile>false</PreprocessToFile> <PreprocessToFile>false</PreprocessToFile>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<SuppressStartupBanner>true</SuppressStartupBanner> <SuppressStartupBanner>true</SuppressStartupBanner>
@ -124,7 +124,7 @@
<WarningLevel>0</WarningLevel> <WarningLevel>0</WarningLevel>
</Midl> </Midl>
<ResourceCompile> <ResourceCompile>
<PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION=\"1.45\";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX=\"/usr/local\";GITSHORT=\"546330e\";HOST=\"wfview.org\";UNAME=\"build\";QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>_WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WFVIEW_VERSION=\"1.52\";BUILD_WFVIEW;__WINDOWS_WASAPI__;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;USE_SSE2;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;EIGEN_MPL2_ONLY;EIGEN_DONT_VECTORIZE;EIGEN_VECTORIZE_SSE3;PREFIX=\"/usr/local\";GITSHORT=\"677eb3c\";HOST=\"wfview.org\";UNAME=\"build\";QT_MULTIMEDIA_LIB;QT_GAMEPAD_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile> </ResourceCompile>
<QtMoc><CompilerFlavor>msvc</CompilerFlavor><Include>./$(Configuration)/moc_predefs.h</Include><ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription><DynamicSource>output</DynamicSource><QtMocDir>$(Configuration)</QtMocDir><QtMocFileName>moc_%(Filename).cpp</QtMocFileName></QtMoc><QtRcc><Compression>default</Compression><ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription><QtRccDir>$(Configuration)</QtRccDir><QtRccFileName>qrc_%(Filename).cpp</QtRccFileName></QtRcc><QtUic><ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription><QtUicDir>$(ProjectDir)</QtUicDir><QtUicFileName>ui_%(Filename).h</QtUicFileName></QtUic></ItemDefinitionGroup> <QtMoc><CompilerFlavor>msvc</CompilerFlavor><Include>./$(Configuration)/moc_predefs.h</Include><ExecutionDescription>Moc'ing %(Identity)...</ExecutionDescription><DynamicSource>output</DynamicSource><QtMocDir>$(Configuration)</QtMocDir><QtMocFileName>moc_%(Filename).cpp</QtMocFileName></QtMoc><QtRcc><Compression>default</Compression><ExecutionDescription>Rcc'ing %(Identity)...</ExecutionDescription><QtRccDir>$(Configuration)</QtRccDir><QtRccFileName>qrc_%(Filename).cpp</QtRccFileName></QtRcc><QtUic><ExecutionDescription>Uic'ing %(Identity)...</ExecutionDescription><QtUicDir>$(ProjectDir)</QtUicDir><QtUicFileName>ui_%(Filename).h</QtUicFileName></QtUic></ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
@ -133,7 +133,10 @@
<ClCompile Include="audioconverter.cpp" /> <ClCompile Include="audioconverter.cpp" />
<ClCompile Include="audiohandler.cpp" /> <ClCompile Include="audiohandler.cpp" />
<ClCompile Include="calibrationwindow.cpp" /> <ClCompile Include="calibrationwindow.cpp" />
<ClCompile Include="cluster.cpp" />
<ClCompile Include="commhandler.cpp" /> <ClCompile Include="commhandler.cpp" />
<ClCompile Include="controllersetup.cpp" />
<ClCompile Include="database.cpp" />
<ClCompile Include="freqmemory.cpp" /> <ClCompile Include="freqmemory.cpp" />
<ClCompile Include="..\hidapi\windows\hid.c" /> <ClCompile Include="..\hidapi\windows\hid.c" />
<ClCompile Include="logcategories.cpp" /> <ClCompile Include="logcategories.cpp" />
@ -152,7 +155,6 @@
<ClCompile Include="rthandler.cpp" /> <ClCompile Include="rthandler.cpp" />
<ClCompile Include="satellitesetup.cpp" /> <ClCompile Include="satellitesetup.cpp" />
<ClCompile Include="selectradio.cpp" /> <ClCompile Include="selectradio.cpp" />
<ClCompile Include="shuttlesetup.cpp" />
<ClCompile Include="tcpserver.cpp" /> <ClCompile Include="tcpserver.cpp" />
<ClCompile Include="transceiveradjustments.cpp" /> <ClCompile Include="transceiveradjustments.cpp" />
<ClCompile Include="udpaudio.cpp" /> <ClCompile Include="udpaudio.cpp" />
@ -206,6 +208,16 @@
</QtMoc>
<QtMoc Include="cluster.h">
</QtMoc> </QtMoc>
<ClInclude Include="colorprefs.h" /> <ClInclude Include="colorprefs.h" />
<QtMoc Include="commhandler.h"> <QtMoc Include="commhandler.h">
@ -218,6 +230,17 @@
</QtMoc> </QtMoc>
<QtMoc Include="controllersetup.h">
</QtMoc>
<ClInclude Include="database.h" />
<ClInclude Include="freqmemory.h" /> <ClInclude Include="freqmemory.h" />
<ClInclude Include="logcategories.h" /> <ClInclude Include="logcategories.h" />
<QtMoc Include="loggingwindow.h"> <QtMoc Include="loggingwindow.h">
@ -343,16 +366,6 @@
</QtMoc>
<QtMoc Include="shuttlesetup.h">
</QtMoc> </QtMoc>
<ClInclude Include="resampler\speex_resampler.h" /> <ClInclude Include="resampler\speex_resampler.h" />
<QtMoc Include="tcpserver.h"> <QtMoc Include="tcpserver.h">
@ -455,6 +468,10 @@
<CustomBuild Include="debug\moc_predefs.h.cbt"> <CustomBuild Include="debug\moc_predefs.h.cbt">
<FileType>Document</FileType> <FileType>Document</FileType>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
@ -515,8 +532,6 @@
@ -543,6 +558,17 @@
</QtUic>
<QtUic Include="controllersetup.ui">
</QtUic> </QtUic>
<QtUic Include="loggingwindow.ui"> <QtUic Include="loggingwindow.ui">
@ -587,17 +613,6 @@
</QtUic>
<QtUic Include="shuttlesetup.ui">
</QtUic> </QtUic>
<QtUic Include="transceiveradjustments.ui"> <QtUic Include="transceiveradjustments.ui">

Wyświetl plik

@ -62,9 +62,18 @@
<ClCompile Include="calibrationwindow.cpp"> <ClCompile Include="calibrationwindow.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="cluster.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="commhandler.cpp"> <ClCompile Include="commhandler.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="controllersetup.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="database.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="freqmemory.cpp"> <ClCompile Include="freqmemory.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
@ -119,9 +128,6 @@
<ClCompile Include="selectradio.cpp"> <ClCompile Include="selectradio.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="shuttlesetup.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="tcpserver.cpp"> <ClCompile Include="tcpserver.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
@ -172,12 +178,21 @@
<QtMoc Include="calibrationwindow.h"> <QtMoc Include="calibrationwindow.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</QtMoc> </QtMoc>
<QtMoc Include="cluster.h">
<Filter>Header Files</Filter>
</QtMoc>
<ClInclude Include="colorprefs.h"> <ClInclude Include="colorprefs.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<QtMoc Include="commhandler.h"> <QtMoc Include="commhandler.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</QtMoc> </QtMoc>
<QtMoc Include="controllersetup.h">
<Filter>Header Files</Filter>
</QtMoc>
<ClInclude Include="database.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="freqmemory.h"> <ClInclude Include="freqmemory.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
@ -232,9 +247,6 @@
<QtMoc Include="selectradio.h"> <QtMoc Include="selectradio.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</QtMoc> </QtMoc>
<QtMoc Include="shuttlesetup.h">
<Filter>Header Files</Filter>
</QtMoc>
<ClInclude Include="resampler\speex_resampler.h"> <ClInclude Include="resampler\speex_resampler.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
@ -286,6 +298,10 @@
<CustomBuild Include="debug\moc_predefs.h.cbt"> <CustomBuild Include="debug\moc_predefs.h.cbt">
<Filter>Generated Files</Filter> <Filter>Generated Files</Filter>
</CustomBuild> </CustomBuild>
@ -336,8 +352,6 @@
@ -349,6 +363,9 @@
<QtUic Include="calibrationwindow.ui"> <QtUic Include="calibrationwindow.ui">
<Filter>Form Files</Filter> <Filter>Form Files</Filter>
</QtUic> </QtUic>
<QtUic Include="controllersetup.ui">
<Filter>Form Files</Filter>
</QtUic>
<QtUic Include="loggingwindow.ui"> <QtUic Include="loggingwindow.ui">
<Filter>Form Files</Filter> <Filter>Form Files</Filter>
</QtUic> </QtUic>
@ -361,9 +378,6 @@
<QtUic Include="selectradio.ui"> <QtUic Include="selectradio.ui">
<Filter>Form Files</Filter> <Filter>Form Files</Filter>
</QtUic> </QtUic>
<QtUic Include="shuttlesetup.ui">
<Filter>Form Files</Filter>
</QtUic>
<QtUic Include="transceiveradjustments.ui"> <QtUic Include="transceiveradjustments.ui">
<Filter>Form Files</Filter> <Filter>Form Files</Filter>
</QtUic> </QtUic>