00001 #ifndef SEARCHVIEW_H_ 00002 #define SEARCHVIEW_H_ 00003 00004 // qt 00005 #include <QEvent> 00006 #include <QVector> 00007 00008 // mythui 00009 #include <mythscreentype.h> 00010 00011 // mythmusic 00012 #include <musiccommon.h> 00013 00014 class MythUIButtonList; 00015 class MythUIText; 00016 class MythUITextEdit; 00017 00018 class SearchView : public MusicCommon 00019 { 00020 Q_OBJECT 00021 public: 00022 SearchView(MythScreenStack *parent); 00023 ~SearchView(void); 00024 00025 bool Create(void); 00026 bool keyPressEvent(QKeyEvent *); 00027 00028 virtual void ShowMenu(void); 00029 00030 protected: 00031 void customEvent(QEvent *event); 00032 void updateTracksList(void); 00033 00034 protected slots: 00035 void fieldSelected(MythUIButtonListItem *item); 00036 void criteriaChanged(void); 00037 00038 void trackClicked(MythUIButtonListItem *item); 00039 void trackVisible(MythUIButtonListItem *item); 00040 00041 private: 00042 bool m_playTrack; 00043 MythUIButtonList *m_fieldList; 00044 MythUITextEdit *m_criteriaEdit; 00045 MythUIText *m_matchesText; 00046 MythUIButtonList *m_tracksList; 00047 }; 00048 00049 #endif
1.6.3