mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00

* rxr src files and classes (detectordata, ZmqSocket) added to sls namespace * moving defines inside namespace * moving defines inside namespace, added helpdacs to namespace * added namespace to gui * gui also updated * removed unnecessary sls:: when already in sls namespace for slsDetectoSoftware, receverSoftware, slsDetectorGui and slsSupportlib
37 lines
816 B
C++
37 lines
816 B
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
#include "sls/Detector.h"
|
|
#include "sls/sls_detector_defs.h"
|
|
#include "ui_form_dac.h"
|
|
#include <string>
|
|
|
|
namespace sls {
|
|
|
|
class qDacWidget : public QWidget, private Ui::WidgetDacObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
qDacWidget(QWidget *parent, Detector *detector, bool d, std::string n,
|
|
slsDetectorDefs::dacIndex i);
|
|
~qDacWidget();
|
|
void SetDetectorIndex(int id);
|
|
|
|
private slots:
|
|
void SetDac();
|
|
|
|
private:
|
|
void SetupWidgetWindow(std::string name);
|
|
void Initialization();
|
|
void GetDac();
|
|
void GetAdc();
|
|
void Refresh();
|
|
|
|
Detector *det;
|
|
bool isDac{true};
|
|
slsDetectorDefs::dacIndex index;
|
|
int detectorIndex{-1};
|
|
};
|
|
|
|
} // namespace sls
|