MythTV master
Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
MusicCommon Class Reference

#include <mythplugins/mythmusic/mythmusic/musiccommon.h>

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

Protected Slots

void viewExited (void)
 
static void play (void)
 
void stop (void)
 
static void pause (void)
 
void previous (void)
 
void next (void)
 
void seekforward (void)
 
void seekback (void)
 
void seek (std::chrono::seconds pos)
 
void stopAll (void)
 
static void changeRating (bool increase)
 
void searchButtonList (void)
 
MythMenucreateMainMenu (void)
 
MythMenucreateSubMenu (void)
 
MythMenucreatePlaylistMenu (void)
 
MythMenucreatePlayerMenu (void)
 
MythMenucreateQuickPlaylistsMenu (void)
 
MythMenucreateRepeatMenu (void)
 
MythMenucreateShuffleMenu (void)
 
MythMenucreateVisualizerMenu (void)
 
MythMenucreatePlaylistOptionsMenu (void)
 
void playlistItemClicked (MythUIButtonListItem *item)
 
static void playlistItemVisible (MythUIButtonListItem *item)
 
void fromCD (void)
 
void allTracks (void)
 
void byArtist (void)
 
void byAlbum (void)
 
void byGenre (void)
 
void byYear (void)
 
void byTitle (void)
 
void doUpdatePlaylist (void)
 

Protected Member Functions

 MusicCommon (MythScreenStack *parent, MythScreenType *parentScreen, const QString &name)
 
 ~MusicCommon (void) override
 
bool CreateCommon (void)
 
void switchView (MusicView view)
 
void customEvent (QEvent *event) override
 
bool keyPressEvent (QKeyEvent *e) override
 Key event handler. More...
 
void ShowMenu (void) override
 
void showExitMenu (void)
 
void showPlaylistOptionsMenu (bool addMainMenu=false)
 
void init (bool startPlayback=true)
 
void updateProgressBar (void)
 
void updateTrackInfo (MusicMetadata *mdata)
 
void updateUIPlaylist (void)
 
void updatePlaylistStats (void)
 
void updateUIPlayedList (void)
 
void updateRepeatMode (void)
 
void updateShuffleMode (bool updateUIList=false)
 
void changeVolume (bool up) const
 
void changeSpeed (bool up)
 
void toggleMute (void) const
 
void updateVolume (void)
 
void startVisualizer (void)
 
void stopVisualizer (void)
 
void cycleVisualizer (void)
 
void switchVisualizer (const QString &visual)
 
void switchVisualizer (int visual)
 
bool restorePosition (int trackID)
 
- Protected Member Functions inherited from MythScreenType
 MythScreenType (MythUIType *parent, const QString &name, bool fullscreen=true)
 
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...
 
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...
 
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() More...
 
void LoadInBackground (const QString &message="")
 
void ReloadInBackground (void)
 
void OpenBusyPopup (const QString &message="")
 
void CloseBusyPopup (void)
 
void SetBusyPopupMessage (const QString &message)
 
void ResetBusyPopup (void)
 
- Protected Member Functions inherited from MythUIType
 ~MythUIType () override
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (FocusInfoType &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod) const
 
void ConnectDependants (bool recurse=false)
 
virtual bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another. More...
 
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type. More...
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Static Protected Member Functions

static QString getTimeString (std::chrono::seconds exTime, std::chrono::seconds maxTime)
 
static void setTrackOnLCD (MusicMetadata *mdata)
 
static void editTrackInfo (MusicMetadata *mdata)
 
static void showTrackInfo (MusicMetadata *mdata)
 
static void toggleUpmix (void)
 
static void showVolume (void)
 
static void showSpeed (bool show)
 
static void playFirstTrack ()
 
- Static Protected Member Functions inherited from MythUIType
static int NormX (int width)
 
static int NormY (int height)
 

Protected Attributes

MythScreenTypem_parentScreen {nullptr}
 
MusicView m_currentView {}
 
MainVisualm_mainvisual {nullptr}
 
bool m_fullscreenBlank {false}
 
bool m_cycleVisualizer {false}
 
bool m_randomVisualizer {false}
 
QStringList m_visualModes
 
unsigned int m_currentVisual {0}
 
bool m_moveTrackMode {false}
 
bool m_movingTrack {false}
 
bool m_controlVolume {true}
 
int m_currentTrack {0}
 
std::chrono::seconds m_currentTime {0s}
 
std::chrono::seconds m_maxTime {0s}
 
uint m_playlistTrackCount {0}
 
std::chrono::seconds m_playlistPlayedTime {0s}
 
std::chrono::seconds m_playlistMaxTime {0s}
 
PlaylistOptions m_playlistOptions {PL_REPLACE, PL_CURRENT}
 
QString m_whereClause
 
QList< int > m_songList
 
MythUITextm_timeText {nullptr}
 
MythUITextm_infoText {nullptr}
 
MythUITextm_visualText {nullptr}
 
MythUITextm_noTracksText {nullptr}
 
MythUIStateTypem_shuffleState {nullptr}
 
MythUIStateTypem_repeatState {nullptr}
 
MythUIStateTypem_movingTracksState {nullptr}
 
MythUIStateTypem_ratingState {nullptr}
 
MythUIProgressBarm_trackProgress {nullptr}
 
MythUITextm_trackProgressText {nullptr}
 
MythUITextm_trackSpeedText {nullptr}
 
MythUIStateTypem_trackState {nullptr}
 
MythUIStateTypem_muteState {nullptr}
 
MythUITextm_volumeText {nullptr}
 
MythUIProgressBarm_playlistProgress {nullptr}
 
MythUIButtonm_prevButton {nullptr}
 
MythUIButtonm_rewButton {nullptr}
 
MythUIButtonm_pauseButton {nullptr}
 
MythUIButtonm_playButton {nullptr}
 
MythUIButtonm_stopButton {nullptr}
 
MythUIButtonm_ffButton {nullptr}
 
MythUIButtonm_nextButton {nullptr}
 
MythUIImagem_coverartImage {nullptr}
 
MythUIButtonListm_currentPlaylist {nullptr}
 
MythUIButtonListm_playedTracksList {nullptr}
 
MythUIVideom_visualizerVideo {nullptr}
 
- Protected Attributes inherited from MythScreenType
bool m_fullScreen {false}
 
bool m_isDeleting {false}
 
QSemaphore m_loadLock {1}
 
volatile bool m_isLoading {false}
 
volatile bool m_isLoaded {false}
 
bool m_isInitialized {false}
 
MythUITypem_currentFocusWidget {nullptr}
 
FocusInfoType m_focusWidgetList
 
MythScreenStackm_screenStack {nullptr}
 
MythUIBusyDialogm_busyPopup {nullptr}
 
QRegion m_savedMask
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_childrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_visible {true}
 
bool m_hasFocus {false}
 
bool m_canHaveFocus {false}
 
bool m_enabled {true}
 
bool m_enableInitiator {false}
 
bool m_initiator {false}
 
bool m_vanish {false}
 
bool m_vanished {false}
 
bool m_isDependDefault {false}
 
QMap< MythUIType *, boolm_reverseDepend
 
QString m_focusedName
 
int m_focusOrder {0}
 
MythRect m_area {0,0,0,0}
 
MythRect m_minArea {0,0,0,0}
 
MythPoint m_minSize
 
QRegion m_dirtyRegion {0,0,0,0}
 
bool m_needsRedraw {false}
 
UIEffects m_effects
 
int m_alphaChangeMode {0}
 
int m_alphaChange {0}
 
int m_alphaMin {0}
 
int m_alphaMax {255}
 
bool m_moving {false}
 
QPoint m_xyDestination {0,0}
 
QPoint m_xySpeed {0,0}
 
FontMapm_fonts {nullptr}
 
MythUITypem_parent {nullptr}
 
MythPainterm_painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_borderColor {Qt::black}
 

Additional Inherited Members

- Public Slots inherited from MythScreenType
virtual void Close ()
 
- Public Slots inherited from MythUIType
void LoseFocus (void)
 
bool TakeFocus (void)
 
void Activate (void)
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 
- Signals inherited from MythScreenType
void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate (void)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus (void)
 
void LosingFocus (void)
 
void VisibilityChanged (bool Visible)
 
void Showing (void)
 
void Hiding (void)
 
void Enabling (void)
 
void Disabling (void)
 
void FinishedMoving (void)
 
void FinishedFading (void)
 
void DependChanged (bool isDefault)
 
- Public Member Functions inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
 ~MythScreenType () override
 
virtual bool Create (void)
 
bool keyPressEvent (QKeyEvent *event) override
 Key event handler. More...
 
bool inputMethodEvent (QInputMethodEvent *event) override
 Input Method event handler. More...
 
bool gestureEvent (MythGestureEvent *event) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void ShowMenu (void)
 
void doInit (void)
 
void LoadInForeground (void)
 
bool IsInitialized (void) const
 Has Init() been called on this screen? More...
 
bool IsFullscreen (void) const
 
void SetFullscreen (bool full)
 
MythUITypeGetFocusWidget (void) const
 
bool SetFocusWidget (MythUIType *widget=nullptr)
 
virtual bool NextPrevWidgetFocus (bool up_or_down)
 
void BuildFocusList (void)
 
MythScreenStackGetScreenStack () const
 
virtual void aboutToHide (void)
 
virtual void aboutToShow (void)
 
bool IsDeleting (void) const
 
void SetDeleting (bool deleting)
 
bool IsLoading (void) const
 
bool IsLoaded (void) const
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
 ~MythUIComposite () override=default
 
virtual void SetTextFromMap (const InfoMap &infoMap)
 
virtual void ResetMap (const InfoMap &infoMap)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (QPoint p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
QList< MythUIType * > GetAllDescendants (void)
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int order)
 
void SetFocusedName (const QString &widgetname)
 
QString GetFocusedName (void) const
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
void SetPosition (QPoint point)
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (QSize size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (QRect rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual bool keyPressEvent (QKeyEvent *event)
 Key event handler. More...
 
virtual bool inputMethodEvent (QInputMethodEvent *event)
 Input Method event handler. More...
 
virtual bool gestureEvent (MythGestureEvent *event)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (QPoint point) const
 Check if the given point falls within this widgets area. More...
 
virtual MythPainterGetPainter (void)
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 
- 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

Definition at line 49 of file musiccommon.h.

Constructor & Destructor Documentation

◆ MusicCommon()

MusicCommon::MusicCommon ( MythScreenStack parent,
MythScreenType parentScreen,
const QString &  name 
)
protected

Definition at line 46 of file musiccommon.cpp.

◆ ~MusicCommon()

MusicCommon::~MusicCommon ( void  )
overrideprotected

Definition at line 60 of file musiccommon.cpp.

Member Function Documentation

◆ allTracks

void MusicCommon::allTracks ( void  )
protectedslot

Definition at line 2517 of file musiccommon.cpp.

Referenced by customEvent().

◆ byAlbum

void MusicCommon::byAlbum ( void  )
protectedslot

Definition at line 2554 of file musiccommon.cpp.

Referenced by customEvent().

◆ byArtist

void MusicCommon::byArtist ( void  )
protectedslot

Definition at line 2541 of file musiccommon.cpp.

Referenced by customEvent().

◆ byGenre

void MusicCommon::byGenre ( void  )
protectedslot

Definition at line 2567 of file musiccommon.cpp.

Referenced by customEvent().

◆ byTitle

void MusicCommon::byTitle ( void  )
protectedslot

Definition at line 2593 of file musiccommon.cpp.

Referenced by customEvent().

◆ byYear

void MusicCommon::byYear ( void  )
protectedslot

Definition at line 2580 of file musiccommon.cpp.

Referenced by customEvent().

◆ changeRating

void MusicCommon::changeRating ( bool  increase)
staticprotectedslot

Definition at line 1207 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ changeSpeed()

void MusicCommon::changeSpeed ( bool  up)
protected

Definition at line 932 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ changeVolume()

void MusicCommon::changeVolume ( bool  up) const
protected

Definition at line 920 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ CreateCommon()

bool MusicCommon::CreateCommon ( void  )
protected

◆ createMainMenu

MythMenu * MusicCommon::createMainMenu ( void  )
protectedslot

◆ createPlayerMenu

MythMenu * MusicCommon::createPlayerMenu ( void  )
protectedslot

Definition at line 2398 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createPlaylistMenu

MythMenu * MusicCommon::createPlaylistMenu ( void  )
protectedslot

Definition at line 2346 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createPlaylistOptionsMenu

MythMenu * MusicCommon::createPlaylistOptionsMenu ( void  )
protectedslot

Definition at line 2493 of file musiccommon.cpp.

Referenced by PlaylistEditorView::ShowMenu(), and showPlaylistOptionsMenu().

◆ createQuickPlaylistsMenu

MythMenu * MusicCommon::createQuickPlaylistsMenu ( void  )
protectedslot

Definition at line 2456 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createRepeatMenu

MythMenu * MusicCommon::createRepeatMenu ( void  )
protectedslot

Definition at line 2424 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createShuffleMenu

MythMenu * MusicCommon::createShuffleMenu ( void  )
protectedslot

Definition at line 2439 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createSubMenu

MythMenu * MusicCommon::createSubMenu ( void  )
protectedslot

Definition at line 2318 of file musiccommon.cpp.

Referenced by createMainMenu(), SearchView::ShowMenu(), and StreamView::ShowMenu().

◆ createVisualizerMenu

MythMenu * MusicCommon::createVisualizerMenu ( void  )
protectedslot

Definition at line 2479 of file musiccommon.cpp.

Referenced by createSubMenu(), and VisualizerView::ShowMenu().

◆ customEvent()

void MusicCommon::customEvent ( QEvent *  event)
overrideprotected

◆ cycleVisualizer()

void MusicCommon::cycleVisualizer ( void  )
protected

Definition at line 1035 of file musiccommon.cpp.

Referenced by keyPressEvent(), next(), playlistItemClicked(), and previous().

◆ doUpdatePlaylist

void MusicCommon::doUpdatePlaylist ( void  )
protectedslot

◆ editTrackInfo()

void MusicCommon::editTrackInfo ( MusicMetadata mdata)
staticprotected

◆ fromCD

void MusicCommon::fromCD ( void  )
protectedslot

Definition at line 2523 of file musiccommon.cpp.

Referenced by customEvent().

◆ getTimeString()

QString MusicCommon::getTimeString ( std::chrono::seconds  exTime,
std::chrono::seconds  maxTime 
)
staticprotected

Definition at line 2230 of file musiccommon.cpp.

Referenced by customEvent(), seek(), stop(), and updatePlaylistStats().

◆ init()

void MusicCommon::init ( bool  startPlayback = true)
protected

Definition at line 162 of file musiccommon.cpp.

Referenced by CreateCommon(), and viewExited().

◆ keyPressEvent()

bool MusicCommon::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ next

void MusicCommon::next ( void  )
protectedslot

◆ pause

void MusicCommon::pause ( void  )
staticprotectedslot

Definition at line 1109 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), doUpdatePlaylist(), and keyPressEvent().

◆ play

void MusicCommon::play ( void  )
staticprotectedslot

Definition at line 1104 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

◆ playFirstTrack()

void MusicCommon::playFirstTrack ( )
staticprotected

Definition at line 2763 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

◆ playlistItemClicked

void MusicCommon::playlistItemClicked ( MythUIButtonListItem item)
protectedslot

Definition at line 2046 of file musiccommon.cpp.

Referenced by CreateCommon(), and SearchView::customEvent().

◆ playlistItemVisible

void MusicCommon::playlistItemVisible ( MythUIButtonListItem item)
staticprotectedslot

Definition at line 2069 of file musiccommon.cpp.

Referenced by CreateCommon().

◆ previous

void MusicCommon::previous ( void  )
protectedslot

◆ restorePosition()

bool MusicCommon::restorePosition ( int  trackID)
protected

Definition at line 2725 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

◆ searchButtonList

void MusicCommon::searchButtonList ( void  )
protectedslot

Definition at line 2251 of file musiccommon.cpp.

Referenced by customEvent(), and SearchView::customEvent().

◆ seek

void MusicCommon::seek ( std::chrono::seconds  pos)
protectedslot

Definition at line 1160 of file musiccommon.cpp.

Referenced by seekback(), and seekforward().

◆ seekback

void MusicCommon::seekback ( void  )
protectedslot

◆ seekforward

void MusicCommon::seekforward ( void  )
protectedslot

◆ setTrackOnLCD()

void MusicCommon::setTrackOnLCD ( MusicMetadata mdata)
staticprotected

Definition at line 1080 of file musiccommon.cpp.

Referenced by updateTrackInfo().

◆ showExitMenu()

void MusicCommon::showExitMenu ( void  )
protected

Definition at line 2374 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ ShowMenu()

void MusicCommon::ShowMenu ( void  )
overrideprotectedvirtual

Reimplemented from MythScreenType.

Reimplemented in PlaylistEditorView, SearchView, StreamView, and VisualizerView.

Definition at line 2262 of file musiccommon.cpp.

Referenced by keyPressEvent(), PlaylistEditorView::ShowMenu(), and SearchView::ShowMenu().

◆ showPlaylistOptionsMenu()

void MusicCommon::showPlaylistOptionsMenu ( bool  addMainMenu = false)
protected

Definition at line 2606 of file musiccommon.cpp.

Referenced by allTracks(), byAlbum(), byArtist(), byGenre(), byTitle(), byYear(), and fromCD().

◆ showSpeed()

void MusicCommon::showSpeed ( bool  show)
staticprotected

Definition at line 1010 of file musiccommon.cpp.

Referenced by changeSpeed().

◆ showTrackInfo()

void MusicCommon::showTrackInfo ( MusicMetadata mdata)
staticprotected

◆ showVolume()

void MusicCommon::showVolume ( void  )
staticprotected

Definition at line 995 of file musiccommon.cpp.

Referenced by changeVolume(), customEvent(), and toggleMute().

◆ startVisualizer()

void MusicCommon::startVisualizer ( void  )
protected

Definition at line 1064 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ stop

void MusicCommon::stop ( void  )
protectedslot

Definition at line 1114 of file musiccommon.cpp.

Referenced by CreateCommon(), customEvent(), and keyPressEvent().

◆ stopAll

void MusicCommon::stopAll ( void  )
protectedslot

Definition at line 1092 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ stopVisualizer()

void MusicCommon::stopVisualizer ( void  )
protected

◆ switchView()

void MusicCommon::switchView ( MusicView  view)
protected

Definition at line 377 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ switchVisualizer() [1/2]

void MusicCommon::switchVisualizer ( const QString &  visual)
protected

Definition at line 1014 of file musiccommon.cpp.

Referenced by customEvent(), cycleVisualizer(), init(), keyPressEvent(), and switchVisualizer().

◆ switchVisualizer() [2/2]

void MusicCommon::switchVisualizer ( int  visual)
protected

Definition at line 1019 of file musiccommon.cpp.

◆ toggleMute()

void MusicCommon::toggleMute ( void  ) const
protected

Definition at line 945 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ toggleUpmix()

void MusicCommon::toggleUpmix ( void  )
staticprotected

Definition at line 954 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ updatePlaylistStats()

void MusicCommon::updatePlaylistStats ( void  )
protected

◆ updateProgressBar()

void MusicCommon::updateProgressBar ( void  )
protected

Definition at line 960 of file musiccommon.cpp.

Referenced by customEvent(), init(), and seek().

◆ updateRepeatMode()

void MusicCommon::updateRepeatMode ( void  )
protected

Definition at line 287 of file musiccommon.cpp.

Referenced by customEvent(), init(), and keyPressEvent().

◆ updateShuffleMode()

void MusicCommon::updateShuffleMode ( bool  updateUIList = false)
protected

Definition at line 322 of file musiccommon.cpp.

Referenced by customEvent(), PlaylistEditorView::customEvent(), init(), and keyPressEvent().

◆ updateTrackInfo()

void MusicCommon::updateTrackInfo ( MusicMetadata mdata)
protected

◆ updateUIPlayedList()

void MusicCommon::updateUIPlayedList ( void  )
protected

Definition at line 2155 of file musiccommon.cpp.

Referenced by StreamView::Create(), and init().

◆ updateUIPlaylist()

void MusicCommon::updateUIPlaylist ( void  )
protected

◆ updateVolume()

void MusicCommon::updateVolume ( void  )
protected

Definition at line 1919 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ viewExited

void MusicCommon::viewExited ( void  )
protectedslot

Definition at line 582 of file musiccommon.cpp.

Referenced by switchView().

Member Data Documentation

◆ m_controlVolume

bool MusicCommon::m_controlVolume {true}
protected

Definition at line 155 of file musiccommon.h.

Referenced by changeVolume(), init(), toggleMute(), and updateVolume().

◆ m_coverartImage

MythUIImage* MusicCommon::m_coverartImage {nullptr}
protected

Definition at line 203 of file musiccommon.h.

Referenced by CreateCommon(), and updateTrackInfo().

◆ m_currentPlaylist

MythUIButtonList* MusicCommon::m_currentPlaylist {nullptr}
protected

◆ m_currentTime

std::chrono::seconds MusicCommon::m_currentTime {0s}
protected

◆ m_currentTrack

int MusicCommon::m_currentTrack {0}
protected

◆ m_currentView

MusicView MusicCommon::m_currentView {}
protected

◆ m_currentVisual

unsigned int MusicCommon::m_currentVisual {0}
protected

◆ m_cycleVisualizer

bool MusicCommon::m_cycleVisualizer {false}
protected

Definition at line 146 of file musiccommon.h.

Referenced by MusicCommon(), next(), playlistItemClicked(), and previous().

◆ m_ffButton

MythUIButton* MusicCommon::m_ffButton {nullptr}
protected

Definition at line 200 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_fullscreenBlank

bool MusicCommon::m_fullscreenBlank {false}
protected

Definition at line 145 of file musiccommon.h.

Referenced by init().

◆ m_infoText

MythUIText* MusicCommon::m_infoText {nullptr}
protected

Definition at line 174 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), stop(), updateProgressBar(), and updateTrackInfo().

◆ m_mainvisual

MainVisual* MusicCommon::m_mainvisual {nullptr}
protected

◆ m_maxTime

std::chrono::seconds MusicCommon::m_maxTime {0s}
protected

◆ m_moveTrackMode

bool MusicCommon::m_moveTrackMode {false}
protected

◆ m_movingTrack

bool MusicCommon::m_movingTrack {false}
protected

Definition at line 153 of file musiccommon.h.

Referenced by customEvent(), keyPressEvent(), and playlistItemClicked().

◆ m_movingTracksState

MythUIStateType* MusicCommon::m_movingTracksState {nullptr}
protected

Definition at line 181 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), init(), and keyPressEvent().

◆ m_muteState

MythUIStateType* MusicCommon::m_muteState {nullptr}
protected

Definition at line 190 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_nextButton

MythUIButton* MusicCommon::m_nextButton {nullptr}
protected

Definition at line 201 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_noTracksText

MythUIText* MusicCommon::m_noTracksText {nullptr}
protected

Definition at line 176 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and updateUIPlaylist().

◆ m_parentScreen

MythScreenType* MusicCommon::m_parentScreen {nullptr}
protected

Definition at line 140 of file musiccommon.h.

Referenced by keyPressEvent(), and switchView().

◆ m_pauseButton

MythUIButton* MusicCommon::m_pauseButton {nullptr}
protected

Definition at line 197 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), init(), and keyPressEvent().

◆ m_playButton

MythUIButton* MusicCommon::m_playButton {nullptr}
protected

Definition at line 198 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), init(), and keyPressEvent().

◆ m_playedTracksList

MythUIButtonList* MusicCommon::m_playedTracksList {nullptr}
protected

◆ m_playlistMaxTime

std::chrono::seconds MusicCommon::m_playlistMaxTime {0s}
protected

◆ m_playlistOptions

PlaylistOptions MusicCommon::m_playlistOptions {PL_REPLACE, PL_CURRENT}
protected

◆ m_playlistPlayedTime

std::chrono::seconds MusicCommon::m_playlistPlayedTime {0s}
protected

◆ m_playlistProgress

MythUIProgressBar* MusicCommon::m_playlistProgress {nullptr}
protected

Definition at line 193 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), init(), and updatePlaylistStats().

◆ m_playlistTrackCount

uint MusicCommon::m_playlistTrackCount {0}
protected

Definition at line 161 of file musiccommon.h.

Referenced by customEvent(), doUpdatePlaylist(), init(), keyPressEvent(), and updateShuffleMode().

◆ m_prevButton

MythUIButton* MusicCommon::m_prevButton {nullptr}
protected

Definition at line 195 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_randomVisualizer

bool MusicCommon::m_randomVisualizer {false}
protected

Definition at line 147 of file musiccommon.h.

Referenced by cycleVisualizer(), and init().

◆ m_ratingState

MythUIStateType* MusicCommon::m_ratingState {nullptr}
protected

Definition at line 183 of file musiccommon.h.

Referenced by CreateCommon(), and updateTrackInfo().

◆ m_repeatState

MythUIStateType* MusicCommon::m_repeatState {nullptr}
protected

Definition at line 179 of file musiccommon.h.

Referenced by CreateCommon(), and updateRepeatMode().

◆ m_rewButton

MythUIButton* MusicCommon::m_rewButton {nullptr}
protected

Definition at line 196 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_shuffleState

MythUIStateType* MusicCommon::m_shuffleState {nullptr}
protected

Definition at line 178 of file musiccommon.h.

Referenced by CreateCommon(), and updateShuffleMode().

◆ m_songList

QList<int> MusicCommon::m_songList
protected

◆ m_stopButton

MythUIButton* MusicCommon::m_stopButton {nullptr}
protected

Definition at line 199 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), init(), and keyPressEvent().

◆ m_timeText

MythUIText* MusicCommon::m_timeText {nullptr}
protected

Definition at line 173 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), seek(), stop(), and updateTrackInfo().

◆ m_trackProgress

MythUIProgressBar* MusicCommon::m_trackProgress {nullptr}
protected

Definition at line 185 of file musiccommon.h.

Referenced by CreateCommon(), updateProgressBar(), and updateTrackInfo().

◆ m_trackProgressText

MythUIText* MusicCommon::m_trackProgressText {nullptr}
protected

Definition at line 186 of file musiccommon.h.

Referenced by CreateCommon().

◆ m_trackSpeedText

MythUIText* MusicCommon::m_trackSpeedText {nullptr}
protected

Definition at line 187 of file musiccommon.h.

Referenced by CreateCommon().

◆ m_trackState

MythUIStateType* MusicCommon::m_trackState {nullptr}
protected

Definition at line 188 of file musiccommon.h.

Referenced by CreateCommon(), customEvent(), and init().

◆ m_visualizerVideo

MythUIVideo* MusicCommon::m_visualizerVideo {nullptr}
protected

Definition at line 208 of file musiccommon.h.

Referenced by CreateCommon(), createSubMenu(), init(), startVisualizer(), and stopVisualizer().

◆ m_visualModes

QStringList MusicCommon::m_visualModes
protected

◆ m_visualText

MythUIText* MusicCommon::m_visualText {nullptr}
protected

Definition at line 175 of file musiccommon.h.

Referenced by CreateCommon(), and switchVisualizer().

◆ m_volumeText

MythUIText* MusicCommon::m_volumeText {nullptr}
protected

Definition at line 191 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_whereClause

QString MusicCommon::m_whereClause
protected

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