SmartLockerTools/Analyser/Widget.h

71 lines
1.9 KiB
C
Raw Normal View History

2024-05-21 21:09:55 +08:00
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
2024-06-05 12:13:10 +08:00
#include <fstream>
2024-05-21 21:09:55 +08:00
class QPushButton;
class QTextBrowser;
class QComboBox;
class QLineEdit;
class QGroupBox;
2024-05-24 10:23:05 +08:00
class QTableView;
2024-05-21 21:09:55 +08:00
class ModuleCommunication;
2024-05-24 10:23:05 +08:00
class PalmFeatureTableModel;
class Database;
2024-05-21 21:09:55 +08:00
class Widget : public QWidget {
Q_OBJECT
public:
explicit Widget(QWidget *parent = nullptr);
2024-06-13 15:41:40 +08:00
void onNewLog(const QString &log);
2024-05-21 21:09:55 +08:00
protected:
QGroupBox *initializeCommandGroupBox();
2024-05-22 18:03:11 +08:00
void onClearLogButtonClicked();
2024-05-21 21:09:55 +08:00
void onSerialConnectButtonClicked();
void onSerialRefreshButtonClicked();
2024-05-22 18:03:11 +08:00
void onUvcRefreshButtonClicked();
2024-05-21 21:09:55 +08:00
void onEnrollButtonClicked();
2024-06-05 12:13:10 +08:00
void onEnrollExButtonClicked();
2024-05-21 21:09:55 +08:00
void onVerifyButtonClicked();
void onDeleteAllButtonClicked();
void onDeleteButtonClicked();
2024-05-22 18:03:11 +08:00
void onRequestPalmFeatureButtonClicked();
2024-05-23 19:58:36 +08:00
void onRegisterPalmFeatureButtonClicked();
void onResetButtonClicked();
2024-05-21 21:09:55 +08:00
QGroupBox *initializeEnrollGroupBox();
QGroupBox *initializeVerifyGroupBox();
QGroupBox *initializeDeleteGroupBox();
QGroupBox *initializePalmFeatureGroupBox();
2024-05-22 18:03:11 +08:00
QGroupBox *initializeUvcGroupBox();
2024-05-21 21:09:55 +08:00
private:
QComboBox *m_serialComboBox = nullptr;
QPushButton *m_serialConnectButton = nullptr;
QTextBrowser *m_logBrowser = nullptr;
QGroupBox *m_commandGroupBox = nullptr;
QLineEdit *m_enrollNameEdit = nullptr;
QLineEdit *m_enrollTimeoutEdit = nullptr;
QPushButton *m_enrollButton = nullptr;
QLineEdit *m_verifyTimeoutEdit = nullptr;
QPushButton *m_verifyButton = nullptr;
QLineEdit *m_deleteIdEdit = nullptr;
QPushButton *m_deleteButton = nullptr;
QPushButton *m_deleteAllButton = nullptr;
2024-05-22 18:03:11 +08:00
QLineEdit *m_palmFeatureEdit = nullptr;
2024-05-24 10:23:05 +08:00
PalmFeatureTableModel *m_featureModel = nullptr;
QTableView *m_featureTableView = nullptr;
2024-05-21 21:09:55 +08:00
};
#endif // WIDGET_H