]> Shamusworld >> Repos - architektonas/blob - src/widgets/fontbox.h
Removed useless *Listener class and references.
[architektonas] / src / widgets / fontbox.h
1 #ifndef __FONTBOX_H__
2 #define __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  // __FONTBOX_H__