A142_Desktop/windowchannel.h

64 lines
1.1 KiB
C
Raw Normal View History

2023-11-30 12:58:49 +03:00
#ifndef WINDOWCHANNEL_H
#define WINDOWCHANNEL_H
#include <QWidget>
#include <enums.h>
#include <QInputDialog>
#include <mainwindow.h>
2023-11-30 12:58:49 +03:00
namespace Ui {
class windowChannel;
}
class windowChannel : public QWidget
{
Q_OBJECT
class MainWindow;
bool isConnected;
2023-11-30 12:58:49 +03:00
public:
void hideValue();
void showValue();
2023-11-30 12:58:49 +03:00
void setWindowsChannel(typeCHANNEL channel);
typeCHANNEL getWindowsChannel();
typeIKU VerifyGainA142(Set thisData);
2023-11-30 12:58:49 +03:00
QString DisplayIKUA142(float sens,typeIKU iku, typeVALUE value);
typeIKU maxGain(Set Data);
2023-11-30 12:58:49 +03:00
explicit windowChannel(QWidget *parent = nullptr);
~windowChannel();
signals:
void ReadyToSend(Set, typeREQ);
2023-11-30 12:58:49 +03:00
public slots:
2023-12-14 17:04:09 +03:00
void sendSens();
2023-11-30 12:58:49 +03:00
void setSens(Set data);
void setState(Set data);
void reDraw();
private slots:
void on_comboBoxVCH_activated(int index);
void on_comboBoxNCH_activated(int index);
void on_comboBoxOUT_activated(int index);
2023-11-30 12:58:49 +03:00
private:
Set thisData; //данные этой структуры
typeCHANNEL channel;
Ui::windowChannel *ui;
QStringList avalibleKuList(Set thisData);
2023-11-30 12:58:49 +03:00
};
#endif // WINDOWCHANNEL_H