Scribus
Open source desktop publishing at your fingertips
prefs_fonts.h
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 
11 #include <QListWidgetItem>
12 #include <QPushButton>
13 
14 #include "ui_prefs_fontsbase.h"
15 #include "prefs_pane.h"
16 #include "scribusapi.h"
17 
18 class ScribusDoc;
19 class ScComboBox;
20 
21 class SCRIBUS_API Prefs_Fonts : public Prefs_Pane, Ui::Prefs_Fonts
22 {
23  Q_OBJECT
24 
25  public:
26  Prefs_Fonts(QWidget* parent, ScribusDoc* doc=NULL);
27  ~Prefs_Fonts();
28  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
29  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
30  virtual void changeUnit(struct ApplicationPrefs *prefsData) const;
31 
32  public slots:
33  void languageChange();
34  void ReplaceSel();
35  void updateFontList();
36  void DelEntry();
37  void SelectPath(QListWidgetItem *c);
38  void AddPath();
39  void ChangePath();
40  void DelPath();
41 
42  protected:
43  void readPaths();
44  void writePaths() const;
45 
46  QMap<QString,QString> RList;
47  QList<ScComboBox*> FlagsRepl;
49  QStringList UsedFonts;
50  QString CurrentPath;
51  ScribusDoc* m_doc;
52 
53 
54  SCFonts m_availFonts;
56  QMap<QString,QString> m_GFontSub;
57 };
58 
59 #endif // PREFS_FONTS_H
Definition: prefsstructs.h:453
QStringList UsedFonts
List of font names of allowed fonts for substitutions.
Definition: prefs_fonts.h:49
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26
the Document Class
Definition: scribusdoc.h:90
bool m_askBeforeSubstitute
Fonts that Scribus has available to it, or the current document has available to use.
Definition: prefs_fonts.h:55
QMap< QString, QString > m_GFontSub
Request that the user confirms a font substitution or not.
Definition: prefs_fonts.h:56
Definition: prefs_pane.h:14
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36
Definition: prefs_fonts.h:21