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
|
|
|
|
|
|
|
|
|
2002-11-17 05:37:27 +00:00
|
|
|
#include "converter.h"
|
2003-02-28 09:49:49 +00:00
|
|
|
#include "format.h"
|
2003-09-05 15:06:13 +00:00
|
|
|
#include "ControlPrefs.h"
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
2002-11-17 05:37:27 +00:00
|
|
|
#include <vector>
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
class QPrefsDialog;
|
|
|
|
|
|
|
|
class QPrefs
|
|
|
|
: public Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
friend class QPrefsDialog;
|
|
|
|
|
|
|
|
QPrefs();
|
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
|
|
|
|
|
|
|
/// languages
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> lang_;
|
2002-11-17 05:37:27 +00:00
|
|
|
|
|
|
|
/// converters
|
|
|
|
Converters converters_;
|
|
|
|
|
|
|
|
/// formats
|
|
|
|
Formats formats_;
|
2002-11-13 02:22:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QPREFS_H
|