V3.4.0 — Panneau fusion, macros CLI, bouton config client Vision

- Panneau de fusion PDF avec dialog dedié :
  - Liste des fichiers avec drag & drop pour reordonner
  - Boutons Ajouter/Retirer/Monter/Descendre
  - Pre-rempli avec le fichier courant
- Support --macro en ligne de commande
- register_windows.bat : ajout dynamique des macros au menu contextuel
- Vision : bouton "Configurer le client" dans le modal licence
  (ouvre le gros modal client avec SFTP, fonctions, tunnel, etc.)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jules
2026-03-21 16:54:34 +01:00
parent 5e368ef260
commit e05f2e1fba
6 changed files with 153 additions and 20 deletions

10
main.py
View File

@@ -210,12 +210,16 @@ def main():
# Gestion des arguments
args = sys.argv[1:]
action = None
macro_name = None
files_to_open = []
i = 0
while i < len(args):
if args[i] == "--action" and i + 1 < len(args):
action = args[i + 1]
i += 2
elif args[i] == "--macro" and i + 1 < len(args):
macro_name = args[i + 1]
i += 2
elif args[i].lower().endswith('.pdf') and os.path.exists(args[i]):
files_to_open.append(args[i])
i += 1
@@ -265,6 +269,12 @@ def main():
QMessageBox.critical(window, "Erreur", str(e))
QTimer.singleShot(500, run_cli_action)
# Macro en ligne de commande
if macro_name and files_to_open:
def run_cli_macro():
window._run_macro(macro_name)
QTimer.singleShot(500, run_cli_macro)
window.show()
splash.close()
sys.exit(app.exec())