[rkward-cvs] SF.net SVN: rkward: [952] trunk/rkward/rkward/misc
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Nov 27 17:56:44 UTC 2006
Revision: 952
http://svn.sourceforge.net/rkward/?rev=952&view=rev
Author: tfry
Date: 2006-11-27 09:56:43 -0800 (Mon, 27 Nov 2006)
Log Message:
-----------
Support selection of save files
Modified Paths:
--------------
trunk/rkward/rkward/misc/getfilenamewidget.cpp
trunk/rkward/rkward/misc/getfilenamewidget.h
Modified: trunk/rkward/rkward/misc/getfilenamewidget.cpp
===================================================================
--- trunk/rkward/rkward/misc/getfilenamewidget.cpp 2006-11-27 17:42:18 UTC (rev 951)
+++ trunk/rkward/rkward/misc/getfilenamewidget.cpp 2006-11-27 17:56:43 UTC (rev 952)
@@ -75,6 +75,8 @@
temp = KFileDialog::getExistingDirectory (location_edit->text (), this, caption);
} else if (mode == ExistingFile) {
temp = KFileDialog::getOpenFileName (location_edit->text (), _filter, this, caption);
+ } else if (mode == SaveFile) {
+ temp = KFileDialog::getSaveFileName (location_edit->text (), _filter, this, caption);
} else {
RK_ASSERT (false);
}
Modified: trunk/rkward/rkward/misc/getfilenamewidget.h
===================================================================
--- trunk/rkward/rkward/misc/getfilenamewidget.h 2006-11-27 17:42:18 UTC (rev 951)
+++ trunk/rkward/rkward/misc/getfilenamewidget.h 2006-11-27 17:56:43 UTC (rev 952)
@@ -31,7 +31,7 @@
class GetFileNameWidget : public QWidget {
Q_OBJECT
public:
- enum FileType { ExistingFile=0, ExistingDirectory=1 };
+ enum FileType { ExistingFile=0, ExistingDirectory=1, SaveFile=2 };
GetFileNameWidget (QWidget *parent, FileType mode, const QString &label, const QString &caption, const QString &initial);
~GetFileNameWidget ();
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