4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
15 #include "GuiDialog.h"
16 #include "FancyLineEdit.h"
17 #include "ui_LyXFilesUi.h"
21 class QListWidgetItem;
29 class GuiLyXFiles : public GuiDialog, public Ui::LyXFilesUi
34 GuiLyXFiles(GuiView & lv);
35 /// A way to pass params to the dialog directly
36 void passParams(std::string const & data);
37 /// A way to pass params to the dialog directly
38 void selectItem(QString const item);
40 void fileSelected(QString const file);
43 void changed_adaptor();
44 void on_fileTypeCO_activated(int);
45 void on_languageCO_activated(int);
46 void on_filesLW_itemDoubleClicked(QTreeWidgetItem *, int);
47 void on_filesLW_itemClicked(QTreeWidgetItem *, int);
48 void on_browsePB_pressed();
49 void slotButtonBox(QAbstractButton *);
59 void updateContents();
62 bool initialiseParams(std::string const & data);
64 void paramsToDialog();
68 void dispatchParams();
70 bool isBufferDependent() const { return false; }
72 FuncCode getLfun() const;
74 QString const getSuffix();
76 bool translateName() const;
78 QMap<QString, QString> getFiles();
79 /// Get the full file path in the selected localization
80 QString const getRealPath(QString relpath = QString());
85 /// contains the search box
86 FancyLineEdit * filter_;
91 /// All languages (code, guiname)
92 QMap<QString, QString> all_languages_;
93 /// Languages available for files (code. guiname)
94 QMap<QString, QString> available_languages_;
96 typedef QMap<QString, QMap<QString, QString>> localizationsMap;
98 localizationsMap localizations_;
99 /// Possible GUI language representations
100 std::vector<std::string> guilangs_;
101 /// The real GUI lang as stored in available_languages_
103 /// The last used language
107 } // namespace frontend
110 #endif // GUILYXFILES_H