38 lines
801 B
C++
38 lines
801 B
C++
#pragma once
|
|
#include <QCheckBox>
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QSplitter>
|
|
#include <QTableWidget>
|
|
|
|
#include "dao/GeneralLogDAO.h"
|
|
|
|
class FileLogWindow final : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FileLogWindow(QWidget *parent = nullptr);
|
|
void sendLogsToBackend();
|
|
|
|
private:
|
|
QTableWidget *m_table;
|
|
QLabel *m_screenshotLabel;
|
|
QLabel *m_pageLabel;
|
|
QPushButton *m_prevBtn;
|
|
QPushButton *m_nextBtn;
|
|
QPushButton *m_sendBtn;
|
|
QCheckBox *m_showAllCheck;
|
|
|
|
int m_page = 0;
|
|
int m_pageSize = 20;
|
|
int m_totalPages = 1;
|
|
|
|
QList<GeneralLogEntry> m_entries;
|
|
|
|
QStringList currentLevelFilter() const;
|
|
void loadPage();
|
|
void updatePagination();
|
|
void showScreenshot(int row);
|
|
};
|