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// MythTV
10
11// mythmusic
12#include "musiccommon.h"
13
15class MythUIText;
16class MythUITextEdit;
17
18class SearchView : public MusicCommon
19{
20 Q_OBJECT
21 public:
22 SearchView(MythScreenStack *parent, MythScreenType *parentScreen);
23 ~SearchView(void) override = default;
24
25 bool Create(void) override; // MythScreenType
26 bool keyPressEvent(QKeyEvent *event) 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
38 static void trackClicked(MythUIButtonListItem *item);
39 static void trackVisible(MythUIButtonListItem *item);
40
41 private:
42 int m_playTrack {-1};
47};
48
49#endif
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A text entry and edit widget.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
SearchView(MythScreenStack *parent, MythScreenType *parentScreen)
Definition: searchview.cpp:20
void updateTracksList(void)
Definition: searchview.cpp:338
static void trackVisible(MythUIButtonListItem *item)
Definition: searchview.cpp:475
MythUIText * m_matchesText
Definition: searchview.h:45
bool Create(void) override
Definition: searchview.cpp:26
MythUIButtonList * m_tracksList
Definition: searchview.h:46
void customEvent(QEvent *event) override
Definition: searchview.cpp:82
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: searchview.cpp:212
void criteriaChanged(void)
Definition: searchview.cpp:333
void fieldSelected(MythUIButtonListItem *item)
Definition: searchview.cpp:328
static void trackClicked(MythUIButtonListItem *item)
Definition: searchview.cpp:460
MythUITextEdit * m_criteriaEdit
Definition: searchview.h:44
MythUIButtonList * m_fieldList
Definition: searchview.h:43
int m_playTrack
Definition: searchview.h:42
void ShowMenu(void) override
Definition: searchview.cpp:274
~SearchView(void) override=default