]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSymbols.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiSymbols.h
index cf2507782f20a399a10de50f5ec954f50c582184..ba35527420114292bb58f45cd9979b0a7debefff 100644 (file)
@@ -15,6 +15,9 @@
 #include "DialogView.h"
 #include "ui_SymbolsUi.h"
 
+#include <map>
+#include <set>
+
 class QListWidgetItem;
 
 namespace lyx {
@@ -33,7 +36,7 @@ public:
        void dispatchParams();
        void enableView(bool enable);
        bool isBufferDependent() const { return true; }
-       virtual kb_action getLfun() const { return LFUN_SELF_INSERT; }\r
+       virtual kb_action getLfun() const { return LFUN_SELF_INSERT; }
        //@}
 
 public Q_SLOTS:
@@ -43,12 +46,16 @@ public Q_SLOTS:
        void on_symbolsLW_itemActivated(QListWidgetItem *);
        void on_symbolsLW_itemClicked(QListWidgetItem * item);
        void on_categoryCO_activated(QString const & text);
+       void on_categoryFilterCB_toggled(bool);
        void on_chosenLE_returnPressed();
        void on_chosenLE_textChanged(QString const &);
 
 private:
-       /// update the widgets (symbol browser, category combo)
-       void updateSymbolList();
+       /** update the widgets (symbol browser, category combo)
+        *  \p combo indicates if the combo box has to be refreshed
+        *  as well (which is rather expensive)
+       **/
+       void updateSymbolList(bool update_combo = true);
        /// get the unicode block associated with \p c
        QString const getBlock(char_type c) const;
        /// the encoding at cursor position
@@ -57,6 +64,10 @@ private:
        typedef std::map<QString, QListWidgetItem *> UsedBlocks;
        ///
        UsedBlocks used_blocks;
+       /// list of all symbols
+       typedef std::set<char_type> SymbolsList;
+       ///
+       SymbolsList symbols_;
 };
 
 } // namespace frontend