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 void getFiles(QMap<QString, QString> &, QString const);
73 /// Get the full file path in the selected localization
74 QString const getRealPath();
77 /// contains the search box
78 FancyLineEdit * filter_;
83 /// All languages (code, guiname)
84 QMap<QString, QString> all_languages_;
85 /// Languages available for files (code. guiname)
86 QMap<QString, QString> available_languages_;
88 typedef QMap<QString, QMap<QString, QString>> localizationsMap;
90 localizationsMap localizations_;
91 /// Possible GUI language representations
92 std::vector<std::string> guilangs_;
93 /// The real GUI lang as stored in available_languages_
95 /// The last used language
99 } // namespace frontend
102 #endif // GUILYXFILES_H