2021-11-23 13:22:00 +08:00
|
|
|
//
|
|
|
|
|
// Created by Krad on 2021/11/23.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
private:
|
2021-12-07 14:08:05 +08:00
|
|
|
QTableView* table = nullptr;
|
|
|
|
|
QPushButton* btn = nullptr;
|
|
|
|
|
LogFileTableModel* model = nullptr;
|
|
|
|
|
SelectDialog* dialog = nullptr;
|
|
|
|
|
QVBoxLayout* layout = nullptr;
|
|
|
|
|
QString selectedDateStr;
|
2021-11-23 13:22:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GUI_USEROPERATIONLOGFORM_H
|