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 "GuiDialogView.h"
17 #include "ControlCharacter.h"
18 #include "ui_CharacterUi.h"
29 class GuiCharacterDialog : public QDialog, public Ui::CharacterUi {
32 GuiCharacterDialog(GuiCharacter * form);
34 void closeEvent(QCloseEvent * e);
38 void change_adaptor();
42 class GuiCharacter : public GuiView<GuiCharacterDialog>
45 friend class GuiCharacterDialog;
47 GuiCharacter(GuiDialog &);
49 ControlCharacter & controller()
50 { return static_cast<ControlCharacter &>(this->getController()); }
52 ControlCharacter const & controller() const
53 { return static_cast<ControlCharacter const &>(this->getController()); }
56 virtual void applyView();
58 virtual void update_contents();
60 virtual void build_dialog();
62 std::vector<FamilyPair> family;
63 std::vector<SeriesPair> series;
64 std::vector<ShapePair> shape;
65 std::vector<SizePair> size;
66 std::vector<BarPair> bar;
67 std::vector<ColorPair> color;
68 std::vector<LanguagePair> language;
71 } // namespace frontend
74 #endif // GUICHARACTER_H