]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/CategorizedCombo.h
Fix readability
[lyx.git] / src / frontends / qt / CategorizedCombo.h
index a9a200a5cf5f19e5c61afabd36f6d48db34c3548..51bdb4ff0789aab6a555aef47198fb4b89064212 100644 (file)
@@ -38,16 +38,18 @@ public:
        ~CategorizedCombo();
 
        /// select an item in the combobox. Returns false if item does not exist
-       bool set(QString const & cc);
+       bool set(QString const & cc, bool const report_missing = true);
        /// Reset the combobox.
        void reset();
+       /// Reset the combobox filter.
+       void resetFilter();
        /// Update combobox.
        void updateCombo();
        /// Add Item to combo according to sorting settings from preferences
        void addItemSort(QString const & item, QString const & guiname,
                         QString const & category, QString const & tooltip,
                         bool sorted, bool sortedByCat, bool sortCats,
-                        bool available);
+                        bool available, bool nocategories = false);
        ///
        QString getData(int row) const;
        ///
@@ -55,10 +57,10 @@ public:
                                                    QString const & unavail = QString());
 
        ///
-       void showPopup();
+       void showPopup() override;
 
        ///
-       bool eventFilter(QObject * o, QEvent * e);
+       bool eventFilter(QObject * o, QEvent * e) override;
        ///
        QString const & filter() const;
 
@@ -72,6 +74,8 @@ private:
        struct Private;
        ///
        Private * const d;
+       ///
+       int lastCurrentIndex_;
 };