]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QPrefs.C
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QPrefs.C
1 /**
2  * \file QPrefs.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "QPrefs.h"
14 #include "QPrefsDialog.h"
15
16 #include "lcolorcache.h"
17 #include "Qt2BC.h"
18 #include "qt_helpers.h"
19
20 #include "debug.h"
21 #include "LColor.h"
22 #include "lyxfont.h"
23
24 #include "support/lstrings.h"
25 #include "support/os.h"
26
27 #include "controllers/ControlPrefs.h"
28 #include "controllers/frnt_lang.h"
29 #include "controllers/helper_funcs.h"
30
31 #include "frontends/lyx_gui.h"
32
33 using namespace Ui;
34
35 namespace lyx {
36 namespace frontend {
37
38 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
39
40 QPrefs::QPrefs(Dialog & parent)
41         : base_class(parent, _("Preferences"))
42 {
43
44 }
45
46 Converters & QPrefs::converters()
47 {
48         return controller().converters();
49 }
50
51 Formats & QPrefs::formats()
52 {
53         return controller().formats();
54 }
55
56 Movers & QPrefs::movers()
57 {
58         return controller().movers();
59 }
60
61 void QPrefs::build_dialog()
62 {
63         dialog_.reset(new QPrefsDialog(this));
64 }
65
66 void QPrefs::apply()
67 {
68         dialog_->apply(controller().rc());
69 }
70
71 void QPrefs::update_contents()
72 {
73         dialog_->update(controller().rc());
74 }
75
76 } // namespace frontend
77 } // namespace lyx