Subversion Repositories Scribus

Rev

Rev 14447 | Rev 15021 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13761 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
 
8
#ifndef PREFS_FONTS_H
9
#define PREFS_FONTS_H
10
 
14447 cbradney 11
#include <QListWidgetItem>
12
#include <QPushButton>
13
 
13761 cbradney 14
#include "ui_prefs_fontsbase.h"
14447 cbradney 15
#include "prefs_pane.h"
13761 cbradney 16
#include "scribusapi.h"
17
 
14447 cbradney 18
class ScribusDoc;
19
class ScComboBox;
20
 
21
class SCRIBUS_API Prefs_Fonts : public Prefs_Pane, Ui::Prefs_Fonts
13761 cbradney 22
{
23
        Q_OBJECT
24
 
25
        public:
26
                Prefs_Fonts(QWidget* parent=0);
27
                ~Prefs_Fonts();
14447 cbradney 28
                virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
29
                virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
30
 
31
        public slots:
32
                void languageChange();
33
                void ReplaceSel(int r, int c);
14448 cbradney 34
                void updateFontList(struct ApplicationPrefs *prefsData);
14447 cbradney 35
                void DelEntry();
36
                void SelectPath(QListWidgetItem *c);
37
                void AddPath();
38
                void ChangePath();
39
                void DelPath();
40
 
41
        protected:
42
                void readPaths();
43
                void writePaths();
44
 
45
                QMap<QString,QString> RList;
46
                QList<ScComboBox*> FlagsRepl;
47
                //! List of font names of allowed fonts for substitutions
48
                QStringList UsedFonts;
49
                QString CurrentPath;
50
                ScribusDoc* m_doc;
13761 cbradney 51
};
52
 
53
#endif // PREFS_FONTS_H