This commit is contained in:
maliakal_d 2019-07-02 12:09:37 +02:00
parent 547ab8a749
commit fc2cc7e00c
8 changed files with 11 additions and 8 deletions

View File

@ -91,7 +91,6 @@ target_link_libraries(slsDetectorGui PUBLIC
${QT_QTCORE_LIBRARIES} ${QT_QTCORE_LIBRARIES}
${QT_QTGUI_LIBRARIES} ${QT_QTGUI_LIBRARIES}
${QWT_LIBRARIES} ${QWT_LIBRARIES}
pthread
${ZeroMQ_LIBRARIES} ${ZeroMQ_LIBRARIES}
rt rt
png png
@ -104,3 +103,4 @@ set_target_properties(slsDetectorGui PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
) )
install(TARGETS slsDetectorGui DESTINATION bin)

View File

@ -26,9 +26,9 @@ class qDefs : public QWidget {
static void DisplayExceptions(std::string emsg, std::string src) { static void DisplayExceptions(std::string emsg, std::string src) {
try { try {
throw; throw;
} catch (sls::SocketError) { } catch (const sls::SocketError &e) {
throw; throw;
} catch (sls::SharedMemoryError) { } catch (const sls::SharedMemoryError &e) {
throw; throw;
} catch (const std::exception &e) { } catch (const std::exception &e) {
ExceptionMessage(emsg, e.what(), src); ExceptionMessage(emsg, e.what(), src);
@ -42,9 +42,9 @@ class qDefs : public QWidget {
typename NonDeduced<CT>::type... Args) { typename NonDeduced<CT>::type... Args) {
try { try {
throw; throw;
} catch (sls::SocketError) { } catch (const sls::SocketError &e) {
throw; throw;
} catch (sls::SharedMemoryError) { } catch (const sls::SharedMemoryError &e) {
throw; throw;
} catch (const std::exception &e) { } catch (const std::exception &e) {
ExceptionMessage(emsg, e.what(), src); ExceptionMessage(emsg, e.what(), src);

View File

@ -252,6 +252,7 @@ void qDetectorMain::SetUpDetector(const std::string fName, int multiID) {
case slsDetectorDefs::JUNGFRAU: case slsDetectorDefs::JUNGFRAU:
actionLoadTrimbits->setText("Load Settings"); actionLoadTrimbits->setText("Load Settings");
actionSaveTrimbits->setText("Save Settings"); actionSaveTrimbits->setText("Save Settings");
break;
case slsDetectorDefs::MOENCH: case slsDetectorDefs::MOENCH:
actionLoadTrimbits->setEnabled(false); actionLoadTrimbits->setEnabled(false);
actionSaveTrimbits->setEnabled(false); actionSaveTrimbits->setEnabled(false);

View File

@ -156,6 +156,7 @@ void qTabAdvanced::GetOnline() {
lblOnline->setToolTip(detOnlineTip); lblOnline->setToolTip(detOnlineTip);
dispOnline->setPalette(lblHostname->palette()); dispOnline->setPalette(lblHostname->palette());
lblOnline->setPalette(lblHostname->palette()); lblOnline->setPalette(lblHostname->palette());
break;
default: default:
dispOnline->setText("Offline"); dispOnline->setText("Offline");
lblOnline->setText("Detector Online Status:* "); lblOnline->setText("Detector Online Status:* ");
@ -291,6 +292,7 @@ void qTabAdvanced::GetReceiverOnline() {
lblRxrOnline->setToolTip(rxrOnlineTip); lblRxrOnline->setToolTip(rxrOnlineTip);
dispRxrOnline->setPalette(lblHostname->palette()); dispRxrOnline->setPalette(lblHostname->palette());
lblRxrOnline->setPalette(lblHostname->palette()); lblRxrOnline->setPalette(lblHostname->palette());
break;
default: default:
dispRxrOnline->setText("Offline"); dispRxrOnline->setText("Offline");
lblRxrOnline->setText("Receiver Online Status:* "); lblRxrOnline->setText("Receiver Online Status:* ");

View File

@ -7,6 +7,7 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTimer> #include <QTimer>
#include <cmath>
#include <iostream> #include <iostream>
qTabMeasurement::qTabMeasurement(QWidget *parent, multiSlsDetector *detector, qDrawPlot *plot) : QWidget(parent), myDet(detector), myPlot(plot), qTabMeasurement::qTabMeasurement(QWidget *parent, multiSlsDetector *detector, qDrawPlot *plot) : QWidget(parent), myDet(detector), myPlot(plot),

View File

@ -121,7 +121,6 @@ const char* getTimerName(enum timerIndex ind) {
case ACTUAL_TIME: return "actual_time"; case ACTUAL_TIME: return "actual_time";
case MEASUREMENT_TIME: return "measurement_time"; case MEASUREMENT_TIME: return "measurement_time";
case PROGRESS: return "progress"; case PROGRESS: return "progress";
case MEASUREMENTS_NUMBER: return "measurements_number";
case FRAMES_FROM_START: return "frames_from_start"; case FRAMES_FROM_START: return "frames_from_start";
case FRAMES_FROM_START_PG: return "frames_from_start_pg"; case FRAMES_FROM_START_PG: return "frames_from_start_pg";
case ANALOG_SAMPLES: return "analog_samples"; case ANALOG_SAMPLES: return "analog_samples";

View File

@ -5,6 +5,6 @@
#define APIRECEIVER 0x190604 #define APIRECEIVER 0x190604
#define APIGUI 0x190405 #define APIGUI 0x190405
#define APICTB 0x190604 #define APICTB 0x190604
#define APIEIGER 0x190604
#define APIJUNGFRAU 0x190604 #define APIJUNGFRAU 0x190604
#define APIGOTTHARD 0x190604 #define APIGOTTHARD 0x190604
#define APIEIGER 0x190702