]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QCharacter.h
Fix unreported bug related to 3246 by Richard Heck:
[lyx.git] / src / frontends / qt4 / QCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file QCharacter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QCHARACTER_H_CONTROLLER
14 #define QCHARACTER_H_CONTROLLER
15
16 #include "QCharacterDialog.h"
17 #include "QDialogView.h"
18
19 #include "controllers/character.h"
20 #include "controllers/frnt_lang.h"
21
22 #include <vector>
23
24 namespace lyx {
25 namespace frontend {
26
27 class ControlCharacter;
28
29 class QCharacter
30         : public QController<ControlCharacter, QView<QCharacterDialog> >
31 {
32 public:
33         friend class QCharacterDialog;
34
35         QCharacter(Dialog &);
36 private:
37         /// Apply changes
38         virtual void apply();
39         /// update
40         virtual void update_contents();
41         /// build the dialog
42         virtual void build_dialog();
43
44         std::vector<FamilyPair> family;
45         std::vector<SeriesPair> series;
46         std::vector<ShapePair>  shape;
47         std::vector<SizePair>   size;
48         std::vector<BarPair>    bar;
49         std::vector<ColorPair>  color;
50         std::vector<LanguagePair> language;
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // QCHARACTER_H