Rev 13761 |
Rev 14448 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef PREFS_FONTS_H
#define PREFS_FONTS_H
#include <QListWidgetItem>
#include <QPushButton>
#include "ui_prefs_fontsbase.h"
#include "prefs_pane.h"
#include "scribusapi.h"
class ScribusDoc;
class ScComboBox;
class SCRIBUS_API Prefs_Fonts : public Prefs_Pane, Ui::Prefs_Fonts
{
Q_OBJECT
public:
Prefs_Fonts(QWidget* parent=0);
~Prefs_Fonts();
virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
public slots:
void languageChange();
void ReplaceSel(int r, int c);
void UpdateFliste();
void DelEntry();
void SelectPath(QListWidgetItem *c);
void AddPath();
void ChangePath();
void DelPath();
protected:
void readPaths();
void writePaths();
QMap<QString,QString> RList;
QList<ScComboBox*> FlagsRepl;
//! List of font names of allowed fonts for substitutions
QStringList UsedFonts;
QString HomeP;
QString CurrentPath;
ScribusDoc* m_doc;
};
#endif // PREFS_FONTS_H