Files
2026-10-19 17:48:03 +08:00

69 lines
2.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef DLGVOLTEPARANO73_H
#define DLGVOLTEPARANO73_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 DlgVolteParaNo73 : public QDialog, public ParaSettingUI
{
Q_OBJECT
public:
explicit DlgVolteParaNo73(DevOp *devOp, QWidget *parent = nullptr);
~DlgVolteParaNo73();
public slots:
void onBtnLoadClicked();
void onBtnSaveClicked();
private:
void setupUI();
QWidget* createGridTab(int count, QLineEdit* edits[]);
void loadDataToUI();
void saveDataFromUI();
// UI 控件
QTabWidget *tabWidget;
QPushButton *btnLoad;
QPushButton *btnSave;
DevOp *m_devOp;
// 单值48通道 tab
QLineEdit *editContinuous[48]; // 连续电压 pixel_continous_table[48]
QLineEdit *editFull[48]; // 满电 pixel_full_table[48]
QLineEdit *editFullRowDelay[48]; // 满电延迟 full_row_delay_table[48]
QLineEdit *editRowDelay[48]; // 点延迟 row_delay_table[48]
QLineEdit *editHead1RowDelay[48]; // 首1点延迟 head1_row_delay_table[48]
QLineEdit *edit1Dot[48]; // 单点 pixel_1_table[48]
// 其他调整:pixel_steal_table[48], pixel_head2_table[48], pixel_head3_table[48], pixel_tail2_table[48]
// 每个lineEdit放4个逗号分隔值(steal,head2,head3,tail2)
QLineEdit *editOtherAdjust[48];
// 多值48通道 tab
QLineEdit *edit2Dots[48]; // 两点 pixel_2_table[48][2]
QLineEdit *edit3Dots[48]; // 三点 pixel_3_table[48][3]
QLineEdit *edit4Dots[48]; // 四点 pixel_4_table[48][4]
QLineEdit *edit5Dots[48]; // 五点 pixel_5_table[48][5]
QLineEdit *editGap3Dot[48]; // 3_空点 pixel_gap_post_3dot_table[48][5]
QLineEdit *editGap[48]; // 空点 pixel_gap_table[48][5]
// 巨点 pixel_big_table[8][8],8行每行8个逗号分隔值
QLineEdit *editBigDot[8];
// 通用参数 pixel_para_table[16] + pixel_general_dac_parameter[64],共80项
QLineEdit *editGeneralPara[80];
};
#endif // DLGVOLTEPARANO73_H