]> 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 8248de8f4ca729dab546737701a29a24bb475e69..f3230b2d3212566b27fea9dd312877d0cc2c3fde 100644 (file)
@@ -72,9 +72,6 @@ void doubleToWidget(QLineEdit * input, std::string const & value,
  */
 QString formatLocFPNumber(double d);
 
-// Method to replace localized decimal separator by dot
-QString unlocString(QString const & str);
-
 /// Method to sort QStrings locale-aware (e.g. in combo widgets)
 bool SortLocaleAware(QString const & lhs, QString const & rhs);
 
@@ -92,12 +89,6 @@ void focusAndHighlight(QAbstractItemView * w);
 void setMessageColour(std::list<QWidget *> highlighted,
                       std::list<QWidget *> plain);
 
-/// Qt5 changed setSectionMode to setSectionResizeMode
-/// These wrappers work for Qt4 and Qt5
-void setSectionResizeMode(QHeaderView * view,
-    int logicalIndex, QHeaderView::ResizeMode mode);
-void setSectionResizeMode(QHeaderView * view,
-       QHeaderView::ResizeMode mode);
 /// Shows a directory in OSs file browser
 void showDirectory(support::FileName const & directory);
 /// handle request for showing citation content - shows pdf/ps or
@@ -129,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.
@@ -193,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);