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
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QPREFS_H
|
|
|
|
#define QPREFS_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-11-17 05:37:27 +00:00
|
|
|
#include "converter.h"
|
2002-12-01 22:59:25 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
#include "ControlPrefs.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
|
|
|
|
std::vector<string> lang_;
|
|
|
|
|
|
|
|
/// converters
|
|
|
|
Converters converters_;
|
|
|
|
|
|
|
|
/// formats
|
|
|
|
Formats formats_;
|
2002-11-13 02:22:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QPREFS_H
|