QTfrontend/ui/widget/themeprompt.h
changeset 8475 f605bc59c603
parent 8377 869f80966a77
child 8623 93645b4ba0de
--- a/QTfrontend/ui/widget/themeprompt.h	Fri Feb 08 21:22:11 2013 -0500
+++ b/QTfrontend/ui/widget/themeprompt.h	Sat Feb 09 15:26:10 2013 -0500
@@ -21,21 +21,41 @@
 
 #include <QWidget>
 #include <QDialog>
+#include <QListView>
 
-class QLabel;
+class QLineEdit;
+class QModelIndex;
+class QSortFilterProxyModel;
+class LineEditCursor;
+
+class ThemeListView : public QListView
+{
+    friend class ThemePrompt;
+
+    public:
+        ThemeListView(QWidget* parent = 0) : QListView(parent){}
+};
 
 class ThemePrompt : public QDialog
 {
         Q_OBJECT
 
     public:
-        ThemePrompt(QWidget* parent);
+        ThemePrompt(int currentIndex = 0, QWidget* parent = 0);
 
     private:
-        QLabel * lblToolTip;
+        LineEditCursor * txtFilter;
+        ThemeListView * list;
+        QSortFilterProxyModel * filterModel;
 
     private slots:
-        void themeClicked();
+        void onAccepted();
+        void themeChosen(const QModelIndex & index);
+        void filterChanged(const QString & text);
+        void moveUp();
+        void moveDown();
+        void moveLeft();
+        void moveRight();
 };
 
 #endif // THEMEPROMPT_H