mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 06:15:59 +00:00
db097f5561
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6600 a592a061-630c-0410-9148-cb99ea01b6c8
109 lines
2.2 KiB
C++
109 lines
2.2 KiB
C++
// -*- 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
|
|
|
|
|
|
#include "LColor.h"
|
|
|
|
#include "ui/QPrefsDialogBase.h"
|
|
|
|
#include <vector>
|
|
|
|
class QPrefs;
|
|
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;
|
|
class QPrefIdentityModule;
|
|
|
|
class QPrefsDialog : public QPrefsDialogBase {
|
|
Q_OBJECT
|
|
public:
|
|
friend class QPrefs;
|
|
|
|
QPrefsDialog(QPrefs *);
|
|
|
|
~QPrefsDialog();
|
|
|
|
void updateConverters();
|
|
|
|
void updateFormats();
|
|
|
|
public slots:
|
|
void change_adaptor();
|
|
|
|
void switch_format(int);
|
|
void new_format();
|
|
void modify_format();
|
|
void remove_format();
|
|
|
|
void switch_converter(int);
|
|
void new_converter();
|
|
void modify_converter();
|
|
void remove_converter();
|
|
|
|
void change_color();
|
|
|
|
void select_ui();
|
|
void select_bind();
|
|
void select_keymap1();
|
|
void select_keymap2();
|
|
void select_dict();
|
|
void select_templatedir();
|
|
void select_tempdir();
|
|
void select_backupdir();
|
|
void select_workingdir();
|
|
void select_lyxpipe();
|
|
|
|
void select_roman(const QString&);
|
|
void select_sans(const QString&);
|
|
void select_typewriter(const QString&);
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
|
|
|
std::vector<LColor::color> colors_;
|
|
|
|
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;
|
|
QPrefIdentityModule * identityModule;
|
|
|
|
QPrefs * form_;
|
|
};
|
|
|
|
#endif // PREFSDIALOG_H
|