A142_Desktop/windowchannel.h

71 lines
1.4 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);
explicit windowChannel(QWidget *parent = nullptr);
~windowChannel();
signals:
void ReadyToSend(Set, typeREQ);
2023-11-30 12:58:49 +03:00
public slots:
void sendSens();
2023-11-30 12:58:49 +03:00
void setSens(Set data);
void setState(Set data);
void reDraw();
private slots:
//void on_comboBoxIIN_currentIndexChanged(const QString &arg1);
void on_comboBoxIIN_currentIndexChanged(int index);
void on_comboBoxVCH_activated(int index);
void on_comboBoxNCH_activated(int index);
void on_comboBoxUNIT_currentIndexChanged(int index);
void on_comboBoxUNIT_activated(int index);
void on_comboBoxIIN_activated(int index);
void on_comboBoxOUT_activated(int index);
//void on_comboBoxUNIT_activated(const QString &arg1);
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