//
// Created by Krad on 2021/11/23.
//

#ifndef GUI_USEROPERATIONLOGFORM_H
#define GUI_USEROPERATIONLOGFORM_H

#include <QWidget>
class QTableView;
class QPushButton;
class LogFileTableModel;
class QVBoxLayout;
class SelectDialog;
class UserOperationLogForm :public QWidget {
	Q_OBJECT
public:
	explicit UserOperationLogForm(QWidget* parent = nullptr);
	~UserOperationLogForm();
	void loadUserOperationLog();
	void loadUserOperationLog(const QString& fileName, const QString& date);

private:
	QTableView* table = nullptr;
	QPushButton* btn = nullptr;
	LogFileTableModel* model = nullptr;
	SelectDialog* dialog = nullptr;
	QVBoxLayout* layout = nullptr;
	QString selectedDateStr;
};


#endif //GUI_USEROPERATIONLOGFORM_H
