hlp:桂林国际齿轮泵代码
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
@@ -0,0 +1,56 @@
|
||||
#ifndef MEMDISPLAYANDEDIT_H
|
||||
#define MEMDISPLAYANDEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QLineEdit>
|
||||
#include <ParaSettingUI.h>
|
||||
#include <QLabel>
|
||||
#define MEM_GRID_MAX_ROW 5
|
||||
#define MEM_GRID_MAX_COL 16
|
||||
namespace Ui {
|
||||
class MemDisplayAndEdit;
|
||||
}
|
||||
|
||||
class MemDisplayAndEdit : public QWidget,public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MemDisplayAndEdit(QWidget *parent = 0);
|
||||
~MemDisplayAndEdit();
|
||||
|
||||
void updateSysStatusToUI(void);
|
||||
|
||||
private slots:
|
||||
void on_comboBoxBaseAddress_activated(const QString &arg1);
|
||||
|
||||
void on_radioButtonRead_pressed();
|
||||
|
||||
void on_radioButtonWrite_pressed();
|
||||
|
||||
void on_pushButtonEdit_pressed();
|
||||
|
||||
void on_pushButtonLastPage_pressed();
|
||||
|
||||
void on_pushButtonNextPage_pressed();
|
||||
void onLineEditEditingFinished();
|
||||
|
||||
|
||||
void on_lineEditDec_editingFinished();
|
||||
|
||||
void on_lineEditHex_editingFinished();
|
||||
|
||||
private:
|
||||
Ui::MemDisplayAndEdit *ui;
|
||||
|
||||
QLineEdit *memLineEdit[MEM_GRID_MAX_ROW*MEM_GRID_MAX_COL];
|
||||
QLabel *rowLabel[MEM_GRID_MAX_ROW];
|
||||
|
||||
bool editFlag; //是否当前处于编辑模式
|
||||
bool writeMemMode; //是否当前处于写地址模式
|
||||
int writeMemBaseAddr;
|
||||
int readMemBaseAddr;
|
||||
|
||||
};
|
||||
|
||||
#endif // MEMDISPLAYANDEDIT_H
|
||||
Reference in New Issue
Block a user