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