#include "ui_PreambleUi.h"
#include "ui_TextLayoutUi.h"
+#include <QStandardItemModel>
+
namespace lyx {
class BufferParams;
void deleteBoxBackgroundColor();
void languageChanged(int);
void osFontsChanged(bool);
+ void encodingSwitched(int);
+ void inputencodingToDialog();
void mathFontChanged(int);
void branchesRename(docstring const &, docstring const &);
void allPackagesAuto();
void allPackagesAlways();
void allPackagesNot();
+ void moduleFilterPressed();
+ void moduleFilterChanged(const QString & text);
+ void resetModuleFilter();
+ void linenoToggled(bool);
private:
/// validate listings parameters and return an error message, if any
QString validateListingsParameters();
ModuleSelectionManager * selectionManager;
/// Available modules
- GuiIdListModel * availableModel() { return &modules_av_model_; }
+ QStandardItemModel * availableModel() { return &modules_av_model_; }
/// Selected modules
GuiIdListModel * selectedModel() { return &modules_sel_model_; }
void getTableStyles();
/// available modules
- GuiIdListModel modules_av_model_;
+ QStandardItemModel modules_av_model_;
/// selected modules
GuiIdListModel modules_sel_model_;
+ /// Module filter
+ FancyLineEdit * filter_;
+
/// return false if validate_listings_params returns error
bool isValid();
QString name;
std::string id;
QString description;
+ QString category;
+ bool local;
+ bool missingreqs;
};
///
static modInfoStruct modInfo(LyXModule const & mod);
///
void checkPossibleCiteEngines();
///
+ void filterModules(QString const & string);
+ ///
BufferParams bp_;
/// List of names of available modules
std::list<modInfoStruct> moduleNames_;