71 lines
1.4 KiB
C++
71 lines
1.4 KiB
C++
#ifndef WINDOWCHANNEL_H
|
|
#define WINDOWCHANNEL_H
|
|
|
|
#include <QWidget>
|
|
#include <enums.h>
|
|
#include <QInputDialog>
|
|
#include <mainwindow.h>
|
|
|
|
namespace Ui {
|
|
class windowChannel;
|
|
}
|
|
|
|
class windowChannel : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
class MainWindow;
|
|
bool isConnected;
|
|
public:
|
|
|
|
void hideValue();
|
|
void showValue();
|
|
|
|
void setWindowsChannel(typeCHANNEL channel);
|
|
typeCHANNEL getWindowsChannel();
|
|
typeIKU VerifyGainA142(Set thisData);
|
|
QString DisplayIKUA142(float sens,typeIKU iku, typeVALUE value);
|
|
|
|
explicit windowChannel(QWidget *parent = nullptr);
|
|
~windowChannel();
|
|
|
|
signals:
|
|
void ReadyToSend(Set, typeREQ);
|
|
|
|
public slots:
|
|
|
|
void sendSens();
|
|
|
|
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);
|
|
|
|
private:
|
|
Set thisData; //данные этой структуры
|
|
typeCHANNEL channel;
|
|
Ui::windowChannel *ui;
|
|
|
|
QStringList avalibleKuList(Set thisData);
|
|
|
|
};
|
|
|
|
#endif // WINDOWCHANNEL_H
|