]> Shamusworld >> Repos - architektonas/blob - src/widgets/qg_fontbox.h
6841f798c0c238e9505c04260689fad93a940494
[architektonas] / src / widgets / qg_fontbox.h
1 #ifndef QG_FONTBOX_H
2 #define QG_FONTBOX_H
3
4 #include <QtGui>
5
6 class RS_Font;
7
8 /**
9  * A combobox for choosing a font name.
10  */
11 class QG_FontBox: public QComboBox
12 {
13         Q_OBJECT
14
15         public:
16                 QG_FontBox(QWidget * parent = 0, const char * name = 0);
17                 virtual ~QG_FontBox();
18
19                 void init();
20                 RS_Font * getFont();
21                 void setFont(const QString & fName);
22
23         private slots:
24                 void slotFontChanged(int index);
25
26         signals:
27                 void fontChanged(RS_Font * font);
28
29         private:
30                 RS_Font * currentFont;
31 };
32
33 #endif