3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
14 #include "QPrefsDialog.h"
16 #include "lcolorcache.h"
18 #include "qt_helpers.h"
21 #include "lastfiles.h"
25 #include "support/lstrings.h"
26 #include "support/os.h"
28 #include "controllers/ControlPrefs.h"
29 #include "controllers/frnt_lang.h"
30 #include "controllers/helper_funcs.h"
32 #include "frontends/lyx_gui.h"
39 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
41 QPrefs::QPrefs(Dialog & parent)
42 : base_class(parent, _("Preferences"))
47 Converters & QPrefs::converters()
49 return controller().converters();
52 Formats & QPrefs::formats()
54 return controller().formats();
57 Movers & QPrefs::movers()
59 return controller().movers();
62 void QPrefs::build_dialog()
64 dialog_.reset(new QPrefsDialog(this));
69 dialog_->apply(controller().rc());
72 void QPrefs::update_contents()
74 dialog_->update(controller().rc());
77 } // namespace frontend