emsApplication/applications/emsConfigurer/devicepropertypage.h

52 lines
949 B
C++

#ifndef DEVICEPROPERTYPAGE_H
#define DEVICEPROPERTYPAGE_H
#pragma execution_character_set("utf-8")
#include <QWidget>
#include "datafetcher.h"
class MyTableModel;
class QTimer;
class QTableView;
class QPushButton;
class DevicePropertyPage : public QWidget,public DataFetcher
{
Q_OBJECT
public:
explicit DevicePropertyPage(QWidget *parent = nullptr);
~DevicePropertyPage();
void setBaseType(unsigned int base,unsigned int mask);
void InitializeTable();
public slots:
void handleTimeout(); //超时处理函数
private:
QTimer *m_pTimer;
private:
MyTableModel* m_myModel;
protected:
void Refresh();
private slots:
void onButtonClicked();
void onTableViewDoubleClicked(const QModelIndex &index);
void adjustColumnWidths();
private:
unsigned int filterBaseType;
unsigned int mask_code;
QTableView* m_pTableView;
QPushButton* m_pButton;
};
#endif // DEVICEPROPERTYPAGE_H