diff widgets/TypingSelectWidget.h @ 30:8bed05455706

* Make classical code build
author Chris Cannam
date Tue, 16 Mar 2010 17:36:28 +0000
parents 7d8a6167febb
children 94cdfacc4910
line wrap: on
line diff
--- a/widgets/TypingSelectWidget.h	Mon Mar 01 16:55:27 2010 +0000
+++ b/widgets/TypingSelectWidget.h	Tue Mar 16 17:36:28 2010 +0000
@@ -6,6 +6,9 @@
 #include <QWidget>
 #include <QList>
 
+class QLineEdit;
+class QListWidget;
+
 namespace ClassicalData
 {
 
@@ -13,13 +16,20 @@
 
 class TypingSelectWidget : public QWidget
 {
+    Q_OBJECT
+
 public:
     TypingSelectWidget(QWidget *parent = 0);
     
-    void setMatchers(QList<Matcher *> m) { m_matchers = m; }
+    void addMatcher(Matcher *m) { m_matchers.push_back(m); }
+
+private slots:
+    void textEdited(const QString &);
 
 private:
     QList<Matcher *> m_matchers;
+    QLineEdit *m_editor;
+    QListWidget *m_list;
 };
 
 }