MythTV master
Public Types | Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members

List widget, displays list items in a variety of themeable arrangements and can trigger signals when items are highlighted or clicked. More...

#include <libmythui/mythuibuttonlist.h>

Inheritance diagram for MythUIButtonList:
[legend]
Collaboration diagram for MythUIButtonList:
[legend]

Public Types

enum  MovementUnit : std::uint8_t {
  MoveItem , MoveColumn , MoveRow , MovePage ,
  MoveMax , MoveMid , MoveByAmount
}
 
enum  LayoutType : std::uint8_t { LayoutVertical , LayoutHorizontal , LayoutGrid }
 

Public Slots

void Select ()
 
void Deselect ()
 
void ToggleEnabled ()
 
- Public Slots inherited from MythUIType
void LoseFocus (void)
 
bool TakeFocus (void)
 
void Activate (void)
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Signals

void itemSelected (MythUIButtonListItem *item)
 
void itemClicked (MythUIButtonListItem *item)
 
void itemVisible (MythUIButtonListItem *item)
 
void itemLoaded (MythUIButtonListItem *item)
 
- Signals inherited from MythUIType
void RequestUpdate (void)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus (void)
 
void LosingFocus (void)
 
void VisibilityChanged (bool Visible)
 
void Showing (void)
 
void Hiding (void)
 
void Enabling (void)
 
void Disabling (void)
 
void FinishedMoving (void)
 
void FinishedFading (void)
 
void DependChanged (bool isDefault)
 

Public Member Functions

 MythUIButtonList (MythUIType *parent, const QString &name, QString shadow="")
 
 MythUIButtonList (MythUIType *parent, const QString &name, QRect area, bool showArrow=true, bool showScrollBar=false)
 
 ~MythUIButtonList () override
 
bool keyPressEvent (QKeyEvent *event) override
 Key event handler. More...
 
bool gestureEvent (MythGestureEvent *event) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
void customEvent (QEvent *event) override
 
void Reset () override
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void Update ()
 
virtual void SetValue (int value)
 
virtual void SetValue (const QString &value)
 
void SetValueByData (const QVariant &data)
 
virtual int GetIntValue () const
 
virtual QString GetValue () const
 
QVariant GetDataValue () const
 
MythRect GetButtonArea (void) const
 
void SetItemCurrent (MythUIButtonListItem *item)
 
void SetItemCurrent (int current, int topPos=-1)
 
MythUIButtonListItemGetItemCurrent () const
 
MythUIButtonListItemGetItemFirst () const
 
MythUIButtonListItemGetItemNext (MythUIButtonListItem *item) const
 
MythUIButtonListItemGetItemAt (int pos) const
 
MythUIButtonListItemGetItemByData (const QVariant &data)
 
uint ItemWidth (void)
 
uint ItemHeight (void)
 
LayoutType GetLayout () const
 
bool MoveItemUpDown (MythUIButtonListItem *item, bool up)
 
void SetAllChecked (MythUIButtonListItem::CheckState state)
 
int GetCurrentPos () const
 
int GetItemPos (MythUIButtonListItem *item) const
 
int GetTopItemPos (void) const
 
int GetCount () const
 
int GetVisibleCount ()
 
bool IsEmpty () const
 
virtual bool MoveDown (MovementUnit unit=MoveItem, uint amount=0)
 
virtual bool MoveUp (MovementUnit unit=MoveItem, uint amount=0)
 
bool MoveToNamedPosition (const QString &position_name)
 
void RemoveItem (MythUIButtonListItem *item)
 
bool IsShadowing (void)
 
void SetLCDTitles (const QString &title, const QString &columnList="")
 
void updateLCD (void)
 
void SetSearchFields (const QString &fields)
 
void ShowSearchDialog (void)
 
bool Find (const QString &searchStr, bool startsWith=false)
 
bool FindNext (void)
 
bool FindPrev (void)
 
void LoadInBackground (int start=0, int pageSize=20)
 
int StopLoad (void)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (QPoint p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
QList< MythUIType * > GetAllDescendants (void)
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int order)
 
void SetFocusedName (const QString &widgetname)
 
QString GetFocusedName (void) const
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
void SetPosition (QPoint point)
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (QSize size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (QRect rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual bool keyPressEvent (QKeyEvent *event)
 Key event handler. More...
 
virtual bool inputMethodEvent (QInputMethodEvent *event)
 Input Method event handler. More...
 
virtual bool gestureEvent (MythGestureEvent *event)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (QPoint point) const
 Check if the given point falls within this widgets area. More...
 
virtual MythPainterGetPainter (void)
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 

Protected Types

enum  ScrollStyle : std::uint8_t { ScrollFree , ScrollCenter , ScrollGroupCenter }
 
enum  ArrangeType : std::uint8_t { ArrangeFixed , ArrangeFill , ArrangeSpread , ArrangeStack }
 
enum  WrapStyle : std::int8_t {
  WrapCaptive = -1 , WrapNone = 0 , WrapSelect = 1 , WrapItems = 2 ,
  WrapFlowing = 3
}
 

Protected Member Functions

void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect) override
 
void Const ()
 
virtual void Init ()
 
void InsertItem (MythUIButtonListItem *item, int listPosition=-1)
 
int minButtonWidth (const MythRect &area)
 
int minButtonHeight (const MythRect &area)
 
void InitButton (int itemIdx, MythUIStateType *&realButton, MythUIButtonListItem *&buttonItem)
 
MythUIGroupPrepareButton (int buttonIdx, int itemIdx, int &selectedIdx, int &button_shift)
 
bool DistributeRow (int &first_button, int &last_button, int &first_item, int &last_item, int &selected_column, int &skip_cols, bool grow_left, bool grow_right, int **col_widths, int &row_height, int total_height, int split_height, int &col_cnt, bool &wrapped)
 
bool DistributeCols (int &first_button, int &last_button, int &first_item, int &last_item, int &selected_column, int &selected_row, int &skip_cols, int **col_widths, QList< int > &row_heights, int &top_height, int &bottom_height, bool &wrapped)
 
bool DistributeButtons (void)
 
void CalculateButtonPositions (void)
 
void CalculateArrowStates (void)
 
void SetScrollBarPosition (void)
 
void ItemVisible (MythUIButtonListItem *item)
 
void SetActive (bool active)
 
int PageUp (void)
 
int PageDown (void)
 
bool DoFind (bool doMove, bool searchForward)
 
void FindEnabledUp (MovementUnit unit)
 
void FindEnabledDown (MovementUnit unit)
 If the current item is not enabled, find the next enabled one. More...
 
virtual void CalculateVisibleItems (void)
 
virtual QPoint GetButtonPosition (int column, int row) const
 
void SetButtonArea (const MythRect &rect)
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
void Finalize (void) override
 Perform any post-xml parsing initialisation tasks. More...
 
void SanitizePosition (void)
 
- Protected Member Functions inherited from MythUIType
 ~MythUIType () override
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (FocusInfoType &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod) const
 
void ConnectDependants (bool recurse=false)
 
virtual bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another. More...
 
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type. More...
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Protected Attributes

LayoutType m_layout {LayoutVertical}
 
ArrangeType m_arrange {ArrangeFixed}
 
ScrollStyle m_scrollStyle {ScrollFree}
 
WrapStyle m_wrapStyle {WrapNone}
 
int m_defaultAlignment {Qt::AlignLeft | Qt::AlignTop}
 
std::optional< int > m_shadowAlignment {std::nullopt}
 
MythRect m_contentsRect {0, 0, 0, 0}
 
MythPoint m_searchPosition {-2,-2}
 
QString m_searchFields {"**ALL**"}
 
QString m_searchStr
 
bool m_searchStartsWith {false}
 
int m_itemWidth {0}
 
int m_itemHeight {0}
 
int m_itemHorizSpacing {0}
 
int m_itemVertSpacing {0}
 
int m_itemsVisible {0}
 
int m_maxVisible {0}
 
int m_rows {0}
 
int m_columns {0}
 
int m_leftColumns {0}
 
int m_rightColumns {0}
 
int m_topRows {0}
 
int m_bottomRows {0}
 
QString m_shadowListName
 
bool m_active {false}
 
bool m_showArrow {true}
 
bool m_showScrollBar {true}
 
MythUIScrollBarm_scrollBar {nullptr}
 
MythUIStateTypem_upArrow {nullptr}
 
MythUIStateTypem_downArrow {nullptr}
 
MythUIStateTypem_buttontemplate {nullptr}
 
QVector< MythUIStateType * > m_buttonList
 
QMap< int, MythUIButtonListItem * > m_buttonToItem
 
QHash< QString, QString > m_actionRemap
 
bool m_initialized {false}
 
bool m_needsUpdate {false}
 
bool m_clearing {false}
 
int m_selPosition {0}
 
int m_topPosition {0}
 
int m_itemCount {0}
 
bool m_keepSelAtBottom {false}
 
QList< MythUIButtonListItem * > m_itemList
 
int m_nextItemLoaded {0}
 
bool m_defaultDrawFromBottom {false}
 
std::optional< boolm_shadowDrawFromBottom {std::nullopt}
 
QString m_lcdTitle
 
QStringList m_lcdColumns
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_childrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_visible {true}
 
bool m_hasFocus {false}
 
bool m_canHaveFocus {false}
 
bool m_enabled {true}
 
bool m_enableInitiator {false}
 
bool m_initiator {false}
 
bool m_vanish {false}
 
bool m_vanished {false}
 
bool m_isDependDefault {false}
 
QMap< MythUIType *, boolm_reverseDepend
 
QString m_focusedName
 
int m_focusOrder {0}
 
MythRect m_area {0,0,0,0}
 
MythRect m_minArea {0,0,0,0}
 
MythPoint m_minSize
 
QRegion m_dirtyRegion {0,0,0,0}
 
bool m_needsRedraw {false}
 
UIEffects m_effects
 
int m_alphaChangeMode {0}
 
int m_alphaChange {0}
 
int m_alphaMin {0}
 
int m_alphaMax {255}
 
bool m_moving {false}
 
QPoint m_xyDestination {0,0}
 
QPoint m_xySpeed {0,0}
 
FontMapm_fonts {nullptr}
 
MythUITypem_parent {nullptr}
 
MythPainterm_painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_borderColor {Qt::black}
 

Friends

class MythUIButtonListItem
 
class MythUIButtonTree
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 
- Static Protected Member Functions inherited from MythUIType
static int NormX (int width)
 
static int NormY (int height)
 

Detailed Description

List widget, displays list items in a variety of themeable arrangements and can trigger signals when items are highlighted or clicked.

Definition at line 192 of file mythuibuttonlist.h.

Member Enumeration Documentation

◆ ArrangeType

enum MythUIButtonList::ArrangeType : std::uint8_t
protected
Enumerator
ArrangeFixed 
ArrangeFill 
ArrangeSpread 
ArrangeStack 

Definition at line 284 of file mythuibuttonlist.h.

◆ LayoutType

enum MythUIButtonList::LayoutType : std::uint8_t
Enumerator
LayoutVertical 
LayoutHorizontal 
LayoutGrid 

Definition at line 210 of file mythuibuttonlist.h.

◆ MovementUnit

enum MythUIButtonList::MovementUnit : std::uint8_t
Enumerator
MoveItem 
MoveColumn 
MoveRow 
MovePage 
MoveMax 
MoveMid 
MoveByAmount 

Definition at line 207 of file mythuibuttonlist.h.

◆ ScrollStyle

enum MythUIButtonList::ScrollStyle : std::uint8_t
protected
Enumerator
ScrollFree 
ScrollCenter 
ScrollGroupCenter 

Definition at line 282 of file mythuibuttonlist.h.

◆ WrapStyle

enum MythUIButtonList::WrapStyle : std::int8_t
protected
Enumerator
WrapCaptive 
WrapNone 
WrapSelect 
WrapItems 
WrapFlowing 

Definition at line 286 of file mythuibuttonlist.h.

Constructor & Destructor Documentation

◆ MythUIButtonList() [1/2]

MythUIButtonList::MythUIButtonList ( MythUIType parent,
const QString &  name,
QString  shadow = "" 
)

Definition at line 31 of file mythuibuttonlist.cpp.

Referenced by CreateCopy().

◆ MythUIButtonList() [2/2]

MythUIButtonList::MythUIButtonList ( MythUIType parent,
const QString &  name,
QRect  area,
bool  showArrow = true,
bool  showScrollBar = false 
)

Definition at line 43 of file mythuibuttonlist.cpp.

◆ ~MythUIButtonList()

MythUIButtonList::~MythUIButtonList ( )
override

Definition at line 69 of file mythuibuttonlist.cpp.

Member Function Documentation

◆ CalculateArrowStates()

void MythUIButtonList::CalculateArrowStates ( void  )
protected

Definition at line 1424 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), GetVisibleCount(), and MythUISpinBox::SetRange().

◆ CalculateButtonPositions()

void MythUIButtonList::CalculateButtonPositions ( void  )
protected

Definition at line 1283 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ CalculateVisibleItems()

void MythUIButtonList::CalculateVisibleItems ( void  )
protectedvirtual

Definition at line 2838 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ Const()

void MythUIButtonList::Const ( void  )
protected

Definition at line 60 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ CopyFrom()

void MythUIButtonList::CopyFrom ( MythUIType base)
overrideprotectedvirtual

Copy this widgets state from another.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 3043 of file mythuibuttonlist.cpp.

Referenced by MythUISpinBox::CopyFrom().

◆ CreateCopy()

void MythUIButtonList::CreateCopy ( MythUIType parent)
overrideprotectedvirtual

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 3034 of file mythuibuttonlist.cpp.

◆ customEvent()

void MythUIButtonList::customEvent ( QEvent *  event)
override

Definition at line 2792 of file mythuibuttonlist.cpp.

◆ Deselect

void MythUIButtonList::Deselect ( )
slot

◆ DistributeButtons()

bool MythUIButtonList::DistributeButtons ( void  )
protected

Definition at line 745 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ DistributeCols()

bool MythUIButtonList::DistributeCols ( int &  first_button,
int &  last_button,
int &  first_item,
int &  last_item,
int &  selected_column,
int &  selected_row,
int &  skip_cols,
int **  col_widths,
QList< int > &  row_heights,
int &  top_height,
int &  bottom_height,
bool wrapped 
)
protected

Definition at line 627 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons().

◆ DistributeRow()

bool MythUIButtonList::DistributeRow ( int &  first_button,
int &  last_button,
int &  first_item,
int &  last_item,
int &  selected_column,
int &  skip_cols,
bool  grow_left,
bool  grow_right,
int **  col_widths,
int &  row_height,
int  total_height,
int  split_height,
int &  col_cnt,
bool wrapped 
)
protected

Definition at line 266 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeCols().

◆ DoFind()

bool MythUIButtonList::DoFind ( bool  doMove,
bool  searchForward 
)
protected

Definition at line 3221 of file mythuibuttonlist.cpp.

Referenced by Find(), FindNext(), and FindPrev().

◆ DrawSelf()

void MythUIButtonList::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
)
overrideprotectedvirtual

Reimplemented from MythUIType.

Definition at line 3021 of file mythuibuttonlist.cpp.

◆ Finalize()

void MythUIButtonList::Finalize ( void  )
overrideprotectedvirtual

Perform any post-xml parsing initialisation tasks.

This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.

Reimplemented from MythUIType.

Definition at line 3101 of file mythuibuttonlist.cpp.

◆ Find()

bool MythUIButtonList::Find ( const QString &  searchStr,
bool  startsWith = false 
)

◆ FindEnabledDown()

void MythUIButtonList::FindEnabledDown ( MovementUnit  unit)
protected

If the current item is not enabled, find the next enabled one.

Definition at line 2111 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ FindEnabledUp()

void MythUIButtonList::FindEnabledUp ( MovementUnit  unit)
protected

Definition at line 2156 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

◆ FindNext()

bool MythUIButtonList::FindNext ( void  )

Definition at line 3211 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::nextClicked().

◆ FindPrev()

bool MythUIButtonList::FindPrev ( void  )

Definition at line 3216 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::prevClicked().

◆ gestureEvent()

bool MythUIButtonList::gestureEvent ( MythGestureEvent event)
overridevirtual

Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.

Should not be used directly.

Parameters
eventMouse event

Reimplemented from MythUIType.

Definition at line 2682 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonTree::gestureEvent().

◆ GetButtonArea()

MythRect MythUIButtonList::GetButtonArea ( void  ) const

Definition at line 1662 of file mythuibuttonlist.cpp.

◆ GetButtonPosition()

QPoint MythUIButtonList::GetButtonPosition ( int  column,
int  row 
) const
protectedvirtual

Definition at line 2828 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ GetCount()

int MythUIButtonList::GetCount ( void  ) const

Definition at line 1688 of file mythuibuttonlist.cpp.

Referenced by StreamView::addStream(), ChannelEditor::channelIconImport(), LocationDialog::clearResults(), RSSEditor::Create(), ManualSchedule::Create(), MythBurn::createConfigFile(), LyricsView::customEvent(), MusicCommon::customEvent(), SearchView::customEvent(), StreamView::customEvent(), ScreenSetup::customEvent(), ImageSearchResultsDialog::customEvent(), MetadataResultsDialog::customEvent(), customEvent(), NetSearch::customEvent(), NetTree::customEvent(), ZMEvents::deleteAll(), ScreenSetup::deleteScreen(), DoFind(), ScreenSetup::doListSelect(), NetSearch::DoSearch(), SearchStream::doUpdateStreams(), SpinBoxEntryDialog::entryChanged(), ZMEvents::eventChanged(), ChannelEditor::fillList(), SmartPLOrderByDialog::getFieldList(), ProgLister::HandleSelected(), LogViewer::Init(), EditPowerSearchPopup::initLists(), NetSearch::keyPressEvent(), PlaybackBox::keyPressEvent(), CustomEdit::loadClauses(), SelectDestination::loadConfiguration(), RSSEditor::LoadData(), SmartPLOrderByDialog::orderByChanged(), MythThemedMenu::parseMenu(), BookmarkManager::ReloadBookmarks(), restore_position(), FilterOptMixin::Save(), MythBurn::saveConfiguration(), ScreenSetup::saveData(), SourceSetup::saveData(), ProgFinder::select(), LyricsView::setLyricTime(), NetSearch::ShowMenu(), ProgFinder::ShowMenu(), PlaybackSettingsDialog::ShowPlaybackProfileMenu(), EditAlbumartDialog::showTypeMenu(), BookmarkManager::slotClearMarked(), CustomEdit::storeRule(), SmartPLResultViewer::trackSelected(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgFinder::updateInfo(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), StreamView::updateStream(), StreamView::updateStreamList(), SearchView::updateTracksList(), VideoSelector::updateVideoList(), ScreenSetup::~ScreenSetup(), and SourceSetup::~SourceSetup().

◆ GetCurrentPos()

int MythUIButtonList::GetCurrentPos ( ) const
inline

Definition at line 244 of file mythuibuttonlist.h.

Referenced by PrevRecordedList::AllowRecord(), ZMEvents::cameraChanged(), CustomEdit::clauseChanged(), StatusBox::clicked(), ManualSchedule::Create(), ViewScheduleDiff::CurrentProgram(), ProgFinder::customEvent(), MusicCommon::customEvent(), StatusBox::customEvent(), ZMEvents::dateChanged(), ManualSchedule::dateChanged(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), PrevRecordedList::DeleteOldEpisode(), ZMEvents::deletePressed(), CustomEdit::deleteRule(), StreamView::deleteStream(), DoFind(), NetSearch::DoSearch(), PowerSearchPopup::editClicked(), ZMEvents::eventChanged(), ChannelEditor::fillList(), PrevRecordedList::GetCurrentProgram(), ProgFinder::GetCurrentProgram(), ProgLister::GetCurrentProgram(), ZMEvents::getEventList(), ThumbFinder::gridItemChanged(), ProgLister::HandleSelected(), MusicCommon::keyPressEvent(), ThumbFinder::keyPressEvent(), MythBrowser::keyPressEvent(), PrevRecordedList::LoadShowsByDate(), PrevRecordedList::LoadShowsByTitle(), ManualSchedule::minuteRollover(), PlaybackSettingsDialog::MoveProfileItemDown(), PlaybackSettingsDialog::MoveProfileItemUp(), EditPowerSearchPopup::okClicked(), SmartPLOrderByDialog::orderByChanged(), PhrasePopup::phraseClicked(), PowerSearchPopup::phraseClicked(), PhrasePopup::phraseSelected(), PowerSearchPopup::phraseSelected(), MusicCommon::playlistItemClicked(), ZMEvents::playPressed(), PrevRecordedList::PreventRecord(), MythNews::processAndShowNews(), ManualSchedule::recordClicked(), CustomPriority::ruleChanged(), ProfileDialog::save(), save_position(), SelectDestination::saveConfiguration(), MythDialogBox::Select(), LyricsView::setLyricTime(), ProgFinder::ShowGuide(), ProgLister::ShowMenu(), MythBrowser::slotTabSelected(), CustomEdit::storeClicked(), StreamView::streamItemClicked(), CustomEdit::textChanged(), DVDThemeSelector::themeChanged(), SmartPLResultViewer::trackSelected(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgLister::UpdateDisplay(), PrevRecordedList::updateInfo(), ProgFinder::updateInfo(), updateLCD(), ZMConsole::updateMonitorList(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), ThumbFinder::updateThumb(), MusicCommon::updateUIPlaylist(), JaProgFinder::whereClauseGetSearchData(), and StatusBox::~StatusBox().

◆ GetDataValue()

QVariant MythUIButtonList::GetDataValue ( ) const

◆ GetIntValue()

int MythUIButtonList::GetIntValue ( void  ) const
virtual

Reimplemented in MythUISpinBox.

Definition at line 1632 of file mythuibuttonlist.cpp.

◆ GetItemAt()

MythUIButtonListItem * MythUIButtonList::GetItemAt ( int  pos) const

◆ GetItemByData()

MythUIButtonListItem * MythUIButtonList::GetItemByData ( const QVariant &  data)

◆ GetItemCurrent()

MythUIButtonListItem * MythUIButtonList::GetItemCurrent ( ) const

Definition at line 1623 of file mythuibuttonlist.cpp.

Referenced by BackendSelection::Accept(), CustomPriority::addClicked(), SmartPLOrderByDialog::ascendingPressed(), MythBurn::changeProfile(), ChannelRecPriority::changeRecPriority(), ProgramRecPriority::changeRecPriority(), ChannelEditor::channelIconImport(), StatusBox::clicked(), ImportCoverArtDialog::copyPressed(), EditAlbumartDialog::copySelectedImageToTag(), SmartPlaylistEditor::criteriaChanged(), EditAlbumartDialog::customEvent(), MusicCommon::customEvent(), SearchView::customEvent(), ScreenSetup::customEvent(), MythThemedMenu::customEvent(), StandardSettingDialog::customEvent(), PlaybackBox::customEvent(), ProgramRecPriority::customEvent(), StatusBox::customEvent(), ViewScheduled::customEvent(), ChannelEditor::customEvent(), NetSearch::customEvent(), ProgramRecPriority::deactivate(), ChannelEditor::del(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), SmartPlaylistEditor::deleteCriteria(), StandardSettingDialog::deleteEntry(), StandardSettingDialog::deleteEntryConfirmed(), MythNews::deleteNewsSite(), PrevRecordedList::DeleteOldEpisode(), SmartPLOrderByDialog::deletePressed(), ZMEvents::deletePressed(), ViewScheduled::deleteRule(), CustomEdit::deleteRule(), ScreenSetup::deleteScreen(), SmartPLOrderByDialog::descendingPressed(), SmartPlaylistEditor::doDeleteCriteria(), RSSEditor::DoDeleteSite(), EditAlbumartDialog::doRemoveImageFromTag(), StreamView::doRemoveStream(), NetSearch::DoSearch(), ChannelEditor::edit(), SmartPlaylistEditor::editCriteria(), MythBurn::editDetails(), MythBurn::editorClosed(), StreamView::editStream(), MythBurn::editThumbnails(), ChannelEditor::fillList(), gestureEvent(), MythControls::GetCurrentAction(), MythControls::GetCurrentContext(), FileAssocDialogPrivate::GetCurrentFA(), MythControls::GetCurrentKey(), PlaybackBox::GetCurrentProgram(), ProgramRecPriority::GetCurrentProgram(), ViewScheduled::GetCurrentProgram(), GetDataValue(), GetIntValue(), VideoDialog::GetItemCurrent(), MythUIButtonTree::GetItemCurrent(), NetTree::GetStreamItem(), GetValue(), PlaybackBox::HandlePreviewEvent(), PlaybackBox::HandleRecordingRemoveEvent(), AudioSetupWizard::Init(), ThemeChooser::Init(), CustomPriority::installClicked(), PlaybackBox::ItemLoaded(), PlaybackBox::ItemVisible(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), BookmarkManager::keyPressEvent(), Ripper::keyPressEvent(), SearchView::keyPressEvent(), StreamView::keyPressEvent(), MythDialogBox::keyPressEvent(), keyPressEvent(), MythUISpinBox::keyPressEvent(), StandardSettingDialog::keyPressEvent(), CustomEdit::keyPressEvent(), PlaybackBox::keyPressEvent(), ProgramRecPriority::keyPressEvent(), StandardSettingDialog::LevelDown(), ViewScheduled::LoadList(), ChannelEditor::menu(), MoveDown(), SmartPLOrderByDialog::moveDownPressed(), MoveItemUpDown(), PlaybackSettingsDialog::MoveProfileItemDown(), PlaybackSettingsDialog::MoveProfileItemUp(), MoveUp(), SmartPLOrderByDialog::moveUpPressed(), ProgramRecPriority::newTemplate(), FileSelector::OKPressed(), MythUIFileBrowser::OKPressed(), FileAssocDialog::OnDeletePressed(), PlaybackBox::PlayFromAnyMark(), PlaybackBox::PlayFromBeginning(), PlaybackBox::PlayFromBookmark(), PlaybackBox::PlayFromLastPlayPos(), VideoSetupWizard::playVideoTest(), MythNews::processAndShowNews(), MythBurn::profileChanged(), CustomEdit::recordClicked(), ProgramRecPriority::remove(), ExportNative::removeItem(), MythBurn::removeItem(), EditAlbumartDialog::removeSelectedImageFromTag(), StreamView::removeStream(), ThemeChooser::removeTheme(), restore_position(), MusicCommon::restorePosition(), SourceSetup::retrieveSpinboxUpdate(), LanguageSelection::Save(), AudioSetupWizard::save(), VideoSetupWizard::save(), save_position(), ThemeChooser::saveAndReload(), SourceSetup::saveData(), VideoDialog::SavePosition(), PlaybackBox::saveRecMetadata(), ProgramRecPriority::scheduleChanged(), Select(), SetItemCurrent(), LyricsView::setLyricTime(), SmartPLResultViewer::setSQL(), MythUIButtonTree::SetTreeState(), PlaybackBox::ShowActionPopup(), SmartPlaylistEditor::showCriteriaMenu(), BookmarkManager::ShowEditDialog(), MythNews::ShowEditDialog(), ZMConsole::showEditFunctionPopup(), Ripper::showEditMetadataDialog(), EditAlbumartDialog::showMenu(), ScheduleEditor::showMenu(), MythBurn::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), NetTree::ShowMenu(), StandardSettingDialog::ShowMenu(), ChannelRecPriority::ShowMenu(), PlaybackSettingsDialog::ShowMenu(), ThemeChooser::showPopupMenu(), PlaybackBox::showRecGroupPasswordChanger(), SmartPLResultViewer::showTrackInfo(), BookmarkManager::slotDeleteCurrent(), BookmarkManager::slotDoDeleteCurrent(), RSSEditor::SlotEditSite(), NetTree::SlotItemChanged(), RSSEditor::SlotItemChanged(), NetSearch::SlotItemChanged(), MythBrowser::slotLoadStarted(), PlayerSettings::slotSave(), MythUISearchDialog::slotSendResult(), BookmarkManager::slotSetHomepage(), BookmarkManager::slotShowCurrent(), BookmarkManager::slotShowMarked(), MythBrowser::slotTitleChanged(), ProgramRecPriority::SortList(), ChannelRecPriority::SortList(), SourceSetup::sourceListItemSelected(), Ripper::startRipper(), CustomEdit::storeClicked(), VideoSetupWizard::testHDVideo(), CustomPriority::testSchedule(), VideoSetupWizard::testSDVideo(), PlaybackBox::toggleAutoExpire(), ThemeChooser::toggleFullscreenPreview(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePlayListTitle(), PlaybackBox::togglePreserveEpisode(), AudioSetupWizard::toggleSpeakers(), MythBurn::toggleUseCutlist(), PlaybackBox::toggleWatched(), ChannelRecPriority::upcoming(), ExportNative::updateArchiveList(), AudioSetupWizard::UpdateCapabilities(), NetTree::UpdateCurrentItem(), ScreenSetup::updateHelpText(), MythNews::updateInfoView(), ProgramRecPriority::UpdateList(), RecordingSelector::updateRecordingList(), MythControls::UpdateRightList(), FileAssocDialog::UpdateScreen(), StandardSettingDialog::updateSettings(), SourceSetup::updateSpinboxUpdate(), ImportCoverArtDialog::updateStatus(), ThumbFinder::updateThumb(), SearchView::updateTracksList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), PlaybackBox::UpdateUIListItem(), BookmarkManager::UpdateURLList(), VideoSelector::updateVideoList(), and RawSettingsEditor::valueChanged().

◆ GetItemFirst()

MythUIButtonListItem * MythUIButtonList::GetItemFirst ( ) const

◆ GetItemNext()

MythUIButtonListItem * MythUIButtonList::GetItemNext ( MythUIButtonListItem item) const

Definition at line 1677 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::HandleRecordingRemoveEvent().

◆ GetItemPos()

int MythUIButtonList::GetItemPos ( MythUIButtonListItem item) const

◆ GetLayout()

LayoutType MythUIButtonList::GetLayout ( ) const
inline

Definition at line 238 of file mythuibuttonlist.h.

Referenced by MythDialogBox::keyPressEvent().

◆ GetTopItemPos()

int MythUIButtonList::GetTopItemPos ( void  ) const
inline

◆ GetValue()

QString MythUIButtonList::GetValue ( void  ) const
virtual

Reimplemented in MythUISpinBox.

Definition at line 1642 of file mythuibuttonlist.cpp.

Referenced by SmartPLOrderByDialog::addPressed(), SmartPLOrderByDialog::ascendingPressed(), SmartPlaylistEditor::customEvent(), ChannelEditor::deleteChannels(), SmartPLOrderByDialog::descendingPressed(), SearchStream::doUpdateStreams(), PowerSearchPopup::editClicked(), CriteriaRowEditor::editDate(), CriteriaRowEditor::enableSaveButton(), CriteriaRowEditor::fieldChanged(), ProgFinder::formatSelectedData(), SmartPlaylistEditor::getCategoryAndName(), ZMEvents::getDateList(), ZMEvents::getEventList(), CriteriaRowEditor::getOperatorList(), SmartPlaylistEditor::getOrderByClause(), SmartPlaylistEditor::getWhereClause(), PhrasePopup::okClicked(), CriteriaRowEditor::operatorChanged(), SmartPLOrderByDialog::orderByChanged(), SmartPlaylistEditor::orderByClicked(), PowerSearchPopup::phraseClicked(), MythNews::processAndShowNews(), PowerSearchPopup::recordClicked(), SmartPlaylistEditor::renameCategory(), SmartPlaylistEditor::saveClicked(), CriteriaRowEditor::saveClicked(), DVDThemeSelector::saveConfiguration(), ProgFinder::selectShowData(), FunctionDialog::setMonitorFunction(), MythBrowser::slotAddBookmark(), BookmarkManager::slotDoDeleteMarked(), MythUISearchDialog::slotSendResult(), RecordingSelector::updateRecordingList(), VideoSelector::updateVideoList(), CriteriaRowEditor::valueButtonClicked(), ProgFinder::whereClauseGetSearchData(), HeProgFinder::whereClauseGetSearchData(), and RuProgFinder::whereClauseGetSearchData().

◆ GetVisibleCount()

int MythUIButtonList::GetVisibleCount ( )

◆ Init()

void MythUIButtonList::Init ( void  )
protectedvirtual

◆ InitButton()

void MythUIButtonList::InitButton ( int  itemIdx,
MythUIStateType *&  realButton,
MythUIButtonListItem *&  buttonItem 
)
protected

Definition at line 1739 of file mythuibuttonlist.cpp.

Referenced by PageDown(), and PageUp().

◆ InsertItem()

void MythUIButtonList::InsertItem ( MythUIButtonListItem item,
int  listPosition = -1 
)
protected

Definition at line 1490 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::MythUIButtonListItem().

◆ IsEmpty()

bool MythUIButtonList::IsEmpty ( void  ) const

◆ IsShadowing()

bool MythUIButtonList::IsShadowing ( void  )
inline

◆ itemClicked

void MythUIButtonList::itemClicked ( MythUIButtonListItem item)
signal

◆ ItemHeight()

uint MythUIButtonList::ItemHeight ( void  )

Definition at line 2526 of file mythuibuttonlist.cpp.

◆ itemLoaded

void MythUIButtonList::itemLoaded ( MythUIButtonListItem item)
signal

◆ itemSelected

void MythUIButtonList::itemSelected ( MythUIButtonListItem item)
signal

Referenced by ManualSchedule::connectSignals(), ProfileDialog::Create(), RecordingSelector::Create(), VideoSelector::Create(), SearchStream::Create(), CustomEdit::Create(), CustomPriority::Create(), EditMetadataDialog::Create(), PhrasePopup::Create(), PowerSearchPopup::Create(), VideoDialog::Create(), FileAssocDialog::Create(), VideoFilterDialog::Create(), ExportNative::Create(), ArchiveFileSelector::Create(), LogViewer::Create(), SelectDestination::Create(), DVDThemeSelector::Create(), ThumbFinder::Create(), BookmarkManager::Create(), MythBrowser::Create(), EditAlbumartDialog::Create(), ImportCoverArtDialog::Create(), SearchView::Create(), SmartPlaylistEditor::Create(), CriteriaRowEditor::Create(), SmartPLResultViewer::Create(), SmartPLOrderByDialog::Create(), SmartPLDateDialog::Create(), NetSearch::Create(), NetTree::Create(), RSSEditor::Create(), MythNews::Create(), MythNewsConfig::Create(), ScreenSetup::Create(), SourceSetup::Create(), LocationDialog::Create(), ZMEvents::Create(), MythUIFileBrowser::Create(), RawSettingsEditor::Create(), StandardSettingDialog::Create(), ChannelRecPriority::Create(), MythControls::Create(), PlaybackBox::Create(), ProgLister::Create(), ProgramRecPriority::Create(), ScheduleEditor::Create(), SchedOptEditor::Create(), StoreOptEditor::Create(), MetadataOptions::Create(), StatusBox::Create(), ThemeChooser::Create(), ViewScheduled::Create(), ViewScheduleDiff::Create(), ChannelEditor::Create(), ImportIconsWizard::Create(), PrevRecordedList::Init(), ProgFinder::Init(), AudioSetupWizard::Init(), InsertItem(), MoveDown(), MoveUp(), RemoveItem(), Select(), GalleryThumbView::SelectZoomWidget(), ZMEvents::setGridLayout(), SetItemCurrent(), MythThemedMenu::SetMenuTheme(), and MythUIButtonTree::UpdateList().

◆ itemVisible

void MythUIButtonList::itemVisible ( MythUIButtonListItem item)
signal

◆ ItemVisible()

void MythUIButtonList::ItemVisible ( MythUIButtonListItem item)
protected

Definition at line 1484 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::SetToRealButton().

◆ ItemWidth()

uint MythUIButtonList::ItemWidth ( void  )

Definition at line 2518 of file mythuibuttonlist.cpp.

◆ keyPressEvent()

bool MythUIButtonList::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2537 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonTree::keyPressEvent(), MythUISpinBox::keyPressEvent(), and StandardSettingDialog::keyPressEvent().

◆ LoadInBackground()

void MythUIButtonList::LoadInBackground ( int  start = 0,
int  pageSize = 20 
)

◆ minButtonHeight()

int MythUIButtonList::minButtonHeight ( const MythRect area)
protected

Definition at line 188 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ minButtonWidth()

int MythUIButtonList::minButtonWidth ( const MythRect area)
protected

Definition at line 158 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ MoveDown()

bool MythUIButtonList::MoveDown ( MovementUnit  unit = MoveItem,
uint  amount = 0 
)
virtual

◆ MoveItemUpDown()

bool MythUIButtonList::MoveItemUpDown ( MythUIButtonListItem item,
bool  up 
)

◆ MoveToNamedPosition()

bool MythUIButtonList::MoveToNamedPosition ( const QString &  position_name)

◆ MoveUp()

bool MythUIButtonList::MoveUp ( MovementUnit  unit = MoveItem,
uint  amount = 0 
)
virtual

◆ PageDown()

int MythUIButtonList::PageDown ( void  )
protected

Definition at line 1872 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ PageUp()

int MythUIButtonList::PageUp ( void  )
protected

Definition at line 1767 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

◆ ParseElement()

bool MythUIButtonList::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
)
overrideprotectedvirtual

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2893 of file mythuibuttonlist.cpp.

Referenced by MythUISpinBox::ParseElement().

◆ PrepareButton()

MythUIGroup * MythUIButtonList::PrepareButton ( int  buttonIdx,
int  itemIdx,
int &  selectedIdx,
int &  button_shift 
)
protected

Definition at line 215 of file mythuibuttonlist.cpp.

Referenced by DistributeRow().

◆ RemoveItem()

void MythUIButtonList::RemoveItem ( MythUIButtonListItem item)

◆ Reset()

void MythUIButtonList::Reset ( void  )
overridevirtual

Reset the widget to it's original state, should not reset changes made by the theme.

Reimplemented from MythUIType.

Definition at line 120 of file mythuibuttonlist.cpp.

Referenced by GalleryThumbView::BuildImageList(), InfoList::Clear(), ProgInfoList::Clear(), LocationDialog::clearResults(), MythNews::clearSites(), PrevRecordedList::customEvent(), StatusBox::doAutoExpireList(), StatusBox::doDecoderStatus(), StatusBox::doDisplayStatus(), StatusBox::doJobQueueStatus(), StatusBox::doListingsStatus(), StatusBox::doLogEntries(), StatusBox::doMachineStatus(), StatusBox::doRenderStatus(), StatusBox::doScheduleStatus(), NetSearch::DoSearch(), StatusBox::doTunerStatus(), SearchStream::doUpdateStreams(), ImportIconsWizard::enableControls(), CriteriaRowEditor::fieldChanged(), NetSearch::FillGrabberButtonList(), ChannelEditor::fillList(), ViewScheduled::FillList(), RSSEditor::fillRSSButtonList(), GuideGrid::fillTimeInfos(), LyricsView::findLyrics(), NetSearch::GetLastResults(), NetSearch::GetMoreResults(), CriteriaRowEditor::getOperatorList(), SmartPLOrderByDialog::getOrderByFields(), SmartPlaylistEditor::getSmartPlaylistCategories(), ThemeChooser::Init(), FilterOptMixin::Load(), VideoDialog::loadData(), NetTree::LoadData(), SmartPlaylistEditor::loadFromDatabase(), ViewScheduled::LoadList(), MythNews::processAndShowNews(), ImportIconsWizard::search(), SmartPLOrderByDialog::setFieldList(), ZMEvents::setGridLayout(), PlaybackBox::setGroupFilter(), MythControls::SetListContents(), MythUISpinBox::SetRange(), SmartPLResultViewer::setSQL(), LogViewer::showFullLog(), PrevRecordedList::showListLoseFocus(), LyricsView::showLyrics(), LogViewer::showProgressLog(), MythNewsConfig::slotCategoryChanged(), MythNews::slotSiteSelected(), MythUISearchDialog::slotUpdateList(), ProgFinder::timesListLosingFocus(), ExportNative::updateArchiveList(), MythBurn::updateArchiveList(), SearchStream::updateBroadcasters(), AudioSetupWizard::UpdateCapabilities(), GuideGrid::updateChannelsUI(), SearchStream::updateCountries(), ProgLister::UpdateDisplay(), FileSelector::updateFileList(), MythUIFileBrowser::updateFileList(), SearchStream::updateGenres(), BookmarkManager::UpdateGroupList(), EditAlbumartDialog::updateImageGrid(), SearchStream::updateLanguages(), ProgramRecPriority::UpdateList(), PrevRecordedList::UpdateList(), MythUIButtonTree::UpdateList(), ChannelRecPriority::updateList(), MythDialogBox::updateMenu(), ZMConsole::updateMonitorList(), PlaybackBox::updateRecList(), RecordingSelector::updateRecordingList(), FileAssocDialog::UpdateScreen(), IdleScreen::UpdateScreen(), StandardSettingDialog::updateSettings(), ProgFinder::updateShowList(), StreamView::updateStreamList(), ProgFinder::updateTimesList(), Ripper::updateTrackList(), SearchView::updateTracksList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), PlaybackBox::UpdateUILists(), MusicCommon::updateUIPlayedList(), MusicCommon::updateUIPlaylist(), PlaybackBox::UpdateUIRecGroupList(), BookmarkManager::UpdateURLList(), and VideoSelector::updateVideoList().

◆ SanitizePosition()

void MythUIButtonList::SanitizePosition ( void  )
protected

Definition at line 1416 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates(), MoveDown(), and MoveUp().

◆ Select

void MythUIButtonList::Select ( )
slot

Definition at line 78 of file mythuibuttonlist.cpp.

Referenced by Const(), and MythUIButtonTree::SwitchList().

◆ SetActive()

void MythUIButtonList::SetActive ( bool  active)
protected

Definition at line 106 of file mythuibuttonlist.cpp.

Referenced by Deselect(), Select(), and MythUIButtonTree::SetTreeState().

◆ SetAllChecked()

void MythUIButtonList::SetAllChecked ( MythUIButtonListItem::CheckState  state)

Definition at line 2408 of file mythuibuttonlist.cpp.

◆ SetButtonArea()

void MythUIButtonList::SetButtonArea ( const MythRect rect)
protected

Definition at line 2875 of file mythuibuttonlist.cpp.

Referenced by ParseElement().

◆ SetItemCurrent() [1/2]

void MythUIButtonList::SetItemCurrent ( int  current,
int  topPos = -1 
)

Definition at line 1596 of file mythuibuttonlist.cpp.

◆ SetItemCurrent() [2/2]

void MythUIButtonList::SetItemCurrent ( MythUIButtonListItem item)

Definition at line 1590 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButtonV(), StreamView::addStream(), MythTerminal::AddText(), PrevRecordedList::AllowRecord(), ChannelScannerGUIScanPane::AppendLine(), GalleryThumbView::BuildImageList(), MythTimeInputDialog::Create(), ManualSchedule::Create(), SmartPlaylistEditor::criteriaChanged(), LyricsView::customEvent(), MusicCommon::customEvent(), SearchView::customEvent(), StreamView::customEvent(), StatusBox::customEvent(), StreamView::deleteStream(), DoFind(), ChannelEditor::fillList(), GuideGrid::fillProgramRowInfos(), PlayerSettings::fillRegionList(), gestureEvent(), VideoSelector::getVideoList(), PlaybackBox::HandleRecordingRemoveEvent(), LogViewer::Init(), RawSettingsEditor::Init(), StatusBox::Init(), EditPowerSearchPopup::initLists(), MusicCommon::keyPressEvent(), ThumbFinder::keyPressEvent(), MythBrowser::keyPressEvent(), PlaybackBox::keyPressEvent(), LanguageSelection::Load(), SelectDestination::loadConfiguration(), VideoDialog::loadData(), CustomEdit::loadData(), CustomPriority::loadData(), VideoSetupWizard::loadData(), NetTree::LoadData(), ViewScheduled::LoadList(), ManualSchedule::minuteRollover(), PlaybackSettingsDialog::MoveProfileItemDown(), PlaybackSettingsDialog::MoveProfileItemUp(), MoveToNamedPosition(), SpinBoxEntryDialog::okClicked(), SmartPLOrderByDialog::orderByChanged(), ZMEvents::playerExited(), PrevRecordedList::PreventRecord(), MythNews::processAndShowNews(), BookmarkManager::ReloadBookmarks(), restore_position(), MusicCommon::restorePosition(), ProgLister::RestoreSelection(), VideoDialog::searchComplete(), ProgFinder::selectShowData(), SetItemCurrent(), LyricsView::setLyricTime(), StoreOptMixin::SetRecGroup(), SetValueByData(), PlaybackBox::ShowAllRecordings(), PlaybackBox::ShowRecordedEpisodes(), MythBrowser::slotAddTab(), MythUISearchDialog::slotUpdateList(), ExportNative::updateArchiveList(), MythBurn::updateArchiveList(), RecordingSelector::updateCategorySelector(), GuideGrid::updateChannelsUI(), LogViewer::updateClicked(), ProgLister::UpdateDisplay(), ProgramRecPriority::UpdateList(), MythUIButtonTree::UpdateList(), ChannelRecPriority::updateList(), MythDialogBox::updateMenu(), ZMConsole::updateMonitorList(), RecordingSelector::updateRecordingList(), FileAssocDialog::UpdateScreen(), StandardSettingDialog::updateSettings(), StreamView::updateStream(), StreamView::updateStreamList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), MusicCommon::updateUIPlaylist(), PlaybackBox::UpdateUIRecGroupList(), and VideoSelector::updateVideoList().

◆ SetLCDTitles()

void MythUIButtonList::SetLCDTitles ( const QString &  title,
const QString &  columnList = "" 
)

◆ SetScrollBarPosition()

void MythUIButtonList::SetScrollBarPosition ( void  )
protected

Definition at line 4085 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), and GetVisibleCount().

◆ SetSearchFields()

void MythUIButtonList::SetSearchFields ( const QString &  fields)
inline

◆ SetValue() [1/2]

virtual void MythUIButtonList::SetValue ( const QString &  value)
inlinevirtual

Reimplemented in MythUISpinBox.

Definition at line 221 of file mythuibuttonlist.h.

◆ SetValue() [2/2]

virtual void MythUIButtonList::SetValue ( int  value)
inlinevirtual

◆ SetValueByData()

void MythUIButtonList::SetValueByData ( const QVariant &  data)

◆ ShowSearchDialog()

void MythUIButtonList::ShowSearchDialog ( void  )

◆ StopLoad()

int MythUIButtonList::StopLoad ( void  )

Definition at line 2821 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::Play(), and Reset().

◆ ToggleEnabled

void MythUIButtonList::ToggleEnabled ( )
slot

Definition at line 93 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ Update()

void MythUIButtonList::Update ( void  )

◆ updateLCD()

void MythUIButtonList::updateLCD ( void  )

Definition at line 3112 of file mythuibuttonlist.cpp.

Referenced by MythThemedMenu::aboutToShow(), and CalculateArrowStates().

Friends And Related Function Documentation

◆ MythUIButtonListItem

friend class MythUIButtonListItem
friend

Definition at line 408 of file mythuibuttonlist.h.

Referenced by MythUISpinBox::AddSelection(), and MythUISpinBox::SetRange().

◆ MythUIButtonTree

friend class MythUIButtonTree
friend

Definition at line 409 of file mythuibuttonlist.h.

Member Data Documentation

◆ m_actionRemap

QHash<QString, QString> MythUIButtonList::m_actionRemap
protected

Definition at line 388 of file mythuibuttonlist.h.

Referenced by CopyFrom(), keyPressEvent(), and ParseElement().

◆ m_active

bool MythUIButtonList::m_active {false}
protected

Definition at line 376 of file mythuibuttonlist.h.

Referenced by CopyFrom(), SetActive(), and MythUIButtonListItem::SetToRealButton().

◆ m_arrange

ArrangeType MythUIButtonList::m_arrange {ArrangeFixed}
protected

◆ m_bottomRows

int MythUIButtonList::m_bottomRows {0}
protected

Definition at line 372 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), PageDown(), and PageUp().

◆ m_buttonList

QVector<MythUIStateType *> MythUIButtonList::m_buttonList
protected

◆ m_buttontemplate

MythUIStateType* MythUIButtonList::m_buttontemplate {nullptr}
protected

Definition at line 384 of file mythuibuttonlist.h.

Referenced by Init(), InitButton(), and PrepareButton().

◆ m_buttonToItem

QMap<int, MythUIButtonListItem *> MythUIButtonList::m_buttonToItem
protected

◆ m_clearing

bool MythUIButtonList::m_clearing {false}
protected

◆ m_columns

int MythUIButtonList::m_columns {0}
protected

◆ m_contentsRect

MythRect MythUIButtonList::m_contentsRect {0, 0, 0, 0}
protected

◆ m_defaultAlignment

int MythUIButtonList::m_defaultAlignment {Qt::AlignLeft | Qt::AlignTop}
protected

Definition at line 352 of file mythuibuttonlist.h.

Referenced by CopyFrom(), DistributeButtons(), and ParseElement().

◆ m_defaultDrawFromBottom

bool MythUIButtonList::m_defaultDrawFromBottom {false}
protected

Definition at line 402 of file mythuibuttonlist.h.

Referenced by CalculateButtonPositions(), CopyFrom(), and ParseElement().

◆ m_downArrow

MythUIStateType* MythUIButtonList::m_downArrow {nullptr}
protected

Definition at line 382 of file mythuibuttonlist.h.

Referenced by CalculateArrowStates(), CopyFrom(), and Init().

◆ m_initialized

bool MythUIButtonList::m_initialized {false}
protected

◆ m_itemCount

int MythUIButtonList::m_itemCount {0}
protected

◆ m_itemHeight

int MythUIButtonList::m_itemHeight {0}
protected

◆ m_itemHorizSpacing

int MythUIButtonList::m_itemHorizSpacing {0}
protected

◆ m_itemList

QList<MythUIButtonListItem*> MythUIButtonList::m_itemList
protected

◆ m_itemsVisible

int MythUIButtonList::m_itemsVisible {0}
protected

◆ m_itemVertSpacing

int MythUIButtonList::m_itemVertSpacing {0}
protected

◆ m_itemWidth

int MythUIButtonList::m_itemWidth {0}
protected

◆ m_keepSelAtBottom

bool MythUIButtonList::m_keepSelAtBottom {false}
protected

Definition at line 397 of file mythuibuttonlist.h.

Referenced by CalculateButtonPositions(), and MoveDown().

◆ m_layout

LayoutType MythUIButtonList::m_layout {LayoutVertical}
protected

◆ m_lcdColumns

QStringList MythUIButtonList::m_lcdColumns
protected

Definition at line 406 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().

◆ m_lcdTitle

QString MythUIButtonList::m_lcdTitle
protected

Definition at line 405 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().

◆ m_leftColumns

int MythUIButtonList::m_leftColumns {0}
protected

Definition at line 369 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageUp().

◆ m_maxVisible

int MythUIButtonList::m_maxVisible {0}
protected

Definition at line 366 of file mythuibuttonlist.h.

Referenced by CopyFrom(), DistributeButtons(), InitButton(), and PrepareButton().

◆ m_needsUpdate

bool MythUIButtonList::m_needsUpdate {false}
protected

Definition at line 391 of file mythuibuttonlist.h.

Referenced by CalculateArrowStates(), DrawSelf(), GetVisibleCount(), and Update().

◆ m_nextItemLoaded

int MythUIButtonList::m_nextItemLoaded {0}
protected

Definition at line 400 of file mythuibuttonlist.h.

Referenced by customEvent(), LoadInBackground(), and StopLoad().

◆ m_rightColumns

int MythUIButtonList::m_rightColumns {0}
protected

Definition at line 370 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageDown().

◆ m_rows

int MythUIButtonList::m_rows {0}
protected

Definition at line 367 of file mythuibuttonlist.h.

Referenced by CalculateVisibleItems(), and DistributeButtons().

◆ m_scrollBar

MythUIScrollBar* MythUIButtonList::m_scrollBar {nullptr}
protected

Definition at line 380 of file mythuibuttonlist.h.

Referenced by CopyFrom(), Init(), and SetScrollBarPosition().

◆ m_scrollStyle

ScrollStyle MythUIButtonList::m_scrollStyle {ScrollFree}
protected

◆ m_searchFields

QString MythUIButtonList::m_searchFields {"**ALL**"}
protected

Definition at line 357 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and DoFind().

◆ m_searchPosition

MythPoint MythUIButtonList::m_searchPosition {-2,-2}
protected

Definition at line 356 of file mythuibuttonlist.h.

Referenced by CopyFrom(), ParseElement(), and ShowSearchDialog().

◆ m_searchStartsWith

bool MythUIButtonList::m_searchStartsWith {false}
protected

Definition at line 359 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

◆ m_searchStr

QString MythUIButtonList::m_searchStr
protected

Definition at line 358 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

◆ m_selPosition

int MythUIButtonList::m_selPosition {0}
protected

◆ m_shadowAlignment

std::optional<int> MythUIButtonList::m_shadowAlignment {std::nullopt}
protected

Definition at line 353 of file mythuibuttonlist.h.

Referenced by CopyFrom(), DistributeButtons(), and ParseElement().

◆ m_shadowDrawFromBottom

std::optional<bool> MythUIButtonList::m_shadowDrawFromBottom {std::nullopt}
protected

Definition at line 403 of file mythuibuttonlist.h.

Referenced by CalculateButtonPositions(), CopyFrom(), and ParseElement().

◆ m_shadowListName

QString MythUIButtonList::m_shadowListName
protected

Definition at line 374 of file mythuibuttonlist.h.

◆ m_showArrow

bool MythUIButtonList::m_showArrow {true}
protected

Definition at line 377 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and ParseElement().

◆ m_showScrollBar

bool MythUIButtonList::m_showScrollBar {true}
protected

Definition at line 378 of file mythuibuttonlist.h.

Referenced by CopyFrom(), Init(), ParseElement(), and SetScrollBarPosition().

◆ m_topPosition

int MythUIButtonList::m_topPosition {0}
protected

◆ m_topRows

int MythUIButtonList::m_topRows {0}
protected

Definition at line 371 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), PageDown(), and PageUp().

◆ m_upArrow

MythUIStateType* MythUIButtonList::m_upArrow {nullptr}
protected

Definition at line 381 of file mythuibuttonlist.h.

Referenced by CalculateArrowStates(), CopyFrom(), and Init().

◆ m_wrapStyle

WrapStyle MythUIButtonList::m_wrapStyle {WrapNone}
protected

The documentation for this class was generated from the following files: