]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiDocument.h
index eebd2675f40f245932bdd169205a01084dd2d90a..3e0c35384b303df7cf765a591b7c83a9aab4300d 100644 (file)
@@ -37,6 +37,8 @@
 #include "ui_PreambleUi.h"
 #include "ui_TextLayoutUi.h"
 
+#include <QStandardItemModel>
+
 namespace lyx {
 
 class BufferParams;
@@ -150,11 +152,17 @@ private Q_SLOTS:
        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();
@@ -186,7 +194,7 @@ private:
        ModuleSelectionManager * selectionManager;
 
        /// Available modules
-       GuiIdListModel * availableModel() { return &modules_av_model_; }
+       QStandardItemModel * availableModel() { return &modules_av_model_; }
        /// Selected modules
        GuiIdListModel * selectedModel() { return &modules_sel_model_; }
 
@@ -215,10 +223,13 @@ private:
        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();
 
@@ -249,6 +260,9 @@ private:
                QString name;
                std::string id;
                QString description;
+               QString category;
+               bool local;
+               bool missingreqs;
        };
        ///
        static modInfoStruct modInfo(LyXModule const & mod);
@@ -305,6 +319,8 @@ private:
        ///
        void checkPossibleCiteEngines();
        ///
+       void filterModules(QString const & string);
+       ///
        BufferParams bp_;
        /// List of names of available modules
        std::list<modInfoStruct> moduleNames_;