MythTV  master
searchview.h
Go to the documentation of this file.
1 #ifndef SEARCHVIEW_H_
2 #define SEARCHVIEW_H_
3 
4 // qt
5 #include <QEvent>
6 #include <QVector>
7 
8 // mythui
9 #include <mythscreentype.h>
10 
11 // mythmusic
12 #include <musiccommon.h>
13 
14 class MythUIButtonList;
15 class MythUIText;
16 class MythUITextEdit;
17 
18 class SearchView : public MusicCommon
19 {
20  Q_OBJECT
21  public:
22  SearchView(MythScreenStack *parent, MythScreenType *parentScreen);
23  ~SearchView(void) = default;
24 
25  bool Create(void) override; // MythScreenType
26  bool keyPressEvent(QKeyEvent *) override; // MusicCommon
27 
28  void ShowMenu(void) override; // MusicCommon
29 
30  protected:
31  void customEvent(QEvent *event) override; // MusicCommon
32  void updateTracksList(void);
33 
34  protected slots:
36  void criteriaChanged(void);
37 
40 
41  private:
42  bool m_playTrack {false};
47 };
48 
49 #endif
bool m_playTrack
Definition: searchview.h:42
unsigned int slots[4]
Definition: element.c:38
bool Create(void) override
Definition: searchview.cpp:25
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
void trackVisible(MythUIButtonListItem *item)
Definition: searchview.cpp:448
void customEvent(QEvent *event) override
Definition: searchview.cpp:81
void ShowMenu(void) override
Definition: searchview.cpp:258
void updateTracksList(void)
Definition: searchview.cpp:311
~SearchView(void)=default
MythUIButtonList * m_tracksList
Definition: searchview.h:46
void fieldSelected(MythUIButtonListItem *item)
Definition: searchview.cpp:300
A text entry and edit widget.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
void criteriaChanged(void)
Definition: searchview.cpp:306
bool keyPressEvent(QKeyEvent *) override
Key event handler.
Definition: searchview.cpp:202
MythUITextEdit * m_criteriaEdit
Definition: searchview.h:44
MythUIText * m_matchesText
Definition: searchview.h:45
SearchView(MythScreenStack *parent, MythScreenType *parentScreen)
Definition: searchview.cpp:19
Screen in which all other widgets are contained and rendered.
void trackClicked(MythUIButtonListItem *item)
Definition: searchview.cpp:433
MythUIButtonList * m_fieldList
Definition: searchview.h:43