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"
17 #include "qt_helpers.h"
23 #include "support/lstrings.h"
24 #include "support/os.h"
26 #include "controllers/ControlPrefs.h"
27 #include "controllers/frnt_lang.h"
28 #include "controllers/helper_funcs.h"
30 #include "frontends/lyx_gui.h"
37 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
39 QPrefs::QPrefs(Dialog & parent)
40 : base_class(parent, _("Preferences"))
45 Converters & QPrefs::converters()
47 return controller().converters();
50 Formats & QPrefs::formats()
52 return controller().formats();
55 Movers & QPrefs::movers()
57 return controller().movers();
60 void QPrefs::build_dialog()
62 dialog_.reset(new QPrefsDialog(this));
67 dialog_->apply(controller().rc());
70 void QPrefs::update_contents()
72 dialog_->update(controller().rc());
75 } // namespace frontend