[rkward-cvs] SF.net SVN: rkward: [953] trunk/rkward/rkward/plugin/rkpluginbrowser.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Nov 27 17:57:22 UTC 2006


Revision: 953
          http://svn.sourceforge.net/rkward/?rev=953&view=rev
Author:   tfry
Date:     2006-11-27 09:57:22 -0800 (Mon, 27 Nov 2006)

Log Message:
-----------
Add support for save file selection

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkpluginbrowser.cpp

Modified: trunk/rkward/rkward/plugin/rkpluginbrowser.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkpluginbrowser.cpp	2006-11-27 17:56:43 UTC (rev 952)
+++ trunk/rkward/rkward/plugin/rkpluginbrowser.cpp	2006-11-27 17:57:22 UTC (rev 953)
@@ -38,12 +38,14 @@
 
 	QVBoxLayout *vbox = new QVBoxLayout (this, RKGlobals::spacingHint ());
 
-	int intmode = xml->getMultiChoiceAttribute (element, "type", "file;dir", 0, DL_INFO);
+	int intmode = xml->getMultiChoiceAttribute (element, "type", "file;dir;savefile", 0, DL_INFO);
 	GetFileNameWidget::FileType mode;
 	if (intmode == 0) {
 		mode = GetFileNameWidget::ExistingFile;
+	} else if (intmode == 0) {
+		mode = GetFileNameWidget::ExistingDirectory;
 	} else {
-		mode = GetFileNameWidget::ExistingDirectory;
+		mode = GetFileNameWidget::SaveFile;
 	}
 	selector = new GetFileNameWidget (this, mode, xml->getStringAttribute (element, "label", i18n ("Enter filename"), DL_INFO), i18n ("Select"), xml->getStringAttribute (element, "initial", QString::null, DL_INFO));
 	selector->setFilter (xml->getStringAttribute (element, "filter", QString::null, DL_INFO));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list