diff -r 555235e90010 -r f605bc59c603 QTfrontend/ui/widget/themeprompt.h --- 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 #include +#include -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