|
MythTV master
|
The info/details buttonlist overlay that displays key:data info. More...
#include <mythfrontend/proginfolist.h>
Public Types | |
| enum | VisibleLevel : std::uint8_t { kNone = 0 , kLevel1 = 1 , kLevel2 = 2 } |
| using | DataItem = std::tuple< QString, QString, int > |
| using | DataList = QList< DataItem > |
Public Member Functions | |
| ProgInfoList (MythScreenType &screen) | |
| bool | Create (bool focusable) |
| Initialise buttonlist from XML. More... | |
| void | Toggle (void) |
| Toggle infolist state. Focusable widgets toggle between Basic & Full info. Non-focusable widgets toggle between Basic & Off. More... | |
| bool | Hide (void) |
| Remove infolist from display. More... | |
| void | Display (const DataList &data) |
| Build list of key:value buttons. More... | |
| VisibleLevel | GetLevel (void) const |
| void | PageDown (void) |
| void | PageUp (void) |
Private Slots | |
| void | Clear () |
Private Member Functions | |
| void | CreateButton (const QString &name, const QString &value) |
| Populate a buttonlist item with name & value. More... | |
Private Attributes | |
| MythScreenType & | m_screen |
| Parent screen. More... | |
| MythUIButtonList * | m_btnList {nullptr} |
| Overlay buttonlist. More... | |
| VisibleLevel | m_infoVisible {kLevel1} |
| Info list state. More... | |
The info/details buttonlist overlay that displays key:data info.
Definition at line 12 of file proginfolist.h.
| using ProgInfoList::DataItem = std::tuple<QString, QString, int> |
Definition at line 20 of file proginfolist.h.
| using ProgInfoList::DataList = QList<DataItem> |
Definition at line 21 of file proginfolist.h.
| enum ProgInfoList::VisibleLevel : std::uint8_t |
| Enumerator | |
|---|---|
| kNone | |
| kLevel1 | |
| kLevel2 | |
Definition at line 17 of file proginfolist.h.
|
inlineexplicit |
Definition at line 24 of file proginfolist.h.
|
inlineprivateslot |
Definition at line 37 of file proginfolist.h.
Initialise buttonlist from XML.
| focusable | Set if info list should be focusable (for scrolling) |
Definition at line 13 of file proginfolist.cpp.
Referenced by ProgDetails::Create().
|
private |
Populate a buttonlist item with name & value.
| name | |
| value |
Definition at line 78 of file proginfolist.cpp.
Referenced by Display().
| void ProgInfoList::Display | ( | const DataList & | data | ) |
Build list of key:value buttons.
| data | key/value list |
Definition at line 97 of file proginfolist.cpp.
Referenced by ProgDetails::updatePage().
|
inline |
Definition at line 31 of file proginfolist.h.
| bool ProgInfoList::Hide | ( | void | ) |
Remove infolist from display.
Definition at line 60 of file proginfolist.cpp.
Referenced by ProgDetails::~ProgDetails().
|
inline |
Definition at line 33 of file proginfolist.h.
Referenced by ProgDetails::keyPressEvent().
|
inline |
Definition at line 34 of file proginfolist.h.
Referenced by ProgDetails::keyPressEvent().
| void ProgInfoList::Toggle | ( | void | ) |
Toggle infolist state. Focusable widgets toggle between Basic & Full info. Non-focusable widgets toggle between Basic & Off.
Definition at line 30 of file proginfolist.cpp.
Referenced by ProgDetails::keyPressEvent().
|
private |
Overlay buttonlist.
Definition at line 43 of file proginfolist.h.
Referenced by Clear(), Create(), CreateButton(), Display(), Hide(), PageDown(), PageUp(), and Toggle().
|
private |
Info list state.
Definition at line 44 of file proginfolist.h.
Referenced by Display(), GetLevel(), Hide(), and Toggle().
|
private |