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);
37 void changed_adaptor();
38 void on_fileTypeCO_activated(int);
39 void on_languageCO_activated(int);
40 void on_filesLW_itemDoubleClicked(QTreeWidgetItem *, int);
41 void on_filesLW_itemClicked(QTreeWidgetItem *, int);
42 void on_browsePB_pressed();
43 void slotButtonBox(QAbstractButton *);
53 void updateContents();
56 bool initialiseParams(std::string const & data);
58 void paramsToDialog();
62 void dispatchParams();
64 bool isBufferDependent() const { return false; }
66 FuncCode getLfun() const;
68 QString const getSuffix();
70 bool translateName() const;
72 QMap<QString, QString> getFiles();
73 /// Get the full file path in the selected localization
74 QString const getRealPath(QString relpath = QString());
79 /// contains the search box
80 FancyLineEdit * filter_;
85 /// All languages (code, guiname)
86 QMap<QString, QString> all_languages_;
87 /// Languages available for files (code. guiname)
88 QMap<QString, QString> available_languages_;
90 typedef QMap<QString, QMap<QString, QString>> localizationsMap;
92 localizationsMap localizations_;
93 /// Possible GUI language representations
94 std::vector<std::string> guilangs_;
95 /// The real GUI lang as stored in available_languages_
97 /// The last used language
101 } // namespace frontend
104 #endif // GUILYXFILES_H