]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QCharacter.h
enable Font cache only for MacOSX and inline width() for other platform.
[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 "QDialogView.h"
17 #include "controllers/character.h"
18 #include "controllers/frnt_lang.h"
19
20 #include <vector>
21
22 namespace lyx {
23 namespace frontend {
24
25 class ControlCharacter;
26 class QCharacterDialog;
27
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