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 <mythuibuttonlist.h>

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

Public Types

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

Public Slots

void Select ()
 
void Deselect ()
 
void ToggleEnabled ()
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
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 RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void VisibilityChanged (bool Visible)
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 

Public Member Functions

 MythUIButtonList (MythUIType *parent, const QString &name)
 
 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 SetDrawFromBottom (bool draw)
 
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)
 
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)
 
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)
 
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 inputMethodEvent (QInputMethodEvent *event)
 Input Method event handler. 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 { ScrollFree, ScrollCenter, ScrollGroupCenter }
 
enum  ArrangeType { ArrangeFixed, ArrangeFill, ArrangeSpread, ArrangeStack }
 
enum  WrapStyle {
  WrapCaptive = -1, WrapNone = 0, WrapSelect, WrapItems,
  WrapFlowing
}
 

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
 
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)
 

Protected Attributes

LayoutType m_layout {LayoutVertical}
 
ArrangeType m_arrange {ArrangeFixed}
 
ScrollStyle m_scrollStyle {ScrollFree}
 
WrapStyle m_wrapStyle {WrapNone}
 
int m_alignment {Qt::AlignLeft | Qt::AlignTop}
 
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}
 
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_drawFromBottom {false}
 
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
 
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 191 of file mythuibuttonlist.h.

Member Enumeration Documentation

◆ MovementUnit

Enumerator
MoveItem 
MoveColumn 
MoveRow 
MovePage 
MoveMax 
MoveMid 
MoveByAmount 

Definition at line 205 of file mythuibuttonlist.h.

◆ LayoutType

Enumerator
LayoutVertical 
LayoutHorizontal 
LayoutGrid 

Definition at line 207 of file mythuibuttonlist.h.

◆ ScrollStyle

Enumerator
ScrollFree 
ScrollCenter 
ScrollGroupCenter 

Definition at line 275 of file mythuibuttonlist.h.

◆ ArrangeType

Enumerator
ArrangeFixed 
ArrangeFill 
ArrangeSpread 
ArrangeStack 

Definition at line 276 of file mythuibuttonlist.h.

◆ WrapStyle

Enumerator
WrapCaptive 
WrapNone 
WrapSelect 
WrapItems 
WrapFlowing 

Definition at line 277 of file mythuibuttonlist.h.

Constructor & Destructor Documentation

◆ MythUIButtonList() [1/2]

MythUIButtonList::MythUIButtonList ( MythUIType parent,
const QString &  name 
)

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 41 of file mythuibuttonlist.cpp.

◆ ~MythUIButtonList()

MythUIButtonList::~MythUIButtonList ( )
override

Definition at line 67 of file mythuibuttonlist.cpp.

Member Function Documentation

◆ keyPressEvent()

bool MythUIButtonList::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2487 of file mythuibuttonlist.cpp.

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

◆ 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 2626 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonTree::gestureEvent().

◆ customEvent()

void MythUIButtonList::customEvent ( QEvent *  event)
override

Definition at line 2734 of file mythuibuttonlist.cpp.

◆ SetDrawFromBottom()

void MythUIButtonList::SetDrawFromBottom ( bool  draw)

Definition at line 97 of file mythuibuttonlist.cpp.

◆ Reset()

void MythUIButtonList::Reset ( )
overridevirtual

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

Reimplemented from MythUIType.

Definition at line 116 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(), NetTree::LoadData(), VideoDialog::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(), ChannelRecPriority::updateList(), MythUIButtonTree::UpdateList(), PrevRecordedList::UpdateList(), ProgramRecPriority::UpdateList(), MythDialogBox::updateMenu(), ZMConsole::updateMonitorList(), PlaybackBox::updateRecList(), RecordingSelector::updateRecordingList(), IdleScreen::UpdateScreen(), FileAssocDialog::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().

◆ Update()

void MythUIButtonList::Update ( )

◆ SetValue() [1/2]

virtual void MythUIButtonList::SetValue ( int  value)
inlinevirtual

◆ SetValue() [2/2]

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

Reimplemented in MythUISpinBox.

Definition at line 215 of file mythuibuttonlist.h.

◆ SetValueByData()

void MythUIButtonList::SetValueByData ( const QVariant &  data)

◆ GetIntValue()

int MythUIButtonList::GetIntValue ( ) const
virtual

Reimplemented in MythUISpinBox.

Definition at line 1596 of file mythuibuttonlist.cpp.

◆ GetValue()

QString MythUIButtonList::GetValue ( ) const
virtual

Reimplemented in MythUISpinBox.

Definition at line 1606 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().

◆ GetDataValue()

QVariant MythUIButtonList::GetDataValue ( ) const

◆ GetButtonArea()

MythRect MythUIButtonList::GetButtonArea ( void  ) const

Definition at line 1626 of file mythuibuttonlist.cpp.

◆ SetItemCurrent() [1/2]

void MythUIButtonList::SetItemCurrent ( MythUIButtonListItem item)

Definition at line 1554 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButtonV(), StreamView::addStream(), MythTerminal::AddText(), PrevRecordedList::AllowRecord(), ChannelScannerGUIScanPane::AppendLine(), GalleryThumbView::BuildImageList(), ManualSchedule::Create(), MythTimeInputDialog::Create(), SmartPlaylistEditor::criteriaChanged(), LyricsView::customEvent(), SearchView::customEvent(), StreamView::customEvent(), StatusBox::customEvent(), MusicCommon::customEvent(), StreamView::deleteStream(), DoFind(), ChannelEditor::fillList(), GuideGrid::fillProgramRowInfos(), PlayerSettings::fillRegionList(), gestureEvent(), VideoSelector::getVideoList(), PlaybackBox::HandleRecordingRemoveEvent(), RawSettingsEditor::Init(), LogViewer::Init(), StatusBox::Init(), EditPowerSearchPopup::initLists(), MythBrowser::keyPressEvent(), ThumbFinder::keyPressEvent(), MusicCommon::keyPressEvent(), PlaybackBox::keyPressEvent(), LanguageSelection::Load(), SelectDestination::loadConfiguration(), CustomPriority::loadData(), CustomEdit::loadData(), VideoSetupWizard::loadData(), NetTree::LoadData(), VideoDialog::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(), 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(), ChannelRecPriority::updateList(), MythUIButtonTree::UpdateList(), ProgramRecPriority::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().

◆ SetItemCurrent() [2/2]

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

Definition at line 1560 of file mythuibuttonlist.cpp.

◆ GetItemCurrent()

MythUIButtonListItem * MythUIButtonList::GetItemCurrent ( ) const

Definition at line 1587 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(), ChannelEditor::customEvent(), SearchView::customEvent(), ViewScheduled::customEvent(), StatusBox::customEvent(), MusicCommon::customEvent(), ProgramRecPriority::customEvent(), ScreenSetup::customEvent(), MythThemedMenu::customEvent(), NetSearch::customEvent(), PlaybackBox::customEvent(), EditAlbumartDialog::customEvent(), StandardSettingDialog::customEvent(), ProgramRecPriority::deactivate(), ChannelEditor::del(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), SmartPlaylistEditor::deleteCriteria(), StandardSettingDialog::deleteEntry(), StandardSettingDialog::deleteEntryConfirmed(), MythNews::deleteNewsSite(), PrevRecordedList::DeleteOldEpisode(), ZMEvents::deletePressed(), SmartPLOrderByDialog::deletePressed(), CustomEdit::deleteRule(), ViewScheduled::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(), ViewScheduled::GetCurrentProgram(), ProgramRecPriority::GetCurrentProgram(), PlaybackBox::GetCurrentProgram(), GetDataValue(), GetIntValue(), MythUIButtonTree::GetItemCurrent(), VideoDialog::GetItemCurrent(), NetTree::GetStreamItem(), GetValue(), PlaybackBox::HandlePreviewEvent(), PlaybackBox::HandleRecordingRemoveEvent(), AudioSetupWizard::Init(), ThemeChooser::Init(), CustomPriority::installClicked(), PlaybackBox::ItemLoaded(), PlaybackBox::ItemVisible(), SearchView::keyPressEvent(), CustomEdit::keyPressEvent(), StreamView::keyPressEvent(), MythUISpinBox::keyPressEvent(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), BookmarkManager::keyPressEvent(), ProgramRecPriority::keyPressEvent(), Ripper::keyPressEvent(), PlaybackBox::keyPressEvent(), keyPressEvent(), MythDialogBox::keyPressEvent(), StandardSettingDialog::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(), AudioSetupWizard::save(), VideoSetupWizard::save(), LanguageSelection::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(), MythNews::ShowEditDialog(), BookmarkManager::ShowEditDialog(), ZMConsole::showEditFunctionPopup(), Ripper::showEditMetadataDialog(), PlaybackSettingsDialog::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), ChannelRecPriority::ShowMenu(), MythBurn::ShowMenu(), NetTree::ShowMenu(), EditAlbumartDialog::showMenu(), ScheduleEditor::showMenu(), StandardSettingDialog::ShowMenu(), ThemeChooser::showPopupMenu(), PlaybackBox::showRecGroupPasswordChanger(), SmartPLResultViewer::showTrackInfo(), BookmarkManager::slotDeleteCurrent(), BookmarkManager::slotDoDeleteCurrent(), RSSEditor::SlotEditSite(), NetSearch::SlotItemChanged(), RSSEditor::SlotItemChanged(), NetTree::SlotItemChanged(), MythBrowser::slotLoadStarted(), PlayerSettings::slotSave(), MythUISearchDialog::slotSendResult(), BookmarkManager::slotSetHomepage(), BookmarkManager::slotShowCurrent(), BookmarkManager::slotShowMarked(), MythBrowser::slotTitleChanged(), ChannelRecPriority::SortList(), ProgramRecPriority::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 1641 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::HandleRecordingRemoveEvent().

◆ GetItemAt()

MythUIButtonListItem * MythUIButtonList::GetItemAt ( int  pos) const

◆ GetItemByData()

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

◆ ItemWidth()

uint MythUIButtonList::ItemWidth ( void  )

Definition at line 2468 of file mythuibuttonlist.cpp.

◆ ItemHeight()

uint MythUIButtonList::ItemHeight ( void  )

Definition at line 2476 of file mythuibuttonlist.cpp.

◆ GetLayout()

LayoutType MythUIButtonList::GetLayout ( ) const
inline

Definition at line 232 of file mythuibuttonlist.h.

Referenced by MythDialogBox::keyPressEvent().

◆ MoveItemUpDown()

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

◆ SetAllChecked()

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

Definition at line 2356 of file mythuibuttonlist.cpp.

◆ GetCurrentPos()

int MythUIButtonList::GetCurrentPos ( ) const
inline

Definition at line 238 of file mythuibuttonlist.h.

Referenced by PrevRecordedList::AllowRecord(), ZMEvents::cameraChanged(), CustomEdit::clauseChanged(), StatusBox::clicked(), ManualSchedule::Create(), ViewScheduleDiff::CurrentProgram(), ProgFinder::customEvent(), StatusBox::customEvent(), MusicCommon::customEvent(), ManualSchedule::dateChanged(), ZMEvents::dateChanged(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), PrevRecordedList::DeleteOldEpisode(), ZMEvents::deletePressed(), CustomEdit::deleteRule(), StreamView::deleteStream(), DoFind(), NetSearch::DoSearch(), PowerSearchPopup::editClicked(), ZMEvents::eventChanged(), ChannelEditor::fillList(), ProgFinder::GetCurrentProgram(), PrevRecordedList::GetCurrentProgram(), ProgLister::GetCurrentProgram(), ZMEvents::getEventList(), ThumbFinder::gridItemChanged(), ProgLister::HandleSelected(), MythBrowser::keyPressEvent(), ThumbFinder::keyPressEvent(), MusicCommon::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(), SpinBoxEntryDialog::SpinBoxEntryDialog(), CustomEdit::storeClicked(), StreamView::streamItemClicked(), CustomEdit::textChanged(), DVDThemeSelector::themeChanged(), SmartPLResultViewer::trackSelected(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgLister::UpdateDisplay(), ProgFinder::updateInfo(), PrevRecordedList::updateInfo(), updateLCD(), ZMConsole::updateMonitorList(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), ThumbFinder::updateThumb(), MusicCommon::updateUIPlaylist(), JaProgFinder::whereClauseGetSearchData(), and StatusBox::~StatusBox().

◆ GetItemPos()

int MythUIButtonList::GetItemPos ( MythUIButtonListItem item) const

◆ GetTopItemPos()

int MythUIButtonList::GetTopItemPos ( void  ) const
inline

◆ GetCount()

int MythUIButtonList::GetCount ( ) const

Definition at line 1652 of file mythuibuttonlist.cpp.

Referenced by StreamView::addStream(), ChannelEditor::channelIconImport(), LocationDialog::clearResults(), ManualSchedule::Create(), RSSEditor::Create(), MythBurn::createConfigFile(), ImageSearchResultsDialog::customEvent(), MetadataResultsDialog::customEvent(), LyricsView::customEvent(), SearchView::customEvent(), StreamView::customEvent(), MusicCommon::customEvent(), ScreenSetup::customEvent(), NetSearch::customEvent(), NetTree::customEvent(), 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(), ProgFinder::ShowMenu(), NetSearch::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().

◆ GetVisibleCount()

int MythUIButtonList::GetVisibleCount ( )

◆ IsEmpty()

bool MythUIButtonList::IsEmpty ( ) const

◆ MoveDown()

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

◆ MoveUp()

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

◆ MoveToNamedPosition()

bool MythUIButtonList::MoveToNamedPosition ( const QString &  position_name)

◆ RemoveItem()

void MythUIButtonList::RemoveItem ( MythUIButtonListItem item)

◆ SetLCDTitles()

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

◆ updateLCD()

void MythUIButtonList::updateLCD ( void  )

Definition at line 3036 of file mythuibuttonlist.cpp.

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

◆ SetSearchFields()

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

◆ ShowSearchDialog()

void MythUIButtonList::ShowSearchDialog ( void  )

◆ Find()

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

◆ FindNext()

bool MythUIButtonList::FindNext ( void  )

Definition at line 3133 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::nextClicked().

◆ FindPrev()

bool MythUIButtonList::FindPrev ( void  )

Definition at line 3138 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::prevClicked().

◆ LoadInBackground()

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

◆ StopLoad()

int MythUIButtonList::StopLoad ( void  )

Definition at line 2763 of file mythuibuttonlist.cpp.

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

◆ Select

void MythUIButtonList::Select ( )
slot

Definition at line 76 of file mythuibuttonlist.cpp.

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

◆ Deselect

void MythUIButtonList::Deselect ( )
slot

◆ ToggleEnabled

void MythUIButtonList::ToggleEnabled ( )
slot

Definition at line 91 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ itemSelected

void MythUIButtonList::itemSelected ( MythUIButtonListItem item)
signal

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

◆ itemClicked

void MythUIButtonList::itemClicked ( MythUIButtonListItem item)
signal

◆ itemVisible

void MythUIButtonList::itemVisible ( MythUIButtonListItem item)
signal

◆ itemLoaded

void MythUIButtonList::itemLoaded ( MythUIButtonListItem item)
signal

◆ DrawSelf()

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

Reimplemented from MythUIType.

Definition at line 2947 of file mythuibuttonlist.cpp.

◆ Const()

void MythUIButtonList::Const ( )
protected

Definition at line 58 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ Init()

void MythUIButtonList::Init ( )
protectedvirtual

◆ InsertItem()

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

Definition at line 1456 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::MythUIButtonListItem().

◆ minButtonWidth()

int MythUIButtonList::minButtonWidth ( const MythRect area)
protected

Definition at line 154 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ minButtonHeight()

int MythUIButtonList::minButtonHeight ( const MythRect area)
protected

Definition at line 182 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ InitButton()

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

Definition at line 1703 of file mythuibuttonlist.cpp.

Referenced by PageDown(), and PageUp().

◆ PrepareButton()

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

Definition at line 207 of file mythuibuttonlist.cpp.

Referenced by DistributeRow().

◆ 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 256 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeCols().

◆ 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 614 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons().

◆ DistributeButtons()

bool MythUIButtonList::DistributeButtons ( void  )
protected

Definition at line 729 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ CalculateButtonPositions()

void MythUIButtonList::CalculateButtonPositions ( void  )
protected

Definition at line 1254 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ CalculateArrowStates()

void MythUIButtonList::CalculateArrowStates ( void  )
protected

Definition at line 1390 of file mythuibuttonlist.cpp.

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

◆ SetScrollBarPosition()

void MythUIButtonList::SetScrollBarPosition ( void  )
protected

Definition at line 3983 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), and GetVisibleCount().

◆ ItemVisible()

void MythUIButtonList::ItemVisible ( MythUIButtonListItem item)
protected

Definition at line 1450 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::SetToRealButton().

◆ SetActive()

void MythUIButtonList::SetActive ( bool  active)
protected

Definition at line 102 of file mythuibuttonlist.cpp.

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

◆ PageUp()

int MythUIButtonList::PageUp ( void  )
protected

Definition at line 1731 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

◆ PageDown()

int MythUIButtonList::PageDown ( void  )
protected

Definition at line 1836 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ DoFind()

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

Definition at line 3143 of file mythuibuttonlist.cpp.

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

◆ FindEnabledUp()

void MythUIButtonList::FindEnabledUp ( MovementUnit  unit)
protected

Definition at line 2114 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

◆ FindEnabledDown()

void MythUIButtonList::FindEnabledDown ( MovementUnit  unit)
protected

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

Definition at line 2069 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ CalculateVisibleItems()

void MythUIButtonList::CalculateVisibleItems ( void  )
protectedvirtual

Definition at line 2780 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ GetButtonPosition()

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

Definition at line 2770 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ SetButtonArea()

void MythUIButtonList::SetButtonArea ( const MythRect rect)
protected

Definition at line 2817 of file mythuibuttonlist.cpp.

Referenced by ParseElement().

◆ 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 2835 of file mythuibuttonlist.cpp.

Referenced by MythUISpinBox::ParseElement().

◆ CopyFrom()

void MythUIButtonList::CopyFrom ( MythUIType base)
overrideprotectedvirtual

Copy this widgets state from another.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2969 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 2960 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 3025 of file mythuibuttonlist.cpp.

◆ SanitizePosition()

void MythUIButtonList::SanitizePosition ( void  )
protected

Definition at line 1382 of file mythuibuttonlist.cpp.

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

Friends And Related Function Documentation

◆ MythUIButtonListItem

friend class MythUIButtonListItem
friend

Definition at line 395 of file mythuibuttonlist.h.

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

◆ MythUIButtonTree

friend class MythUIButtonTree
friend

Definition at line 396 of file mythuibuttonlist.h.

Member Data Documentation

◆ m_layout

LayoutType MythUIButtonList::m_layout {LayoutVertical}
protected

◆ m_arrange

ArrangeType MythUIButtonList::m_arrange {ArrangeFixed}
protected

◆ m_scrollStyle

ScrollStyle MythUIButtonList::m_scrollStyle {ScrollFree}
protected

◆ m_wrapStyle

WrapStyle MythUIButtonList::m_wrapStyle {WrapNone}
protected

◆ m_alignment

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

Definition at line 342 of file mythuibuttonlist.h.

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

◆ m_contentsRect

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

◆ m_searchPosition

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

Definition at line 346 of file mythuibuttonlist.h.

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

◆ m_searchFields

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

Definition at line 347 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and DoFind().

◆ m_searchStr

QString MythUIButtonList::m_searchStr
protected

Definition at line 348 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

◆ m_searchStartsWith

bool MythUIButtonList::m_searchStartsWith {false}
protected

Definition at line 349 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

◆ m_itemWidth

int MythUIButtonList::m_itemWidth {0}
protected

◆ m_itemHeight

int MythUIButtonList::m_itemHeight {0}
protected

◆ m_itemHorizSpacing

int MythUIButtonList::m_itemHorizSpacing {0}
protected

◆ m_itemVertSpacing

int MythUIButtonList::m_itemVertSpacing {0}
protected

◆ m_itemsVisible

int MythUIButtonList::m_itemsVisible {0}
protected

◆ m_maxVisible

int MythUIButtonList::m_maxVisible {0}
protected

Definition at line 356 of file mythuibuttonlist.h.

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

◆ m_rows

int MythUIButtonList::m_rows {0}
protected

Definition at line 357 of file mythuibuttonlist.h.

Referenced by CalculateVisibleItems(), and DistributeButtons().

◆ m_columns

int MythUIButtonList::m_columns {0}
protected

◆ m_leftColumns

int MythUIButtonList::m_leftColumns {0}
protected

Definition at line 359 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageUp().

◆ m_rightColumns

int MythUIButtonList::m_rightColumns {0}
protected

Definition at line 360 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageDown().

◆ m_topRows

int MythUIButtonList::m_topRows {0}
protected

Definition at line 361 of file mythuibuttonlist.h.

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

◆ m_bottomRows

int MythUIButtonList::m_bottomRows {0}
protected

Definition at line 362 of file mythuibuttonlist.h.

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

◆ m_active

bool MythUIButtonList::m_active {false}
protected

Definition at line 364 of file mythuibuttonlist.h.

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

◆ m_showArrow

bool MythUIButtonList::m_showArrow {true}
protected

Definition at line 365 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and ParseElement().

◆ m_showScrollBar

bool MythUIButtonList::m_showScrollBar {true}
protected

Definition at line 366 of file mythuibuttonlist.h.

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

◆ m_scrollBar

MythUIScrollBar* MythUIButtonList::m_scrollBar {nullptr}
protected

Definition at line 368 of file mythuibuttonlist.h.

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

◆ m_upArrow

MythUIStateType* MythUIButtonList::m_upArrow {nullptr}
protected

Definition at line 369 of file mythuibuttonlist.h.

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

◆ m_downArrow

MythUIStateType* MythUIButtonList::m_downArrow {nullptr}
protected

Definition at line 370 of file mythuibuttonlist.h.

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

◆ m_buttontemplate

MythUIStateType* MythUIButtonList::m_buttontemplate {nullptr}
protected

Definition at line 372 of file mythuibuttonlist.h.

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

◆ m_buttonList

QVector<MythUIStateType *> MythUIButtonList::m_buttonList
protected

◆ m_buttonToItem

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

◆ m_actionRemap

QHash<QString, QString> MythUIButtonList::m_actionRemap
protected

Definition at line 376 of file mythuibuttonlist.h.

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

◆ m_initialized

bool MythUIButtonList::m_initialized {false}
protected

◆ m_needsUpdate

bool MythUIButtonList::m_needsUpdate {false}
protected

Definition at line 379 of file mythuibuttonlist.h.

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

◆ m_clearing

bool MythUIButtonList::m_clearing {false}
protected

◆ m_selPosition

int MythUIButtonList::m_selPosition {0}
protected

◆ m_topPosition

int MythUIButtonList::m_topPosition {0}
protected

◆ m_itemCount

int MythUIButtonList::m_itemCount {0}
protected

◆ m_keepSelAtBottom

bool MythUIButtonList::m_keepSelAtBottom {false}
protected

Definition at line 385 of file mythuibuttonlist.h.

Referenced by CalculateButtonPositions(), and MoveDown().

◆ m_itemList

QList<MythUIButtonListItem*> MythUIButtonList::m_itemList
protected

◆ m_nextItemLoaded

int MythUIButtonList::m_nextItemLoaded {0}
protected

Definition at line 388 of file mythuibuttonlist.h.

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

◆ m_drawFromBottom

bool MythUIButtonList::m_drawFromBottom {false}
protected

◆ m_lcdTitle

QString MythUIButtonList::m_lcdTitle
protected

Definition at line 392 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().

◆ m_lcdColumns

QStringList MythUIButtonList::m_lcdColumns
protected

Definition at line 393 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().


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