|
|
@ -7,6 +7,7 @@ |
|
|
|
#include "network/UdpDataSender.h" |
|
|
|
#include "model/DatabaseManager.h" |
|
|
|
|
|
|
|
#define US_HOME_PATH "US_HOME" |
|
|
|
#define CONNECT_LED(NAME) \ |
|
|
|
connect(panel, SIGNAL(NAME ## LedChanged(char)), this, SLOT(NAME ## LedHandle(char))); |
|
|
|
|
|
|
@ -21,8 +22,7 @@ MainViewModel::MainViewModel(QObject* parent) : ViewModel(parent) |
|
|
|
connect(network, &UdpDataSender::dataReady, panel, &Console::newData); |
|
|
|
connect(network, &UdpDataSender::probeSlotsDataReady, panel, &Console::newData); |
|
|
|
|
|
|
|
//Read probe ids from the database
|
|
|
|
QString databasePath = "../../../US_Home/database/ProbeProperties.db"; |
|
|
|
QString databasePath = QString("%1/%2").arg(qgetenv(US_HOME_PATH), _dbPath); |
|
|
|
DatabaseManager manager(databasePath); |
|
|
|
QList<QVariant> globalNames = manager.getProbeNames(); |
|
|
|
|
|
|
|