]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QPrefs.C
This new citation dialog follows a new design similar to lyx-1.3:
[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 "lastfiles.h"
22 #include "LColor.h"
23 #include "lyxfont.h"
24
25 #include "support/lstrings.h"
26 #include "support/os.h"
27
28 #include "controllers/ControlPrefs.h"
29 #include "controllers/frnt_lang.h"
30 #include "controllers/helper_funcs.h"
31
32 #include "frontends/lyx_gui.h"
33
34 using namespace Ui;
35
36 namespace lyx {
37 namespace frontend {
38
39 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
40
41 QPrefs::QPrefs(Dialog & parent)
42         : base_class(parent, _("Preferences"))
43 {
44
45 }
46
47 Converters & QPrefs::converters()
48 {
49         return controller().converters();
50 }
51
52 Formats & QPrefs::formats()
53 {
54         return controller().formats();
55 }
56
57 Movers & QPrefs::movers()
58 {
59         return controller().movers();
60 }
61
62 void QPrefs::build_dialog()
63 {
64         dialog_.reset(new QPrefsDialog(this));
65 }
66
67 void QPrefs::apply()
68 {
69         dialog_->apply(controller().rc());
70 }
71
72 void QPrefs::update_contents()
73 {
74         dialog_->update(controller().rc());
75 }
76
77 } // namespace frontend
78 } // namespace lyx