2021-11-23 13:22:00 +08:00
|
|
|
#ifndef GUI_USEROPERATIONLOGFORM_H
|
|
|
|
|
#define GUI_USEROPERATIONLOGFORM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2021-11-23 16:53:36 +08:00
|
|
|
class QTableView;
|
|
|
|
|
class QPushButton;
|
2021-11-26 10:49:09 +08:00
|
|
|
class LogFileTableModel;
|
|
|
|
|
class QVBoxLayout;
|
2021-12-07 14:08:05 +08:00
|
|
|
class SelectDialog;
|
|
|
|
|
class UserOperationLogForm :public QWidget {
|
|
|
|
|
Q_OBJECT
|
2021-11-23 13:22:00 +08:00
|
|
|
public:
|
2021-12-07 14:08:05 +08:00
|
|
|
explicit UserOperationLogForm(QWidget* parent = nullptr);
|
|
|
|
|
~UserOperationLogForm();
|
|
|
|
|
void loadUserOperationLog();
|
|
|
|
|
void loadUserOperationLog(const QString& fileName, const QString& date);
|
2021-11-23 13:22:00 +08:00
|
|
|
|
2023-09-05 16:32:38 +08:00
|
|
|
protected:
|
|
|
|
|
void showEvent(QShowEvent *aEvent) override;
|
|
|
|
|
|
2021-11-23 13:22:00 +08:00
|
|
|
private:
|
2024-07-29 10:16:37 +08:00
|
|
|
QTableView* mLogTable = nullptr;
|
|
|
|
|
QPushButton* mDateButton = nullptr;
|
|
|
|
|
QPushButton* mTopButton = nullptr;
|
|
|
|
|
QPushButton* mBottomButton = nullptr;
|
|
|
|
|
LogFileTableModel* mModel = nullptr;
|
|
|
|
|
SelectDialog* mSelectDateDialog = nullptr;
|
|
|
|
|
QVBoxLayout* mLayout = nullptr;
|
|
|
|
|
QString mSelectedDateStr;
|
2021-11-23 13:22:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GUI_USEROPERATIONLOGFORM_H
|