]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/qt_helpers.h
Make code a bit easier to read
[lyx.git] / src / frontends / qt / qt_helpers.h
index 77c14b8c88e21de7a4d385137c1417a73bb10b69..f3230b2d3212566b27fea9dd312877d0cc2c3fde 100644 (file)
@@ -120,47 +120,6 @@ support::FileName imageLibFileSearch(QString & dir, QString const & name,
                                QString const & ext = QString(),
                                support::search_mode mode = support::must_exist);
 
-/** Wrappers around browseFile which try to provide a filename
-       relative to relpath.
-
-\param title: title for dialog
-
-\param filters: *.ps, etc
-
-\param save: whether to save dialog info (current path, etc) for next use.
-
-The \param labelN and \param dirN arguments provide for extra buttons
-in the dialog (e.g., "Templates" and a path to that directory).
-
-The difference between the functions concerns when we think we have a
-relative path.
-
-In \c browseRelToParent, we return a relative path only if it IS NOT of
-       the form "../../foo.txt".
-
-In \c browseRelToSub, we return a relative path only if it IS of the
- form "../../foo.txt".
-*/
-QString browseRelToParent(QString const & filename,
-       QString const & relpath,
-       QString const & title,
-       QStringList const & filters,
-       bool save = false,
-       QString const & label1 = QString(),
-       QString const & dir1 = QString(),
-       QString const & label2 = QString(),
-       QString const & dir2 = QString());
-
-QString browseRelToSub(QString const & filename,
-       QString const & relpath,
-       QString const & title,
-       QStringList const & filters,
-       bool save = false,
-       QString const & label1 = QString(),
-       QString const & dir1 = QString(),
-       QString const & label2 = QString(),
-       QString const & dir2 = QString());
-
 /** Build filelists of all available bst/cls/sty-files. Done through
 *  kpsewhich and an external script, saved in *Files.lst.
 *  \param arg: cls, sty, bst, or bib, as required by TeXFiles.py.
@@ -184,6 +143,8 @@ QString internalPath(QString const &);
 QString onlyFileName(QString const & str);
 QString onlyPath(QString const & str);
 QStringList fileFilters(QString const & description);
+/// all files wildcard for filter in qt dialogs (crossplatform)
+QString wildcardAllFiles();
 
 /// Remove the extension from \p name
 QString removeExtension(QString const & name);