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"
35 typedef QController<ControlPrefs, QView<QPrefsDialog> > base_class;
37 QPrefs::QPrefs(Dialog & parent)
38 : base_class(parent, _("Preferences"))
43 Converters & QPrefs::converters()
45 return controller().converters();
48 Formats & QPrefs::formats()
50 return controller().formats();
53 Movers & QPrefs::movers()
55 return controller().movers();
58 void QPrefs::build_dialog()
60 dialog_.reset(new QPrefsDialog(this));
65 dialog_->apply(controller().rc());
68 void QPrefs::update_contents()
70 dialog_->update(controller().rc());
73 } // namespace frontend