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 RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
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, const QRect &area, bool showArrow=true, bool showScrollBar=false)
 
 ~MythUIButtonList ()
 
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 *) 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
 
uint 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 (const 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...
 
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)
 
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...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const 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 (const MythRect &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 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 (const 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
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &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)
 
int NormX (const int width)
 
int NormY (const int height)
 
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}
 
uint 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)
 

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 139 of file mythuibuttonlist.h.

Member Enumeration Documentation

◆ MovementUnit

Enumerator
MoveItem 
MoveColumn 
MoveRow 
MovePage 
MoveMax 
MoveMid 
MoveByAmount 

Definition at line 153 of file mythuibuttonlist.h.

◆ LayoutType

Enumerator
LayoutVertical 
LayoutHorizontal 
LayoutGrid 

Definition at line 155 of file mythuibuttonlist.h.

◆ ScrollStyle

Enumerator
ScrollFree 
ScrollCenter 
ScrollGroupCenter 

Definition at line 223 of file mythuibuttonlist.h.

◆ ArrangeType

Enumerator
ArrangeFixed 
ArrangeFill 
ArrangeSpread 
ArrangeStack 

Definition at line 224 of file mythuibuttonlist.h.

◆ WrapStyle

Enumerator
WrapCaptive 
WrapNone 
WrapSelect 
WrapItems 
WrapFlowing 

Definition at line 225 of file mythuibuttonlist.h.

Constructor & Destructor Documentation

◆ MythUIButtonList() [1/2]

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

Definition at line 28 of file mythuibuttonlist.cpp.

Referenced by CreateCopy().

◆ MythUIButtonList() [2/2]

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

Definition at line 38 of file mythuibuttonlist.cpp.

◆ ~MythUIButtonList()

MythUIButtonList::~MythUIButtonList ( )

Definition at line 64 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 2470 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 2604 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonTree::gestureEvent(), and GuideGrid::gestureEvent().

◆ customEvent()

void MythUIButtonList::customEvent ( QEvent *  event)
override

Definition at line 2721 of file mythuibuttonlist.cpp.

◆ SetDrawFromBottom()

void MythUIButtonList::SetDrawFromBottom ( bool  draw)

Definition at line 94 of file mythuibuttonlist.cpp.

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

Referenced by GalleryThumbView::BuildImageList(), InfoList::Clear(), ProgInfoList::Clear(), LocationDialog::clearResults(), MythNews::clearSites(), PrevRecordedList::customEvent(), StatusBox::doAutoExpireList(), StatusBox::doJobQueueStatus(), StatusBox::doListingsStatus(), StatusBox::doLogEntries(), StatusBox::doMachineStatus(), StatusBox::doScheduleStatus(), NetSearch::DoSearch(), StatusBox::doTunerStatus(), SearchStream::doUpdateStreams(), ImportIconsWizard::enableControls(), NetSearch::FillGrabberButtonList(), ChannelEditor::fillList(), ViewScheduled::FillList(), RSSEditor::fillRSSButtonList(), GuideGrid::fillTimeInfos(), LyricsView::findLyrics(), NetSearch::GetLastResults(), NetSearch::GetMoreResults(), ThemeChooser::Init(), FilterOptMixin::Load(), NetTree::LoadData(), VideoDialog::loadData(), ViewScheduled::LoadList(), MythNews::processAndShowNews(), ImportIconsWizard::search(), ZMEvents::setGridLayout(), PlaybackBox::setGroupFilter(), MythControls::SetListContents(), MythUISpinBox::SetRange(), 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(), EditAlbumartDialog::updateImageGrid(), SearchStream::updateLanguages(), ChannelRecPriority::updateList(), PrevRecordedList::UpdateList(), MythUIButtonTree::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(), and VideoSelector::updateVideoList().

◆ Update()

void MythUIButtonList::Update ( void  )

◆ 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 163 of file mythuibuttonlist.h.

◆ SetValueByData()

void MythUIButtonList::SetValueByData ( const QVariant &  data)

◆ GetIntValue()

int MythUIButtonList::GetIntValue ( void  ) const
virtual

Reimplemented in MythUISpinBox.

Definition at line 1599 of file mythuibuttonlist.cpp.

◆ GetValue()

QString MythUIButtonList::GetValue ( void  ) const
virtual

◆ GetDataValue()

QVariant MythUIButtonList::GetDataValue ( ) const

◆ GetButtonArea()

MythRect MythUIButtonList::GetButtonArea ( void  ) const

Definition at line 1629 of file mythuibuttonlist.cpp.

Referenced by MythUIStateType::RecalculateArea().

◆ SetItemCurrent() [1/2]

void MythUIButtonList::SetItemCurrent ( MythUIButtonListItem item)

Definition at line 1557 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButton(), StreamView::addStream(), MythTerminal::AddText(), PrevRecordedList::AllowRecord(), ChannelScannerGUIScanPane::AppendLine(), GalleryThumbView::BuildImageList(), ManualSchedule::Create(), MythTimeInputDialog::Create(), StatusBox::customEvent(), LyricsView::customEvent(), SearchView::customEvent(), StreamView::customEvent(), MusicCommon::customEvent(), StreamView::deleteStream(), DoFind(), ChannelEditor::fillList(), GuideGrid::fillProgramRowInfos(), gestureEvent(), VideoSelector::getVideoList(), gotoMainMenu(), PlaybackBox::HandleRecordingRemoveEvent(), StatusBox::Init(), RawSettingsEditor::Init(), LogViewer::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(), ZMEvents::playerExited(), PrevRecordedList::PreventRecord(), MythNews::processAndShowNews(), 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 1563 of file mythuibuttonlist.cpp.

◆ GetItemCurrent()

MythUIButtonListItem * MythUIButtonList::GetItemCurrent ( ) const

Definition at line 1590 of file mythuibuttonlist.cpp.

Referenced by BackendSelection::Accept(), CustomPriority::addClicked(), MythBurn::changeProfile(), ChannelRecPriority::changeRecPriority(), ProgramRecPriority::changeRecPriority(), ChannelEditor::channelIconImport(), StatusBox::clicked(), ImportCoverArtDialog::copyPressed(), EditAlbumartDialog::copySelectedImageToTag(), ChannelEditor::customEvent(), StatusBox::customEvent(), SearchView::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(), StandardSettingDialog::deleteEntry(), StandardSettingDialog::deleteEntryConfirmed(), MythNews::deleteNewsSite(), PrevRecordedList::DeleteOldEpisode(), ZMEvents::deletePressed(), CustomEdit::deleteRule(), ViewScheduled::deleteRule(), ScreenSetup::deleteScreen(), RSSEditor::DoDeleteSite(), EditAlbumartDialog::doRemoveImageFromTag(), StreamView::doRemoveStream(), NetSearch::DoSearch(), ChannelEditor::edit(), MythBurn::editDetails(), MythBurn::editorClosed(), StreamView::editStream(), MythBurn::editThumbnails(), 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(), CustomEdit::keyPressEvent(), StatusBox::keyPressEvent(), SearchView::keyPressEvent(), StreamView::keyPressEvent(), MythUISpinBox::keyPressEvent(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), ProgramRecPriority::keyPressEvent(), Ripper::keyPressEvent(), PlaybackBox::keyPressEvent(), keyPressEvent(), MythDialogBox::keyPressEvent(), StandardSettingDialog::keyPressEvent(), StandardSettingDialog::LevelDown(), ViewScheduled::LoadList(), ChannelEditor::menu(), MoveDown(), MoveItemUpDown(), PlaybackSettingsDialog::MoveProfileItemDown(), PlaybackSettingsDialog::MoveProfileItemUp(), MoveUp(), ProgramRecPriority::newTemplate(), FileSelector::OKPressed(), MythUIFileBrowser::OKPressed(), FileAssocDialog::OnDeletePressed(), PlaybackBox::PlayFromBeginning(), PlaybackBox::PlayFromBookmark(), PlaybackBox::PlayFromBookmarkOrProgStart(), 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(), MythUIButtonTree::SetTreeState(), PlaybackBox::ShowActionPopup(), MythNews::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(), RSSEditor::SlotEditSite(), NetSearch::SlotItemChanged(), RSSEditor::SlotItemChanged(), NetTree::SlotItemChanged(), MythBrowser::slotLoadStarted(), MythUISearchDialog::slotSendResult(), 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(), VideoSelector::updateVideoList(), and RawSettingsEditor::valueChanged().

◆ GetItemFirst()

MythUIButtonListItem * MythUIButtonList::GetItemFirst ( ) const

◆ GetItemNext()

MythUIButtonListItem * MythUIButtonList::GetItemNext ( MythUIButtonListItem item) const

Definition at line 1644 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 2451 of file mythuibuttonlist.cpp.

◆ ItemHeight()

uint MythUIButtonList::ItemHeight ( void  )

Definition at line 2459 of file mythuibuttonlist.cpp.

◆ GetLayout()

LayoutType MythUIButtonList::GetLayout ( ) const
inline

Definition at line 180 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 2339 of file mythuibuttonlist.cpp.

◆ GetCurrentPos()

int MythUIButtonList::GetCurrentPos ( ) const
inline

Definition at line 186 of file mythuibuttonlist.h.

Referenced by PrevRecordedList::AllowRecord(), ZMEvents::cameraChanged(), CustomEdit::clauseChanged(), StatusBox::clicked(), ManualSchedule::Create(), StatusBox::customEvent(), ProgFinder::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(), 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(), 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().

◆ GetItemPos()

int MythUIButtonList::GetItemPos ( MythUIButtonListItem item) const

◆ GetTopItemPos()

int MythUIButtonList::GetTopItemPos ( void  ) const
inline

◆ GetCount()

int MythUIButtonList::GetCount ( void  ) const

Definition at line 1655 of file mythuibuttonlist.cpp.

Referenced by StreamView::addStream(), ChannelEditor::channelIconImport(), LocationDialog::clearResults(), ManualSchedule::Create(), RSSEditor::Create(), MythBurn::createConfigFile(), ImageSearchResultsDialog::customEvent(), MetadataResultsDialog::customEvent(), SearchView::customEvent(), LyricsView::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(), ProgLister::HandleSelected(), LogViewer::Init(), EditPowerSearchPopup::initLists(), NetSearch::keyPressEvent(), PlaybackBox::keyPressEvent(), CustomEdit::loadClauses(), SelectDestination::loadConfiguration(), RSSEditor::LoadData(), MythThemedMenu::parseMenu(), restore_position(), FilterOptMixin::Save(), save_position(), MythBurn::saveConfiguration(), ScreenSetup::saveData(), SourceSetup::saveData(), ProgFinder::select(), LyricsView::setLyricTime(), ProgFinder::ShowMenu(), NetSearch::ShowMenu(), PlaybackSettingsDialog::ShowPlaybackProfileMenu(), EditAlbumartDialog::showTypeMenu(), CustomEdit::storeRule(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgFinder::updateInfo(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), StreamView::updateStream(), StreamView::updateStreamList(), SearchView::updateTracksList(), VideoSelector::updateVideoList(), ScreenSetup::~ScreenSetup(), and SourceSetup::~SourceSetup().

◆ GetVisibleCount()

uint MythUIButtonList::GetVisibleCount ( )

Definition at line 1660 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButton(), and MythDialogBox::updateMenu().

◆ IsEmpty()

bool MythUIButtonList::IsEmpty ( void  ) 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 3023 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 
)

Definition at line 3114 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::searchChanged().

◆ FindNext()

bool MythUIButtonList::FindNext ( void  )

Definition at line 3121 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::nextClicked().

◆ FindPrev()

bool MythUIButtonList::FindPrev ( void  )

Definition at line 3126 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 2749 of file mythuibuttonlist.cpp.

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

◆ Select

void MythUIButtonList::Select ( )
slot

Definition at line 73 of file mythuibuttonlist.cpp.

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

◆ Deselect

void MythUIButtonList::Deselect ( )
slot

◆ ToggleEnabled

void MythUIButtonList::ToggleEnabled ( )
slot

Definition at line 88 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ itemSelected

void MythUIButtonList::itemSelected ( MythUIButtonListItem item)
signal

◆ itemClicked

void MythUIButtonList::itemClicked ( MythUIButtonListItem item)
signal

Referenced by gestureEvent(), and keyPressEvent().

◆ itemVisible

void MythUIButtonList::itemVisible ( MythUIButtonListItem item)
signal

Referenced by ItemVisible().

◆ itemLoaded

void MythUIButtonList::itemLoaded ( MythUIButtonListItem item)
signal

Referenced by customEvent().

◆ DrawSelf()

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

Reimplemented from MythUIType.

Definition at line 2933 of file mythuibuttonlist.cpp.

◆ Const()

void MythUIButtonList::Const ( void  )
protected

Definition at line 55 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

◆ Init()

void MythUIButtonList::Init ( void  )
protectedvirtual

◆ InsertItem()

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

Definition at line 1457 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::MythUIButtonListItem().

◆ minButtonWidth()

int MythUIButtonList::minButtonWidth ( const MythRect area)
protected

Definition at line 151 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ minButtonHeight()

int MythUIButtonList::minButtonHeight ( const MythRect area)
protected

Definition at line 179 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

◆ InitButton()

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

Definition at line 1708 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 204 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 254 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 617 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons().

◆ DistributeButtons()

bool MythUIButtonList::DistributeButtons ( void  )
protected

Definition at line 735 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ CalculateButtonPositions()

void MythUIButtonList::CalculateButtonPositions ( void  )
protected

Definition at line 1252 of file mythuibuttonlist.cpp.

Referenced by CalculateArrowStates().

◆ CalculateArrowStates()

void MythUIButtonList::CalculateArrowStates ( void  )
protected

Definition at line 1391 of file mythuibuttonlist.cpp.

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

◆ SetScrollBarPosition()

void MythUIButtonList::SetScrollBarPosition ( void  )
protected

Definition at line 3875 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), and GetVisibleCount().

◆ ItemVisible()

void MythUIButtonList::ItemVisible ( MythUIButtonListItem item)
protected

Definition at line 1451 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::SetToRealButton().

◆ SetActive()

void MythUIButtonList::SetActive ( bool  active)
protected

◆ PageUp()

int MythUIButtonList::PageUp ( void  )
protected

Definition at line 1736 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

◆ PageDown()

int MythUIButtonList::PageDown ( void  )
protected

Definition at line 1840 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ DoFind()

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

Definition at line 3131 of file mythuibuttonlist.cpp.

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

◆ FindEnabledUp()

void MythUIButtonList::FindEnabledUp ( MovementUnit  unit)
protected

Definition at line 2109 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 2064 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

◆ CalculateVisibleItems()

void MythUIButtonList::CalculateVisibleItems ( void  )
protectedvirtual

Definition at line 2766 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ GetButtonPosition()

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

Definition at line 2756 of file mythuibuttonlist.cpp.

Referenced by Init().

◆ SetButtonArea()

void MythUIButtonList::SetButtonArea ( const MythRect rect)
protected

Definition at line 2803 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 2821 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 2955 of file mythuibuttonlist.cpp.

Referenced by MythUISpinBox::CopyFrom(), CreateCopy(), and MythUIButtonTree::Init().

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

◆ SanitizePosition()

void MythUIButtonList::SanitizePosition ( void  )
protected

Definition at line 1383 of file mythuibuttonlist.cpp.

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

Friends And Related Function Documentation

◆ MythUIButtonListItem

friend class MythUIButtonListItem
friend

Definition at line 343 of file mythuibuttonlist.h.

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

◆ MythUIButtonTree

friend class MythUIButtonTree
friend

Definition at line 344 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 290 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 294 of file mythuibuttonlist.h.

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

◆ m_searchFields

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

Definition at line 295 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and DoFind().

◆ m_searchStr

QString MythUIButtonList::m_searchStr
protected

Definition at line 296 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

◆ m_searchStartsWith

bool MythUIButtonList::m_searchStartsWith {false}
protected

Definition at line 297 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

uint MythUIButtonList::m_itemsVisible {0}
protected

◆ m_maxVisible

int MythUIButtonList::m_maxVisible {0}
protected

Definition at line 304 of file mythuibuttonlist.h.

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

◆ m_rows

int MythUIButtonList::m_rows {0}
protected

Definition at line 305 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 307 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageUp().

◆ m_rightColumns

int MythUIButtonList::m_rightColumns {0}
protected

Definition at line 308 of file mythuibuttonlist.h.

Referenced by DistributeButtons(), and PageDown().

◆ m_topRows

int MythUIButtonList::m_topRows {0}
protected

Definition at line 309 of file mythuibuttonlist.h.

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

◆ m_bottomRows

int MythUIButtonList::m_bottomRows {0}
protected

Definition at line 310 of file mythuibuttonlist.h.

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

◆ m_active

bool MythUIButtonList::m_active {false}
protected

Definition at line 312 of file mythuibuttonlist.h.

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

◆ m_showArrow

bool MythUIButtonList::m_showArrow {true}
protected

Definition at line 313 of file mythuibuttonlist.h.

Referenced by CopyFrom(), and ParseElement().

◆ m_showScrollBar

bool MythUIButtonList::m_showScrollBar {true}
protected

Definition at line 314 of file mythuibuttonlist.h.

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

◆ m_scrollBar

MythUIScrollBar* MythUIButtonList::m_scrollBar {nullptr}
protected

Definition at line 316 of file mythuibuttonlist.h.

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

◆ m_upArrow

MythUIStateType* MythUIButtonList::m_upArrow {nullptr}
protected

Definition at line 317 of file mythuibuttonlist.h.

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

◆ m_downArrow

MythUIStateType* MythUIButtonList::m_downArrow {nullptr}
protected

Definition at line 318 of file mythuibuttonlist.h.

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

◆ m_buttontemplate

MythUIStateType* MythUIButtonList::m_buttontemplate {nullptr}
protected

Definition at line 320 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 324 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 327 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 333 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 336 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 340 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().

◆ m_lcdColumns

QStringList MythUIButtonList::m_lcdColumns
protected

Definition at line 341 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().


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