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"
19 class QListWidgetItem;
27 class GuiLyXFiles : public GuiDialog, public Ui::LyXFilesUi
32 GuiLyXFiles(GuiView & lv);
35 void changed_adaptor();
36 void on_fileTypeCO_activated(int);
37 void on_languageCO_activated(int);
38 void on_filesLW_itemDoubleClicked(QTreeWidgetItem *, int);
39 void on_filesLW_itemClicked(QTreeWidgetItem *, int);
40 void on_browsePB_pressed();
41 void slotButtonBox(QAbstractButton *);
51 void updateContents();
54 bool initialiseParams(std::string const & data);
56 void paramsToDialog();
60 void dispatchParams();
62 bool isBufferDependent() const { return false; }
64 FuncCode getLfun() const;
66 QString const getSuffix();
68 bool translateName() const;
70 void getFiles(QMap<QString, QString> &, QString const);
71 /// Get the full file path in the selected localization
72 QString const getRealPath();
75 /// contains the search box
76 FancyLineEdit * filter_;
81 /// All languages (code, guiname)
82 QMap<QString, QString> all_languages_;
83 /// Languages available for files (code. guiname)
84 QMap<QString, QString> available_languages_;
86 typedef QMap<QString, QMap<QString, QString>> localizationsMap;
88 localizationsMap localizations_;
89 /// Possible GUI language representations
90 std::vector<std::string> guilangs_;
91 /// The real GUI lang as stored in available_languages_
93 /// The last used language
97 } // namespace frontend
100 #endif // GUILYXFILES_H