4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef GUICHARACTER_H
14 #define GUICHARACTER_H
16 #include "GuiDialog.h"
17 #include "ControlCharacter.h"
18 #include "ui_CharacterUi.h"
19 #include "frontend_helpers.h" // for LanguagePair
26 typedef std::pair<QString, Font::FONT_FAMILY> FamilyPair;
27 typedef std::pair<QString, Font::FONT_SERIES> SeriesPair;
28 typedef std::pair<QString, Font::FONT_SHAPE> ShapePair;
29 typedef std::pair<QString, Font::FONT_SIZE> SizePair;
30 typedef std::pair<QString, FONT_STATE> BarPair;
31 typedef std::pair<QString, Color_color> ColorPair;
33 class GuiCharacterDialog : public GuiDialog, public Ui::CharacterUi
38 GuiCharacterDialog(LyXView & lv);
41 void change_adaptor();
44 void closeEvent(QCloseEvent * e);
46 ControlCharacter & controller();
50 void updateContents();
52 std::vector<FamilyPair> family;
53 std::vector<SeriesPair> series;
54 std::vector<ShapePair> shape;
55 std::vector<SizePair> size;
56 std::vector<BarPair> bar;
57 std::vector<ColorPair> color;
58 std::vector<LanguagePair> language;
61 } // namespace frontend
64 #endif // GUICHARACTER_H