2002-11-13 02:22:48 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QPrefsDialog.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 QPREFSDIALOG_H
|
|
|
|
#define QPREFSDIALOG_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ui/QPrefsDialogBase.h"
|
|
|
|
|
2002-11-13 05:36:07 +00:00
|
|
|
#include <map>
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
class QPrefs;
|
2002-11-13 05:36:07 +00:00
|
|
|
class QListViewItem;
|
|
|
|
class QPrefAsciiModule;
|
|
|
|
class QPrefDateModule;
|
|
|
|
class QPrefKeyboardModule;
|
|
|
|
class QPrefLatexModule;
|
|
|
|
class QPrefScreenFontsModule;
|
|
|
|
class QPrefColorsModule;
|
|
|
|
class QPrefDisplayModule;
|
|
|
|
class QPrefPathsModule;
|
|
|
|
class QPrefSpellcheckerModule;
|
|
|
|
class QPrefConvertersModule;
|
|
|
|
class QPrefFileformatsModule;
|
|
|
|
class QPrefLanguageModule;
|
|
|
|
class QPrefPrinterModule;
|
|
|
|
class QPrefUIModule;
|
2002-11-13 02:22:48 +00:00
|
|
|
|
|
|
|
class QPrefsDialog : public QPrefsDialogBase {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
friend class QPrefs;
|
|
|
|
|
|
|
|
QPrefsDialog(QPrefs *);
|
|
|
|
|
|
|
|
~QPrefsDialog();
|
|
|
|
|
2002-11-17 07:11:02 +00:00
|
|
|
void updateConverters();
|
|
|
|
|
|
|
|
void updateFormats();
|
|
|
|
|
2002-11-13 05:36:07 +00:00
|
|
|
public slots:
|
|
|
|
virtual void switchPane(QListViewItem * i);
|
|
|
|
|
2002-11-17 05:37:27 +00:00
|
|
|
void change_adaptor();
|
|
|
|
|
2002-11-17 07:11:02 +00:00
|
|
|
void switch_format(int);
|
|
|
|
void new_format();
|
|
|
|
void modify_format();
|
|
|
|
void remove_format();
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
|
|
|
|
private:
|
2002-11-13 05:36:07 +00:00
|
|
|
typedef std::map<QListViewItem *, QWidget *> PaneMap;
|
|
|
|
|
|
|
|
PaneMap pane_map_;
|
|
|
|
|
|
|
|
QPrefAsciiModule * asciiModule;
|
|
|
|
QPrefDateModule * dateModule;
|
|
|
|
QPrefKeyboardModule * keyboardModule;
|
|
|
|
QPrefLatexModule * latexModule;
|
|
|
|
QPrefScreenFontsModule * screenfontsModule;
|
|
|
|
QPrefColorsModule * colorsModule;
|
|
|
|
QPrefDisplayModule * displayModule;
|
|
|
|
QPrefPathsModule * pathsModule;
|
|
|
|
QPrefSpellcheckerModule * spellcheckerModule;
|
|
|
|
QPrefConvertersModule * convertersModule;
|
|
|
|
QPrefFileformatsModule * fileformatsModule;
|
|
|
|
QPrefLanguageModule * languageModule;
|
|
|
|
QPrefPrinterModule * printerModule;
|
|
|
|
QPrefUIModule * uiModule;
|
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
QPrefs * form_;
|
2002-11-17 05:37:27 +00:00
|
|
|
|
2002-11-13 02:22:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFSDIALOG_H
|