First commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#ifndef DACDISPLAYANDEDIT_H
|
||||
#define DACDISPLAYANDEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QLineEdit>
|
||||
#include <ParaSettingUI.h>
|
||||
#include <QLabel>
|
||||
#define DAC_GRID_MAX_ROW 4
|
||||
#define DAC_GRID_MAX_COL 10
|
||||
#define MAX_RD_DAC_SIZE_MASK 0x3f
|
||||
#define MAX_WR_DAC_SIZE_MASK 0x3f
|
||||
namespace Ui {
|
||||
class DacDisplayAndEdit;
|
||||
}
|
||||
|
||||
class DacDisplayAndEdit : public QWidget,public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DacDisplayAndEdit(QWidget *parent = 0);
|
||||
~DacDisplayAndEdit();
|
||||
|
||||
void updateSysStatusToUI(void);
|
||||
void updateSysParaToUI(void);
|
||||
void updateAuthorization(int auth);
|
||||
|
||||
private slots:
|
||||
void on_pushButtonEdit_pressed();
|
||||
void on_pushButtonDefault_pressed();
|
||||
void onLineEditEditingFinished();
|
||||
|
||||
|
||||
private:
|
||||
Ui::DacDisplayAndEdit *ui;
|
||||
QLineEdit *memLineEdit[DAC_GRID_MAX_ROW*DAC_GRID_MAX_COL];
|
||||
QLabel *rowLabel[DAC_GRID_MAX_ROW];
|
||||
bool editFlag; //是否当前处于编辑模式
|
||||
int writeMemBaseAddr;
|
||||
int readMemBaseAddr;
|
||||
};
|
||||
|
||||
#endif
|
||||
// DacDisplayANDEDIT_H
|
||||
|
||||
Reference in New Issue
Block a user