Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
3 paul 1
#ifndef FONTPREFS_H
2
#define FONTPREFS_H
3
 
4
#include <qdialog.h>
5
#include <qlayout.h>
6
#include <qpushbutton.h>
7
#include <qtable.h>
8
#include <qcheckbox.h>
9
#include <qheader.h>
10
#include <qptrlist.h>
11
#include <qtabwidget.h>
12
#include <qwidget.h>
13
#include <qcombobox.h>
14
#include <qlistbox.h>
15
#include "scribusdoc.h"
16
 
17
class FontPrefs : public QDialog
18
{
19
    Q_OBJECT
20
 
21
public:
22
    FontPrefs( QWidget* parent, SCFonts &flist, bool Hdoc, preV *prefs, QString PPath );
23
    ~FontPrefs() {};
168 Franz 24
        void ReadPath();
25
        void RebuildDialog();
3 paul 26
    QTabWidget* TabWidget;
27
    QWidget* tab1;
28
    QWidget* tab;
29
    QWidget* tab3;
30
    QListBox* PathList;
31
    QTable* Table1;
32
    QTable* Table3;
33
    QHeader *Header;
34
    QHeader *Header2;
35
    QPushButton* PushButton1;
36
    QPushButton* PushButton1_2;
37
    QPushButton* DelB;
38
    QPushButton* ChangeB;
39
    QPushButton* AddB;
40
    QPushButton* RemoveB;
41
    QPtrList<QCheckBox> FlagsPS;
42
    QPtrList<QCheckBox> FlagsUse;
68 Franz 43
    QPtrList<QCheckBox> FlagsSub;
3 paul 44
    QPtrList<QComboBox> FlagsRepl;
45
        preV *Prefs;
168 Franz 46
        QMap<QString,QString> RList;
47
        QStringList UsedFonts;
48
        QStringList ExtraFonts;
49
        QString HomeP;
50
        QString CurrentPath;
51
        bool DocAvail;
3 paul 52
 
53
public slots:
168 Franz 54
        void LeaveDia();
55
        void ReplaceSel(int r, int c);
56
        void UpdateFliste();
57
        void DelEntry();
58
        void SelectPath(QListBoxItem *c);
59
        void AddPath();
60
        void ChangePath();
61
        void DelPath();
3 paul 62
 
63
signals:
168 Franz 64
        void ReReadPrefs();
3 paul 65
 
66
protected:
67
    QVBoxLayout* FontPrefsLayout;
68
    QVBoxLayout* tab1Layout;
69
    QVBoxLayout* tabLayout;
70
    QHBoxLayout* Layout2;
71
    QHBoxLayout* Layout2a;
72
    QHBoxLayout* tab3Layout;
73
    QVBoxLayout* LayoutR;
74
};
75
 
76
#endif // FONTPREFS_H