Files
FWS-PacManage/pages/history-page.h
T
BlackAngelTV 897c174925 refactor(arch): split the app into a logic core and per-screen pages
All the business logic now lives in AppCore (providers, workers,
history, plugins, sudo and pacman-lock handling), freed from any widget
so it runs headless and is testable on its own. The Qt window becomes a
thin frame around one file per screen under pages/, wired through a
common Page contract and a shared ui-kit. CMake gains the app-core-test
target, which links Qt Core only to enforce the headless guarantee.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-13 11:45:48 +02:00

31 lines
724 B
C++

#pragma once
#include "page.h"
class QComboBox;
class QLabel;
class QTableWidget;
// Historique: every action the application recorded (installations, removals,
// updates, cleanups), filterable and exportable.
class HistoryPage : public Page {
Q_OBJECT
public:
explicit HistoryPage(AppCore* core, QWidget* parent = nullptr);
QString navTitle() const override { return QStringLiteral("Historique"); }
QString navSubtitle() const override {
return QStringLiteral("Journal de toutes vos actions");
}
void refresh() override;
void exportCsv();
private:
void refreshTable();
QComboBox* m_filter = nullptr;
QLabel* m_count = nullptr;
QTableWidget* m_table = nullptr;
};