]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSymbols.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiSymbols.h
index 85622a51499e1cfaeedc645be2940b017273e3a4..94126f94a22398f32c7953699fe02e56255c40d7 100644 (file)
@@ -16,9 +16,7 @@
 #include "ui_SymbolsUi.h"
 
 #include <map>
-#include <set>
-
-class QListWidgetItem;
+#include <vector>
 
 namespace lyx {
 namespace frontend {
@@ -43,8 +41,8 @@ public Q_SLOTS:
        void on_applyPB_clicked();
        void on_okPB_clicked();
        void on_closePB_clicked();
-       void on_symbolsLW_itemActivated(QListWidgetItem *);
-       void on_symbolsLW_itemClicked(QListWidgetItem * item);
+       void on_symbolsLW_activated(QModelIndex const & index);
+       void on_symbolsLW_clicked(QModelIndex const & index);
        void on_categoryCO_activated(QString const & text);
        void on_categoryFilterCB_toggled(bool);
        void on_chosenLE_returnPressed();
@@ -60,13 +58,17 @@ private:
        /// the encoding at cursor position
        std::string encoding_;
        /// which blocks do we actually include?
-       typedef std::map<QString, QListWidgetItem *> UsedBlocks;
+       typedef std::map<QString, int> UsedBlocks;
        ///
        UsedBlocks used_blocks;
        /// list of all symbols
-       typedef std::set<char_type> SymbolsList;
+       typedef std::vector<char_type> SymbolsList;
        ///
        SymbolsList symbols_;
+       /// custom model for symbol list view
+       class Model;
+       friend class Model;
+       Model * model_;
 };
 
 } // namespace frontend