2006-03-05 17:24:44 +00:00
|
|
|
/**
|
|
|
|
* \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> > base_class;
|
|
|
|
|
|
|
|
QPrefs::QPrefs(Dialog & parent)
|
2006-10-09 10:35:14 +00:00
|
|
|
: base_class(parent, _("Preferences"))
|
2006-03-05 17:24:44 +00:00
|
|
|
{
|
|
|
|
|
2006-03-22 18:59:17 +00:00
|
|
|
}
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
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()
|
|
|
|
{
|
2006-03-22 18:59:17 +00:00
|
|
|
dialog_->apply(controller().rc());
|
2006-03-05 17:24:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QPrefs::update_contents()
|
|
|
|
{
|
2006-03-22 18:59:17 +00:00
|
|
|
dialog_->update(controller().rc());
|
2006-03-05 17:24:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|