blob: 4a192986c743ec38f83a4c0a477794136f173dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/*
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 FONTPREFS_H
#define FONTPREFS_H
#include <QTabWidget>
#include <QList>
#include <QMap>
class QHBoxLayout;
class QVBoxLayout;
class QPushButton;
class QListWidget;
class QListWidgetItem;
class QTreeWidget;
class QTreeWidgetItem;
class QTableWidget;
class FontListView;
#include "scribusapi.h"
#include "prefsmanager.h"
class ScribusDoc;
class ScComboBox;
/*! \brief A configuration Widget for Font Preferences */
class SCRIBUS_API FontPrefs : public QTabWidget
{
Q_OBJECT
public:
FontPrefs( QWidget* parent, bool Hdoc, QString PPath, ScribusDoc* doc );
~FontPrefs() {};
void restoreDefaults();
QMap<QString,QString> RList;
QList<ScComboBox*> FlagsRepl;
private:
QWidget* tab1;
QWidget* tab;
QWidget* tab3;
QListWidget* PathList;
//! All fonts view
FontListView * fontList;
QTableWidget* Table3;
QPushButton* DelB;
QPushButton* ChangeB;
QPushButton* AddB;
QPushButton* RemoveB;
//! List of font names of allowed fonts for substitutions
QStringList UsedFonts;
QString HomeP;
QString CurrentPath;
bool DocAvail;
ScribusDoc* docc;
public slots:
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();
void rebuildDialog();
QVBoxLayout* tab1Layout;
QVBoxLayout* tabLayout;
QHBoxLayout* Layout2a;
QHBoxLayout* tab3Layout;
QVBoxLayout* LayoutR;
};
#endif // FONTPREFS_H
|