lyx_mirror/src/frontends/qt4/QPrefs.C
Abdelrazak Younes 83ffa28e77 This commit is purely mechanical and get rid of lyx_gui.[Ch].
Only qt4 is guaranted to compile and work. I did not remove gtk and qt3 lyx_gui.C because they might be needed for reference to complete the header declarations in "GuiApplication.C".

 - lyx_gui::use_gui transfered to lyx::use_gui in lyx_main.C
 - all remaining lyx_gui functions transfered to Application and corresponding GuiApplication implementations. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15306 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-12 14:10:13 +00:00

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> > base_class;
QPrefs::QPrefs(Dialog & parent)
: 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_->update(controller().rc());
}
} // namespace frontend
} // namespace lyx