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; }
36 virtual kb_action getLfun() const { return LFUN_SELF_INSERT; }
\r
40 void on_applyPB_clicked();
41 void on_okPB_clicked();
42 void on_closePB_clicked();
43 void on_symbolsLW_itemActivated(QListWidgetItem *);
44 void on_symbolsLW_itemClicked(QListWidgetItem * item);
45 void on_categoryCO_activated(QString const & text);
46 void on_chosenLE_returnPressed();
47 void on_chosenLE_textChanged(QString const &);
50 /// update the widgets (symbol browser, category combo)
51 void updateSymbolList();
52 /// get the unicode block associated with \p c
53 QString const getBlock(char_type c) const;
54 /// the encoding at cursor position
55 std::string encoding_;
56 /// which blocks do we actually include?
57 typedef std::map<QString, QListWidgetItem *> UsedBlocks;
59 UsedBlocks used_blocks;
62 } // namespace frontend
65 #endif // GUISYMBOLSDIALOG_H