]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiCharacter.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file GuiCharacter.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 GUICHARACTER_H
14 #define GUICHARACTER_H
15
16 #include "GuiDialogView.h"
17 #include "ControlCharacter.h"
18 #include "ui_CharacterUi.h"
19
20 #include <QDialog>
21
22 #include <vector>
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiCharacter;
28
29 class GuiCharacterDialog : public QDialog, public Ui::CharacterUi {
30         Q_OBJECT
31 public:
32         GuiCharacterDialog(GuiCharacter * form);
33 protected:
34         void closeEvent(QCloseEvent * e);
35 private:
36         GuiCharacter * form_;
37 protected Q_SLOTS:
38         void change_adaptor();
39 };
40
41
42 class GuiCharacter : public GuiView<GuiCharacterDialog>
43 {
44 public:
45         friend class GuiCharacterDialog;
46
47         GuiCharacter(GuiDialog &);
48         /// parent controller
49         ControlCharacter & controller()
50         { return static_cast<ControlCharacter &>(this->getController()); }
51         /// parent controller
52         ControlCharacter const & controller() const
53         { return static_cast<ControlCharacter const &>(this->getController()); }
54 private:
55         /// Apply changes
56         virtual void applyView();
57         /// update
58         virtual void update_contents();
59         /// build the dialog
60         virtual void build_dialog();
61
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;
69 };
70
71 } // namespace frontend
72 } // namespace lyx
73
74 #endif // GUICHARACTER_H