From 614cb16fd9f398ace46e33a89f3e8cb3bafa31d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9au?= <theau.baton@etu.univ-amu.fr> Date: Fri, 2 Feb 2024 20:51:27 +0100 Subject: [PATCH] Ajout de SaveAll --- IHM_Retouche_Photo/mainwindow.ui | 4 ++-- IHM_Retouche_Photo/tools/editable/pixelEraiser.cpp | 2 +- IHM_Retouche_Photo/tools/editable/pixelpainter.cpp | 2 +- IHM_Retouche_Photo/ui/menu/filemenulambda.cpp | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/IHM_Retouche_Photo/mainwindow.ui b/IHM_Retouche_Photo/mainwindow.ui index 73912b2..78e8e24 100644 --- a/IHM_Retouche_Photo/mainwindow.ui +++ b/IHM_Retouche_Photo/mainwindow.ui @@ -586,7 +586,7 @@ <string>Permet à image courante de modifier toutes les autres images modifiable.</string> </property> <property name="text"> - <string>Modifie les autres Image</string> + <string>Modifie les autres Images</string> </property> </widget> </item> @@ -602,7 +602,7 @@ <string>Permet de laisser l'image courante être modifié par les autres images.</string> </property> <property name="text"> - <string>Modifiable par les autres Image</string> + <string>Modifiable par les autres Images</string> </property> <property name="checked"> <bool>true</bool> diff --git a/IHM_Retouche_Photo/tools/editable/pixelEraiser.cpp b/IHM_Retouche_Photo/tools/editable/pixelEraiser.cpp index b8d0c10..09ba5d0 100644 --- a/IHM_Retouche_Photo/tools/editable/pixelEraiser.cpp +++ b/IHM_Retouche_Photo/tools/editable/pixelEraiser.cpp @@ -3,7 +3,7 @@ namespace tool { Pixeleraiser::Pixeleraiser(const ColorPickerWidget & cp) : Editable(cp, "Gomme", QIcon(":/oxygen/16x16/ressource/image/oxygen/icons/16x16/draw-eraser.png")), - _config(new dialog::SizeDialog("Paramètre de la gomme", "Taille de la gomme", 1, 255, 4, "pixels")), _leftButton(false), _rightButton(false) { + _config(new dialog::SizeDialog("Paramètre de la gomme", "Taille de la gomme", 1, 2048, 4, "pixels")), _leftButton(false), _rightButton(false) { this->setCongigurationDialog(this->_config.get()); } diff --git a/IHM_Retouche_Photo/tools/editable/pixelpainter.cpp b/IHM_Retouche_Photo/tools/editable/pixelpainter.cpp index e12dbbd..8cbe0de 100644 --- a/IHM_Retouche_Photo/tools/editable/pixelpainter.cpp +++ b/IHM_Retouche_Photo/tools/editable/pixelpainter.cpp @@ -3,7 +3,7 @@ namespace tool { Pixelpainter::Pixelpainter(const ColorPickerWidget & cp) : Editable(cp, "Crayon", QIcon(":/oxygen/16x16/ressource/image/oxygen/icons/16x16/draw-freehand.png")), - _config(new dialog::SizeDialog("Paramètre du crayon", "Taille du crayon", 1, 255, 4, "pixels")), _leftButton(false) { + _config(new dialog::SizeDialog("Paramètre du crayon", "Taille du crayon", 1, 2048, 4, "pixels")), _leftButton(false) { this->setCongigurationDialog(this->_config.get()); } diff --git a/IHM_Retouche_Photo/ui/menu/filemenulambda.cpp b/IHM_Retouche_Photo/ui/menu/filemenulambda.cpp index 3ace62a..3258598 100644 --- a/IHM_Retouche_Photo/ui/menu/filemenulambda.cpp +++ b/IHM_Retouche_Photo/ui/menu/filemenulambda.cpp @@ -16,6 +16,7 @@ namespace ui { QObject::connect(menu->actions().at(Actions::SAVE), SIGNAL(triggered()), this->_viewManager, SLOT(saveCurrentView())); QObject::connect(menu->actions().at(Actions::SAVE_AS), SIGNAL(triggered()), this->_viewManager, SLOT(saveAsCurrentView())); + QObject::connect(menu->actions().at(Actions::SAVE_ALL), SIGNAL(triggered()), this->_viewManager, SLOT(saveAll())); QObject::connect(menu->actions().at(Actions::NEW), SIGNAL(triggered()), this->_viewManager, SLOT(newView())); QObject::connect(menu->actions().at(Actions::CLOSE), SIGNAL(triggered()), this->_viewManager, SLOT(deleteCurrentView())); -- GitLab