34 lines
779 B
C++
34 lines
779 B
C++
#pragma once
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QSplitter>
|
|
#include <QTableWidget>
|
|
|
|
class EventWindow final : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EventWindow(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
QTableWidget *m_table;
|
|
QLabel *m_pageLabel;
|
|
QLabel *m_screenshotLabel;
|
|
QPushButton *m_prevBtn;
|
|
QPushButton *m_nextBtn;
|
|
QPushButton *m_sendBtn;
|
|
|
|
int m_page = 0;
|
|
int m_pageSize = 50;
|
|
int m_totalPages = 1;
|
|
|
|
// Кешируем event id текущей страницы для загрузки скриншота по клику
|
|
QList<int> m_eventIds;
|
|
|
|
void loadPage();
|
|
void updatePagination();
|
|
void showScreenshot(int eventId);
|
|
void sendEventsToCsv();
|
|
};
|