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 "ColorCache.h"
18 #include "qt_helpers.h"
24 #include "support/lstrings.h"
25 #include "support/os.h"
27 #include "controllers/ControlPrefs.h"
28 #include "controllers/frnt_lang.h"
29 #include "controllers/helper_funcs.h"
31 #include "frontends/lyx_gui.h"
38 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
40 QPrefs::QPrefs(Dialog & parent)
41 : base_class(parent, _("Preferences"))
46 Converters & QPrefs::converters()
48 return controller().converters();
51 Formats & QPrefs::formats()
53 return controller().formats();
56 Movers & QPrefs::movers()
58 return controller().movers();
61 void QPrefs::build_dialog()
63 dialog_.reset(new QPrefsDialog(this));
68 dialog_->apply(controller().rc());
71 void QPrefs::update_contents()
73 dialog_->update(controller().rc());
76 } // namespace frontend