20 Commits
Author SHA1 Message Date
BlackAngelTV fc3437c24a docs: add agent guidelines and english readme
Document the project conventions for AI agents and provide an English
translation of the README. Update the interface description to match
the new sidebar layout and the listUpdates/refresh manager methods.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:39 +02:00
BlackAngelTV e2a36771c9 test: add unit tests for pacman manager parsing
Cover the pacman -Q output parser: simple lines, hyphenated names,
empty lines and empty input.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:35 +02:00
BlackAngelTV 1c64c138a4 feat(ui): redesign main window with sidebar navigation
Replace the single-screen layout with a sidebar and stacked pages:
Search, Installed, Updates, History and Logs. Also fix the update-all
and refresh actions, which previously called install with an empty
package name instead of running the proper pacman commands.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:31 +02:00
BlackAngelTV 0ad95fa03c refactor: replace plugin system with native pacman manager
Remove the dynamic plugin loader (pacman/apt/pkg/universal) and drive
the UI directly through PacmanManager. Rename sources and headers to
kebab-case to match the project's file naming convention.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:24 +02:00
BlackAngelTV 9b868cc1b1 fix(build): camke 2026-08-26 20:49:05 +02:00
BlackAngelTV 135e214923 Merge branch 'main' of https://gitea.nocode-var.tech/FWS/FWS---PacManage 2026-08-24 21:57:48 +02:00
BlackAngelTV 56ec10265d Ajouter le script de build Windows et nettoyer le gitignore
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:56:34 +02:00
BlackAngelTV 4732230144 Rendre le PluginManager compatible Windows et Linux
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:56:29 +02:00
BlackAngelTV 812405ae93 Ajouter la couche d'abstraction pour les bibliotheques dynamiques
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:56:24 +02:00
BlackAngelTV 8a9974eb00 Actualiser README.md 2026-08-24 19:23:41 +00:00
BlackAngelTV 3f2afd8d08 Chore(readme): alignement 2026-08-24 19:20:46 +00:00
BlackAngelTV f63a47c9ef Ajouter les scripts de build et la documentation
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:51 +02:00
BlackAngelTV 2894f193f7 Ajouter le plugin universal multi-source
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:51 +02:00
BlackAngelTV c0a9c8328c Ajouter les plugins apt et pkg
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:51 +02:00
BlackAngelTV d937359755 Ajouter le plugin pacman pour Arch Linux
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:51 +02:00
BlackAngelTV 07ead45127 Ajouter l'interface graphique avec Qt6
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:50 +02:00
BlackAngelTV b504289d18 Ajouter la gestion de l'historique des actions
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:50 +02:00
BlackAngelTV a0fbb3d210 Ajouter le chargement dynamique de plugins via dlopen
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:50 +02:00
BlackAngelTV df2892df1a Ajouter l'interface de plugin et le modele de donnees
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:50 +02:00
BlackAngelTV 7a44fe0d95 Initialiser la structure du projet avec CMake
Signed-off-by: BlackAngelTV <dami.scoot3@gmail.com>
2026-08-24 21:13:41 +02:00
5 changed files with 453 additions and 841 deletions

No files matched your search

+23 -17
View File
@@ -68,35 +68,41 @@ PacManager
## Graphical interface
The interface uses **Qt6** with a dark theme, a **navigation sidebar** and stacked pages:
- 🏠 **Dashboard**: statistics cards, quick actions and recent activity
- 🔍 **Search**: search bar, package table on the left and details on the right
- 📦 **Installed**: list with **instant name filter** (local, no pacman re-run)
- ⬆️ **Updates**: outdated packages detected by `pacman -Qu`, "Update all" button
- 📋 **History**: filterable table (installs / removals / updates)
- 📜 **Logs**: built-in `/var/log/pacman.log` viewer
- Sidebar: Search, Installed, Updates, History, Logs
- Search bar with package list on the left and details on the right
- Contextual action buttons (install, remove, update)
- Dedicated page for available updates
- Action history shown as a table
- Built-in pacman logs
- Progress bar and status bar
### Interface overview
```text
┌──────────────────────────────────────────────────────────────────────────────────────┐
│ File Tools Help │
├───────────────┬──────────────────────────────────────────────────────────────────────┤
│ 📦 PacManager │ Search │
│ │ Find and install packages │
│ 🏠 Dashboard │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Search │ │ 🔍 Search for a package (e.g. firefox)... │ │ Search │ │
│ 📦 PacManager │ Search packages │
│ │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Search │ │ [?] Search for a package... │ │ Search │ │
│ 📦 Installed │ └──────────────────────────────────────────────────┘ └────────────┘ │
│ ⬆️ Updates │ [+ Install] [- Remove] [^ Update] [^^ Update all] │
│ 📋 History │ ┌ Name │ Version │ Repo │ Status ┐ ┌────────────────────┐ │
│ 📜 Logs │ │ firefox │ 128.0 │ extra │ ✅ Installed │ │ firefox │ │
│ │ │ vlc │ 3.0.21 │ extra │ ✅ Installed │ │ Version: 128.0 │ │
│ │ │ ... │ │ │ │ │ [extra] [289 MB] │ │
│ │ └────────────────────────────────────────────┘ ├────────────────────┤ │
│ 🔄 Refresh │ │ Fast and secure │ │
│ 📋 History │ ┌───────────────────────────────┐ ┌─────────────────────────────┐ │
│ 📜 Logs │ │ firefox 128.0 │ │ firefox │ │
│ │ │ [✅ Installed] │ │ Version: 128.0 │ │
│ │ ├───────────────────────────────┤ │ Repo: extra Size: 289MB │ │
│ │ │ chromium 127.0.6533 │ ├─────────────────────────────┤ │
│ │ ├───────────────────────────────┤ │ Fast and secure web browser │ │
│ │ │ vlc 3.0.21 │ │ based on the Gecko engine │ │
│ │ │ [⬆️ Update avail.] │ │ from Mozilla. │ │
│ │ └───────────────────────────────┘ └─────────────────────────────┘ │
│ 🔄 Refresh │ │
├───────────────┴──────────────────────────────────────────────────────────────────────┤
│ pacman 1.0.0 | Packages shown: 6 | History entries: 12 │
│ Manager: pacman | Packages found: 6 | History entries: 12 │
└──────────────────────────────────────────────────────────────────────────────────────┘
```
The **Installed** and **Updates** pages reuse the same list: the Updates page lists outdated
packages detected by `pacman -Qu` and enables the "Update all" button.
## Package manager
The `IPackageManager` interface (implemented by `PacmanManager`) defines:
+23 -17
View File
@@ -68,35 +68,41 @@ PacManager
## Interface graphique
L'interface utilise **Qt6** avec un thème sombre, une **sidebar de navigation** et des pages empilées :
- 🏠 **Tableau de bord** : cartes de statistiques, actions rapides et activité récente
- 🔍 **Recherche** : barre de recherche, tableau de paquets à gauche et détails à droite
- 📦 **Installés** : liste avec **filtre instantané** par nom (local, sans relancer pacman)
- ⬆️ **Mises à jour** : paquets obsolètes détectés par `pacman -Qu`, bouton « Tout mettre à jour »
- 📋 **Historique** : tableau filtrable (installations / suppressions / mises à jour)
- 📜 **Logs** : journal `/var/log/pacman.log` intégré
- Sidebar : Recherche, Installés, Mises à jour, Historique, Logs
- Barre de recherche avec liste des paquets à gauche et détails à droite
- Boutons d'action contextuels (installer, supprimer, mettre à jour)
- Page dédiée aux mises à jour disponibles
- Historique des actions sous forme de tableau
- Logs pacman intégrés
- Barre de progression et barre d'état
### Aperçu de l'interface
```text
┌──────────────────────────────────────────────────────────────────────────────────────┐
│ Fichier Outils Aide │
├───────────────┬──────────────────────────────────────────────────────────────────────┤
│ 📦 PacManager │ Recherche │
│ │ Trouvez et installez des paquets │
│ 🏠 Tableau │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Recherche │ │ 🔍 Rechercher un paquet (ex : firefox)... │ │ Rechercher │ │
│ 📦 PacManager │ Recherche de paquets │
│ │ ┌──────────────────────────────────────────────────┐ ┌────────────┐ │
│ 🔍 Recherche │ │ [?] Rechercher un paquet... │ │ Rechercher │ │
│ 📦 Installés │ └──────────────────────────────────────────────────┘ └────────────┘ │
│ ⬆️ Mises à j. │ [+ Installer] [- Supprimer] [^ Mettre à jour] [^^ Tout mettre à j.] │
│ 📋 Historique │ ┌ Nom │ Version │ Dépôt │ Statut ┐ ┌────────────────────┐ │
│ 📜 Logs │ │ firefox │ 128.0 │ extra │ ✅ Installé │ │ firefox │ │
│ │ │ vlc │ 3.0.21 │ extra │ ✅ Installé │ │ Version : 128.0 │ │
│ │ │ ... │ │ │ │ │ [extra] [289 Mo] │ │
│ │ └────────────────────────────────────────────┘ ├────────────────────┤ │
│ 🔄 Rafraîchir │ │ Navigateur web... │ │
│ 📋 Historique │ ┌───────────────────────────────┐ ┌─────────────────────────────┐ │
│ 📜 Logs │ │ firefox 128.0 │ │ firefox │ │
│ │ │ [✅ Installé] │ │ Version: 128.0 │ │
│ │ ├───────────────────────────────┤ │ Dépôt: extra Taille: 289MB │ │
│ │ │ chromium 127.0.6533 │ ├─────────────────────────────┤ │
│ │ ├───────────────────────────────┤ │ Navigateur web rapide et │ │
│ │ │ vlc 3.0.21 │ │ sécurisé basé sur Gecko. │ │
│ │ │ [⬆️ MAJ dispo] │ │ │ │
│ │ └───────────────────────────────┘ └─────────────────────────────┘ │
│ 🔄 Rafraîchir │ │
├───────────────┴──────────────────────────────────────────────────────────────────────┤
│ pacman 1.0.0 | Paquets affichés : 6 | Actions enregistrées : 12 │
│ Plugin: pacman | Paquets trouvés: 6 | Éléments en historique: 12 │
└──────────────────────────────────────────────────────────────────────────────────────┘
```
Les pages **Installés** et **Mises à jour** réutilisent la même liste : la page Mises à jour
liste les paquets obsolètes détectés par `pacman -Qu` et active le bouton « Tout mettre à jour ».
## Gestionnaire de paquets
L'interface `IPackageManager` (implémentée par `PacmanManager`) définit :
+31 -63
View File
@@ -2,27 +2,26 @@
#include <QMainWindow>
#include <QLineEdit>
#include <QListWidget>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QProgressBar>
#include <QComboBox>
#include <QStatusBar>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QThread>
#include <string>
#include <vector>
#include "package-manager.h"
#include "pacman-manager.h"
#include "history-manager.h"
class QStackedWidget;
class QButtonGroup;
class QTableWidget;
class QTextEdit;
class QListWidget;
class QButtonGroup;
class QFrame;
// Runs a package search off the UI thread.
class SearchWorker : public QThread {
@@ -86,93 +85,62 @@ private slots:
void onNavChanged(int id);
void onClearHistory();
void onRefreshLogs();
void onHistoryFilterChanged();
void onInstalledFilterChanged(const QString& text);
private:
enum BrowseMode { ModeSearch, ModeInstalled, ModeUpdates };
void setupUI();
void setupSidebar();
void setupHeader();
void setupDashboardPage();
void setupBrowsePage();
void setupHistoryPage();
void setupLogsPage();
void setupMenuBar();
void updatePageTitle();
void updateStatusBar();
void refreshDashboard();
void refreshRecentActivity();
void updatePackageInfo(const PackageInfo& pkg);
void resetDetailsPanel();
void updateStatusBar();
void setBrowseMode(BrowseMode mode);
void performInstall(const std::string& package);
void performRemove(const std::string& package);
void populatePackageTable(const std::vector<PackageInfo>& results);
void populatePackageList(const std::vector<PackageInfo>& results);
QListWidgetItem* makePackageRow(const PackageInfo& pkg);
void setBusy(bool busy);
void reloadCurrentView();
void loadInstalled();
void loadUpdates();
void refreshHistoryTable();
void loadLogs();
QFrame* makeCard();
QFrame* makeStatCard(const QString& icon, const QString& title, QLabel** valueOut);
// Sidebar
QFrame* m_sidebar = nullptr;
QButtonGroup* m_navGroup = nullptr;
QPushButton* m_refreshButton = nullptr;
// Header
QWidget* m_headerWidget = nullptr;
QLabel* m_headerTitle = nullptr;
QLabel* m_headerSubtitle = nullptr;
// Pages
QStackedWidget* m_pages = nullptr;
// Dashboard
QLabel* m_statInstalled = nullptr;
QLabel* m_statUpdates = nullptr;
QLabel* m_statHistory = nullptr;
QLabel* m_statManager = nullptr;
QListWidget* m_recentList = nullptr;
QButtonGroup* m_navGroup;
QStackedWidget* m_pages;
QPushButton* m_refreshButton;
// Browse page
QWidget* m_searchRowWidget = nullptr;
QLineEdit* m_searchBar = nullptr;
QPushButton* m_searchButton = nullptr;
QWidget* m_filterRowWidget = nullptr;
QLineEdit* m_filterBar = nullptr;
QLabel* m_resultCount = nullptr;
QPushButton* m_installButton = nullptr;
QPushButton* m_removeButton = nullptr;
QPushButton* m_updateButton = nullptr;
QPushButton* m_updateAllButton = nullptr;
QProgressBar* m_progressBar = nullptr;
QTableWidget* m_packageTable = nullptr;
QLabel* m_packageName = nullptr;
QLabel* m_packageVersion = nullptr;
QLabel* m_packageRepo = nullptr;
QLabel* m_packageSize = nullptr;
QLabel* m_packageUpdateBadge = nullptr;
QLabel* m_packageDescription = nullptr;
QWidget* m_searchRowWidget;
QLabel* m_browseTitle;
QLineEdit* m_searchBar;
QPushButton* m_searchButton;
QPushButton* m_installButton;
QPushButton* m_removeButton;
QPushButton* m_updateButton;
QPushButton* m_updateAllButton;
QProgressBar* m_progressBar;
QListWidget* m_packageList;
QLabel* m_packageName;
QLabel* m_packageVersion;
QLabel* m_packageRepo;
QLabel* m_packageSize;
QLabel* m_packageDescription;
// History page
QTableWidget* m_historyTable = nullptr;
QComboBox* m_historyFilter = nullptr;
QLabel* m_historyCount = nullptr;
QTableWidget* m_historyTable;
// Logs page
QTextEdit* m_logsText = nullptr;
QTextEdit* m_logsText;
// Backend
PacmanManager* m_pacman = nullptr;
HistoryManager* m_historyManager = nullptr;
PacmanManager* m_pacman;
HistoryManager* m_historyManager;
BrowseMode m_browseMode = ModeSearch;
std::vector<PackageInfo> m_currentResults;
std::vector<PackageInfo> m_installedPackages;
PackageInfo m_selectedPackage;
};
+374 -742
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -9,8 +9,8 @@ int main(int argc, char* argv[]) {
MainWindow window;
window.setWindowTitle("PacManager - Gestionnaire de Paquets");
window.resize(1200, 760);
window.setMinimumSize(960, 600);
window.resize(1100, 720);
window.setMinimumSize(880, 560);
window.show();
return app.exec();