mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
df55785b5a
- only trivial renaming - one used variable removed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17514 a592a061-630c-0410-9148-cb99ea01b6c8
75 lines
1.2 KiB
C
75 lines
1.2 KiB
C
/**
|
|
* \file QPrefs.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "QPrefs.h"
|
|
#include "QPrefsDialog.h"
|
|
|
|
#include "Qt2BC.h"
|
|
#include "qt_helpers.h"
|
|
|
|
#include "debug.h"
|
|
#include "LColor.h"
|
|
#include "lyxfont.h"
|
|
|
|
#include "support/lstrings.h"
|
|
#include "support/os.h"
|
|
|
|
#include "controllers/ControlPrefs.h"
|
|
#include "controllers/frnt_lang.h"
|
|
#include "controllers/helper_funcs.h"
|
|
|
|
using namespace Ui;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
typedef QController<ControlPrefs, QView<QPrefsDialog> > prefs_base_class;
|
|
|
|
QPrefs::QPrefs(Dialog & parent)
|
|
: prefs_base_class(parent, _("Preferences"))
|
|
{
|
|
|
|
}
|
|
|
|
Converters & QPrefs::converters()
|
|
{
|
|
return controller().converters();
|
|
}
|
|
|
|
Formats & QPrefs::formats()
|
|
{
|
|
return controller().formats();
|
|
}
|
|
|
|
Movers & QPrefs::movers()
|
|
{
|
|
return controller().movers();
|
|
}
|
|
|
|
void QPrefs::build_dialog()
|
|
{
|
|
dialog_.reset(new QPrefsDialog(this));
|
|
}
|
|
|
|
void QPrefs::apply()
|
|
{
|
|
dialog_->apply(controller().rc());
|
|
}
|
|
|
|
void QPrefs::update_contents()
|
|
{
|
|
dialog_->updateRc(controller().rc());
|
|
}
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|