refactor(pages): group the screens by what the user is doing
pages/ was a flat row of eight screens, so a change to one meant scanning the whole folder to see what else was in it. The screens now sit in packages/ (browse, cleanup), overview/ (dashboard, history), system/ (logs, settings) and extensions/ (plugins), with the scaffolding they all build on — the Page base and the shared widgets — in base/.
This commit is contained in:
19 files changed
+19
-19
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#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;
|
||||
};
|
||||
Reference in new issue
Block a user