4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
12 #ifndef GUISYMBOLSDIALOG_H
13 #define GUISYMBOLSDIALOG_H
15 #include "DialogView.h"
16 #include "ui_SymbolsUi.h"
18 class QListWidgetItem;
23 class GuiSymbols : public DialogView, public Ui::SymbolsUi
28 GuiSymbols(GuiView & lv);
30 /// Dialog inherited methods
33 void dispatchParams();
34 void enableView(bool enable);
35 bool isBufferDependent() const { return true; }
39 void on_applyPB_clicked();
40 void on_okPB_clicked();
41 void on_closePB_clicked();
42 void on_symbolsLW_itemActivated(QListWidgetItem *);
43 void on_symbolsLW_itemClicked(QListWidgetItem * item);
44 void on_categoryCO_activated(QString const & text);
45 void on_chosenLE_returnPressed();
46 void on_chosenLE_textChanged(QString const &);
49 /// update the widgets (symbol browser, category combo)
50 void updateSymbolList();
51 /// get the unicode block associated with \p c
52 QString const getBlock(char_type c) const;
53 /// the encoding at cursor position
54 std::string encoding_;
55 /// which blocks do we actually include?
56 typedef std::map<QString, QListWidgetItem *> UsedBlocks;
58 UsedBlocks used_blocks;
61 } // namespace frontend
64 #endif // GUISYMBOLSDIALOG_H