MythTV
master
mythplugins
mythmusic
mythmusic
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
9
#include <
libmythui/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
)
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:
35
void
fieldSelected
(
MythUIButtonListItem
*item);
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};
43
MythUIButtonList
*
m_fieldList
{
nullptr
};
44
MythUITextEdit
*
m_criteriaEdit
{
nullptr
};
45
MythUIText
*
m_matchesText
{
nullptr
};
46
MythUIButtonList
*
m_tracksList
{
nullptr
};
47
};
48
49
#endif
SearchView::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
searchview.cpp:212
SearchView::fieldSelected
void fieldSelected(MythUIButtonListItem *item)
Definition:
searchview.cpp:328
SearchView::criteriaChanged
void criteriaChanged(void)
Definition:
searchview.cpp:333
MythScreenStack
Definition:
mythscreenstack.h:16
MythUITextEdit
A text entry and edit widget.
Definition:
mythuitextedit.h:34
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
SearchView::m_playTrack
int m_playTrack
Definition:
searchview.h:42
SearchView::m_matchesText
MythUIText * m_matchesText
Definition:
searchview.h:45
SearchView::m_criteriaEdit
MythUITextEdit * m_criteriaEdit
Definition:
searchview.h:44
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
SearchView::m_fieldList
MythUIButtonList * m_fieldList
Definition:
searchview.h:43
SearchView::SearchView
SearchView(MythScreenStack *parent, MythScreenType *parentScreen)
Definition:
searchview.cpp:20
SearchView::trackClicked
static void trackClicked(MythUIButtonListItem *item)
Definition:
searchview.cpp:460
SearchView::Create
bool Create(void) override
Definition:
searchview.cpp:26
SearchView::ShowMenu
void ShowMenu(void) override
Definition:
searchview.cpp:274
SearchView::~SearchView
~SearchView(void) override=default
musiccommon.h
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
SearchView::customEvent
void customEvent(QEvent *event) override
Definition:
searchview.cpp:82
SearchView::m_tracksList
MythUIButtonList * m_tracksList
Definition:
searchview.h:46
SearchView::trackVisible
static void trackVisible(MythUIButtonListItem *item)
Definition:
searchview.cpp:475
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
SearchView
Definition:
searchview.h:18
SearchView::updateTracksList
void updateTracksList(void)
Definition:
searchview.cpp:338
mythscreentype.h
MusicCommon
Definition:
musiccommon.h:49
Generated on Wed Feb 26 2025 03:17:51 for MythTV by
1.8.17