]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QCharacter.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / 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
14 #define QCHARACTER_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21 #include "controllers/character.h"
22 #include "controllers/frnt_lang.h"
23
24 #include "LString.h"
25
26 #include <vector>
27
28
29 class ControlCharacter;
30 class QCharacterDialog;
31
32
33 class QCharacter
34         : public Qt2CB<ControlCharacter, Qt2DB<QCharacterDialog> >
35 {
36 public:
37         friend class QCharacterDialog;
38
39         QCharacter();
40 private:
41         /// Apply changes
42         virtual void apply();
43         /// update
44         virtual void update_contents();
45         /// build the dialog
46         virtual void build_dialog();
47
48         std::vector<frnt::FamilyPair> family;
49         std::vector<frnt::SeriesPair> series;
50         std::vector<frnt::ShapePair>  shape;
51         std::vector<frnt::SizePair>   size;
52         std::vector<frnt::BarPair>    bar;
53         std::vector<frnt::ColorPair>  color;
54         std::vector<frnt::LanguagePair> language;
55 };
56
57 #endif // QCHARACTER_H