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