]> Shamusworld >> Repos - architektonas/blob - src/widgets/qg_patternbox.h
Initial import
[architektonas] / src / widgets / qg_patternbox.h
1 #ifndef QG_PATTERNBOX_H
2 #define QG_PATTERNBOX_H
3
4 #include <QtGui>
5
6 class RS_Pattern;
7
8 /**
9  * A combobox for choosing a pattern name.
10  */
11 class QG_PatternBox: public QComboBox
12 {
13         Q_OBJECT
14
15         public:
16                 QG_PatternBox(QWidget * parent = 0, const char * name = 0);
17                 virtual ~QG_PatternBox();
18
19                 void init();
20                 RS_Pattern * getPattern();
21                 void setPattern(const QString & pName);
22
23         private slots:
24                 void slotPatternChanged(int index);
25
26         signals:
27                 void patternChanged(RS_Pattern * pattern);
28
29         private:
30                 RS_Pattern * currentPattern;
31 };
32
33 #endif