[qet] [2246] Add method to don't save, save as save to file a element if it seem to be out of the element border (hotspot).

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2246
Author:   scorpio810
Date:     2013-06-11 18:15:29 +0200 (Tue, 11 Jun 2013)
Log Message:
-----------
Add method to don't save, save as save to file  a element if it seem to be out of the element border (hotspot).

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2013-06-11 14:31:18 UTC (rev 2245)
+++ trunk/sources/editor/qetelementeditor.cpp	2013-06-11 16:15:29 UTC (rev 2246)
@@ -999,6 +999,7 @@
 	Demande une localisation a l'utilisateur et enregistre l'element
 */
 bool QETElementEditor::slot_saveAs() {
+	if (!ce_scene -> borderContainsEveryParts()) return(false);
 	// demande une localisation a l'utilisateur
 	ElementsLocation location = ElementDialog::getSaveElementLocation(this);
 	if (location.isNull()) return(false);
@@ -1018,6 +1019,8 @@
 	Demande un nom de fichier a l'utilisateur et enregistre l'element
 */
 bool QETElementEditor::slot_saveAsFile() {
+	if (!ce_scene -> borderContainsEveryParts()) return(false);
+
 	// demande un nom de fichier a l'utilisateur pour enregistrer l'element
 	QString fn = QFileDialog::getSaveFileName(
 		this,


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/