r14239 by fschmid - Fixed Bug #8545: "Remove the preview option from the load/save dialog for SCU curves"

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 27 11:30:36 CET 2009


Revision: 14239
Author: fschmid
Date: 2009-10-27T06:36:04.954570Z
Commit message: Fixed Bug #8545: "Remove the preview option from the load/save dialog for SCU curves"

Changeset: 
M  /trunk/Scribus/scribus/ui/curvewidget.cpp
M  /trunk/Scribus/scribus/ui/gradientmanager.cpp

Diffs:
Index: scribus/ui/gradientmanager.cpp
===================================================================
--- scribus/ui/gradientmanager.cpp	(revision 14238)
+++ scribus/ui/gradientmanager.cpp	(revision 14239)
@@ -198,8 +198,8 @@
 	allFormats += "*.sgr *.SGR";
 	allFormats += " *.ggr *.GGR";
 	allFormats += ");;";
-	QString formats = tr("Scribus Gradient Files (*.sgr *.SGR);;");
-	formats += tr("Gimp Gradient Files (*.ggr *.SGR);;");
+	QString formats = tr("Scribus Gradient Files \"*.sgr\" (*.sgr *.SGR);;");
+	formats += tr("Gimp Gradient Files \"*.ggr\" (*.ggr *.GGR);;");
 	formats += tr("All Files (*)");
 	allFormats += formats;
 	PrefsContext* dirs = PrefsManager::instance()->prefsFile->getContext("dirs");
Index: scribus/ui/curvewidget.cpp
===================================================================
--- scribus/ui/curvewidget.cpp	(revision 14238)
+++ scribus/ui/curvewidget.cpp	(revision 14239)
@@ -412,7 +412,7 @@
 	QString fileName;
 	PrefsContext* dirs = PrefsManager::instance()->prefsFile->getContext("dirs");
 	QString wdir = dirs->get("curves", ".");
-	CustomFDialog dia(this, wdir, tr("Open"), tr("Curve Files (*.scu);;All Files (*)"));
+	CustomFDialog dia(this, wdir, tr("Open"), tr("Curve Files \"*.scu\" (*.scu *.SCU);;All Files (*)"), fdHidePreviewCheckBox | fdExistingFiles);
 	if (dia.exec() == QDialog::Accepted)
 		fileName = dia.selectedFile();
 	else
@@ -450,7 +450,7 @@
 {
 	QString fileName;
 	QString wdir = PrefsManager::instance()->prefsFile->getContext("dirs")->get("curves", ".");
-	CustomFDialog dia(this, wdir, tr("Save as"), tr("Curve Files (*.scu);;All Files (*)"), fdNone);
+	CustomFDialog dia(this, wdir, tr("Save as"), tr("Curve Files \"*.scu\" (*.scu *.SCU);;All Files (*)"), fdNone);
 	if (dia.exec() == QDialog::Accepted)
 		fileName = dia.selectedFile();
 	else




More information about the scribus-commit mailing list