//! Static helper that invokes a File Save dialog where the user can select a directory and enter a filename to be saved.
/*!
...
...
@@ -100,18 +103,21 @@ public:
@param[out] selectedFilter **NOT IMPLEMENTED - Set to NULL** Returns the filter that the user selected in the file dialog.
@param[in] options Set the various options that affect the look and feel of the dialog.
@param[in] defaultSuffix Specifies a string that will be added to the filename if it has no suffix already. The suffix is typically used to indicate the file type (e.g. "txt" indicates a text file).
@param[in] strict Makes the default suffix mandatory. Only files with those extensions will be allowed.
@return The full path and filename to be used to save the file or \c QString("") if none.
@remark If a default suffix is given, it will be appended to the filename if the user does not enter one themselves. That is, if the user simply enters \e foo and the default suffix is set to \e bar,
the returned filename will be \e foo.bar. However, if the user specifies a suffix, none will be added. That is, if the user enters \e foo.txt, that's what you will receive in return.
*/
staticQStringgetSaveFileName(QWidget*parent=0,
constQString&caption=QString(),
constQString&dir=QString(),
constQString&filter=QString(),
QString*selectedFilter=0,
Optionsoptions=0,
QString*defaultSuffix=0);
staticQStringgetSaveFileName(
QWidget*parent=0,
constQString&caption=QString(),
constQString&dir=QString(),
constQString&filter=QString(),
QString*selectedFilter=0,
Optionsoptions=0,
QString*defaultSuffix=0,
boolstrict=false);
privateslots:
/// @brief The exec slot is private becasue when only want QGCFileDialog users to use the static methods. Otherwise it will break