FileFilterList const & filters,
docstring const & suggested)
{
- lyxerr[Debug::GUI] << "Select with path \"" << lyx::to_utf8(path)
- << "\", mask \"" << lyx::to_utf8(filters.as_string())
- << "\", suggested \"" << lyx::to_utf8(suggested) << '"' << endl;
+ lyxerr[Debug::GUI] << "Select with path \"" << to_utf8(path)
+ << "\", mask \"" << to_utf8(filters.as_string())
+ << "\", suggested \"" << to_utf8(suggested) << '"' << endl;
FileDialog::Result result;
result.first = FileDialog::Chosen;
#ifdef USE_NATIVE_FILEDIALOG
docstring const startsWith = from_utf8(
makeAbsPath(to_utf8(suggested), to_utf8(path)).absFilename());
- result.second = lyx::from_utf8(internal_path(fromqstr(
+ result.second = from_utf8(internal_path(fromqstr(
QFileDialog::getSaveFileName(qApp->focusWidget(),
toqstr(title_), toqstr(startsWith), toqstr(filters.as_string()) ))));
#else
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = lyx::from_utf8(internal_path(
+ result.second = from_utf8(internal_path(
fromqstr(dlg.selectedFiles()[0])));
dlg.hide();
#endif
FileFilterList const & filters,
docstring const & suggested)
{
- lyxerr[Debug::GUI] << "Select with path \"" << lyx::to_utf8(path)
- << "\", mask \"" << lyx::to_utf8(filters.as_string())
- << "\", suggested \"" << lyx::to_utf8(suggested) << '"' << endl;
+ lyxerr[Debug::GUI] << "Select with path \"" << to_utf8(path)
+ << "\", mask \"" << to_utf8(filters.as_string())
+ << "\", suggested \"" << to_utf8(suggested) << '"' << endl;
FileDialog::Result result;
result.first = FileDialog::Chosen;
#ifdef USE_NATIVE_FILEDIALOG
docstring const startsWith = from_utf8(
makeAbsPath(to_utf8(suggested), to_utf8(path)).absFilename());
- result.second = lyx::from_utf8(internal_path(fromqstr(
+ result.second = from_utf8(internal_path(fromqstr(
QFileDialog::getOpenFileName(qApp->focusWidget(),
toqstr(title_), toqstr(startsWith), toqstr(filters.as_string()) ))));
#else
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = lyx::from_utf8(internal_path(
+ result.second = from_utf8(internal_path(
fromqstr(dlg.selectedFiles()[0])));
dlg.hide();
#endif
FileDialog::Result const FileDialog::opendir(docstring const & path,
docstring const & suggested)
{
- lyxerr[Debug::GUI] << "Select with path \"" << lyx::to_utf8(path)
- << "\", suggested \"" << lyx::to_utf8(suggested) << '"' << endl;
+ lyxerr[Debug::GUI] << "Select with path \"" << to_utf8(path)
+ << "\", suggested \"" << to_utf8(suggested) << '"' << endl;
FileDialog::Result result;
result.first = FileDialog::Chosen;
#ifdef USE_NATIVE_FILEDIALOG
docstring const startsWith = from_utf8(
makeAbsPath(to_utf8(suggested), to_utf8(path)).absFilename());
- result.second = lyx::from_utf8(internal_path(fromqstr(
+ result.second = from_utf8(internal_path(fromqstr(
QFileDialog::getExistingDirectory(qApp->focusWidget(),
toqstr(title_),toqstr(startsWith)))));
#else
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = lyx::from_utf8(internal_path(
+ result.second = from_utf8(internal_path(
fromqstr(dlg.selectedFiles()[0])));
dlg.hide();
#endif