+66
-66
@@ -1,66 +1,66 @@
|
||||
#ifndef DLGVOLTEPARA25DOTS_H
|
||||
#define DLGVOLTEPARA25DOTS_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTabWidget>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QMessageBox>
|
||||
#include "ParaSettingUI.h"
|
||||
|
||||
class DevOp;
|
||||
|
||||
class DlgVoltePara25Dots : public QDialog, public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DlgVoltePara25Dots(DevOp *devOp, QWidget *parent = nullptr);
|
||||
~DlgVoltePara25Dots();
|
||||
|
||||
public slots:
|
||||
void onBtnLoadClicked();
|
||||
void onBtnSaveClicked();
|
||||
|
||||
private:
|
||||
void setupUI();
|
||||
QWidget* createGridTab(int count, QLineEdit* edits[], int numCols = 4);
|
||||
void loadDataToUI();
|
||||
void saveDataFromUI();
|
||||
|
||||
// UI 控件
|
||||
QTabWidget *tabWidget;
|
||||
QPushButton *btnLoad;
|
||||
QPushButton *btnSave;
|
||||
DevOp *m_devOp;
|
||||
|
||||
// 单值64通道 tab
|
||||
QLineEdit *editContinuous[64]; // 连续点电压 matchContinousDACArray[64]
|
||||
QLineEdit *editRowDelay[64]; // 点延迟 matchExtraLineDACArray[64]
|
||||
QLineEdit *editHead1RowDelay[64]; // 首1点延迟 matchFirstOnePointExtraLineDACArray[64]
|
||||
QLineEdit *editSingleDot[64]; // 单点(首1) matchTotalTableDACArrayFirst1[64]
|
||||
QLineEdit *edit1Dot[64]; // 一点 matchTotalTableDACArray1[64]
|
||||
|
||||
// 多值64通道 tab(每个lineEdit放逗号分隔的多个值)
|
||||
QLineEdit *edit2Dots[64]; // 两点 matchTotalTableDACArray2[64][2]
|
||||
QLineEdit *edit3Dots[64]; // 三点 matchTotalTableDACArray3[64][3]
|
||||
QLineEdit *edit4Dots[64]; // 四点 matchTotalTableDACArray4[64][4]
|
||||
QLineEdit *edit5Dots[64]; // 五点 matchTotalTableDACArray5[64][5]
|
||||
|
||||
// 差分补偿:50组×64通道,每5组一个tab,共10个tab
|
||||
// 每个tab有64个lineEdit,每个lineEdit放5个逗号分隔值
|
||||
QLineEdit *editDiff[10][64]; // matchTotalDiffVoltageValue[50][64]
|
||||
|
||||
// 巨点补偿:16组×64通道,分4个tab(5,5,5,1组)
|
||||
// 前3个tab各64个lineEdit(流式切分320值÷5),第4个tab 13个lineEdit(流式切分64值÷5)
|
||||
QLineEdit *editGiant[4][64]; // matchGiantPointVoltageValue[16][64]
|
||||
|
||||
// 通用参数
|
||||
QLineEdit *editAdjustPara[8]; // matchAdjustParaDACArray[8]
|
||||
};
|
||||
|
||||
#endif // DLGVOLTEPARA25DOTS_H
|
||||
#ifndef DLGVOLTEPARA25DOTS_H
|
||||
#define DLGVOLTEPARA25DOTS_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTabWidget>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QGridLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QMessageBox>
|
||||
#include "ParaSettingUI.h"
|
||||
|
||||
class DevOp;
|
||||
|
||||
class DlgVoltePara25Dots : public QDialog, public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DlgVoltePara25Dots(DevOp *devOp, QWidget *parent = nullptr);
|
||||
~DlgVoltePara25Dots();
|
||||
|
||||
public slots:
|
||||
void onBtnLoadClicked();
|
||||
void onBtnSaveClicked();
|
||||
|
||||
private:
|
||||
void setupUI();
|
||||
QWidget* createGridTab(int count, QLineEdit* edits[], int numCols = 4);
|
||||
void loadDataToUI();
|
||||
void saveDataFromUI();
|
||||
|
||||
// UI 控件
|
||||
QTabWidget *tabWidget;
|
||||
QPushButton *btnLoad;
|
||||
QPushButton *btnSave;
|
||||
DevOp *m_devOp;
|
||||
|
||||
// 单值64通道 tab
|
||||
QLineEdit *editContinuous[64]; // 连续点电压 matchContinousDACArray[64]
|
||||
QLineEdit *editRowDelay[64]; // 点延迟 matchExtraLineDACArray[64]
|
||||
QLineEdit *editHead1RowDelay[64]; // 首1点延迟 matchFirstOnePointExtraLineDACArray[64]
|
||||
QLineEdit *editSingleDot[64]; // 单点(首1) matchTotalTableDACArrayFirst1[64]
|
||||
QLineEdit *edit1Dot[64]; // 一点 matchTotalTableDACArray1[64]
|
||||
|
||||
// 多值64通道 tab(每个lineEdit放逗号分隔的多个值)
|
||||
QLineEdit *edit2Dots[64]; // 两点 matchTotalTableDACArray2[64][2]
|
||||
QLineEdit *edit3Dots[64]; // 三点 matchTotalTableDACArray3[64][3]
|
||||
QLineEdit *edit4Dots[64]; // 四点 matchTotalTableDACArray4[64][4]
|
||||
QLineEdit *edit5Dots[64]; // 五点 matchTotalTableDACArray5[64][5]
|
||||
|
||||
// 差分补偿:50组×64通道,每5组一个tab,共10个tab
|
||||
// 每个tab有64个lineEdit,每个lineEdit放5个逗号分隔值
|
||||
QLineEdit *editDiff[10][64]; // matchTotalDiffVoltageValue[50][64]
|
||||
|
||||
// 巨点补偿:16组×64通道,分4个tab(5,5,5,1组)
|
||||
// 前3个tab各64个lineEdit(流式切分320值÷5),第4个tab 13个lineEdit(流式切分64值÷5)
|
||||
QLineEdit *editGiant[4][64]; // matchGiantPointVoltageValue[16][64]
|
||||
|
||||
// 通用参数
|
||||
QLineEdit *editAdjustPara[8]; // matchAdjustParaDACArray[8]
|
||||
};
|
||||
|
||||
#endif // DLGVOLTEPARA25DOTS_H
|
||||
|
||||
Reference in New Issue
Block a user