2002-11-13 02:22:48 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QPrefs.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-11-13 02:22:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QPREFS_H
|
|
|
|
#define QPREFS_H
|
|
|
|
|
2004-03-31 18:51:11 +00:00
|
|
|
#include "QDialogView.h"
|
2002-11-17 05:37:27 +00:00
|
|
|
#include <vector>
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2004-05-20 09:36:28 +00:00
|
|
|
class Converters;
|
2004-05-19 15:11:37 +00:00
|
|
|
class Formats;
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
class QPrefsDialog;
|
2004-05-20 09:36:28 +00:00
|
|
|
class ControlPrefs;
|
2002-11-13 02:22:48 +00:00
|
|
|
|
|
|
|
class QPrefs
|
2004-03-31 18:51:11 +00:00
|
|
|
: public QController<ControlPrefs, QView<QPrefsDialog> >
|
2002-11-13 02:22:48 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
friend class QPrefsDialog;
|
|
|
|
|
2004-03-31 18:51:11 +00:00
|
|
|
QPrefs(Dialog &);
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
/// update (do we need this?)
|
|
|
|
virtual void update_contents();
|
|
|
|
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
2002-11-17 05:37:27 +00:00
|
|
|
|
2004-03-31 16:50:59 +00:00
|
|
|
Converters & converters();
|
|
|
|
Formats & formats();
|
|
|
|
|
2002-11-17 05:37:27 +00:00
|
|
|
/// languages
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> lang_;
|
2002-11-13 02:22:48 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
#endif // QPREFS_H
|