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

#include <musiccommon.h>

Inheritance diagram for MusicCommon:
Inheritance graph
[legend]
Collaboration diagram for MusicCommon:
Collaboration graph
[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 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
 
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 ()
 
bool TakeFocus ()
 
void Activate ()
 
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 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 inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
 ~MythScreenType () override
 
virtual bool Create (void)
 
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...
 
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)
 
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 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...
 
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 44 of file musiccommon.cpp.

◆ ~MusicCommon()

MusicCommon::~MusicCommon ( void  )
overrideprotected

Definition at line 58 of file musiccommon.cpp.

Member Function Documentation

◆ CreateCommon()

bool MusicCommon::CreateCommon ( void  )
protected

◆ switchView()

void MusicCommon::switchView ( MusicView  view)
protected

Definition at line 375 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ customEvent()

void MusicCommon::customEvent ( QEvent *  event)
overrideprotected

◆ keyPressEvent()

bool MusicCommon::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ ShowMenu()

void MusicCommon::ShowMenu ( void  )
overrideprotectedvirtual

Reimplemented from MythScreenType.

Reimplemented in PlaylistEditorView, StreamView, SearchView, and VisualizerView.

Definition at line 2191 of file musiccommon.cpp.

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

◆ viewExited

void MusicCommon::viewExited ( void  )
protectedslot

Definition at line 568 of file musiccommon.cpp.

Referenced by switchView().

◆ play

void MusicCommon::play ( void  )
staticprotectedslot

Definition at line 1053 of file musiccommon.cpp.

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

◆ stop

void MusicCommon::stop ( void  )
protectedslot

Definition at line 1063 of file musiccommon.cpp.

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

◆ pause

void MusicCommon::pause ( void  )
staticprotectedslot

Definition at line 1058 of file musiccommon.cpp.

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

◆ previous

void MusicCommon::previous ( void  )
protectedslot

◆ next

void MusicCommon::next ( void  )
protectedslot

◆ seekforward

void MusicCommon::seekforward ( void  )
protectedslot

◆ seekback

void MusicCommon::seekback ( void  )
protectedslot

◆ seek

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

Definition at line 1109 of file musiccommon.cpp.

Referenced by seekback(), and seekforward().

◆ stopAll

void MusicCommon::stopAll ( void  )
protectedslot

Definition at line 1041 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ changeRating

void MusicCommon::changeRating ( bool  increase)
staticprotectedslot

Definition at line 1156 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ searchButtonList

void MusicCommon::searchButtonList ( void  )
protectedslot

Definition at line 2180 of file musiccommon.cpp.

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

◆ createMainMenu

MythMenu * MusicCommon::createMainMenu ( void  )
protectedslot

◆ createSubMenu

MythMenu * MusicCommon::createSubMenu ( void  )
protectedslot

Definition at line 2248 of file musiccommon.cpp.

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

◆ createPlaylistMenu

MythMenu * MusicCommon::createPlaylistMenu ( void  )
protectedslot

Definition at line 2276 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createPlayerMenu

MythMenu * MusicCommon::createPlayerMenu ( void  )
protectedslot

Definition at line 2328 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createQuickPlaylistsMenu

MythMenu * MusicCommon::createQuickPlaylistsMenu ( void  )
protectedslot

Definition at line 2386 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createRepeatMenu

MythMenu * MusicCommon::createRepeatMenu ( void  )
protectedslot

Definition at line 2354 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createShuffleMenu

MythMenu * MusicCommon::createShuffleMenu ( void  )
protectedslot

Definition at line 2369 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createVisualizerMenu

MythMenu * MusicCommon::createVisualizerMenu ( void  )
protectedslot

Definition at line 2409 of file musiccommon.cpp.

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

◆ createPlaylistOptionsMenu

MythMenu * MusicCommon::createPlaylistOptionsMenu ( void  )
protectedslot

Definition at line 2423 of file musiccommon.cpp.

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

◆ playlistItemClicked

void MusicCommon::playlistItemClicked ( MythUIButtonListItem item)
protectedslot

Definition at line 1977 of file musiccommon.cpp.

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

◆ playlistItemVisible

void MusicCommon::playlistItemVisible ( MythUIButtonListItem item)
staticprotectedslot

Definition at line 1998 of file musiccommon.cpp.

Referenced by CreateCommon().

◆ fromCD

void MusicCommon::fromCD ( void  )
protectedslot

Definition at line 2453 of file musiccommon.cpp.

Referenced by customEvent().

◆ allTracks

void MusicCommon::allTracks ( void  )
protectedslot

Definition at line 2447 of file musiccommon.cpp.

Referenced by customEvent().

◆ byArtist

void MusicCommon::byArtist ( void  )
protectedslot

Definition at line 2471 of file musiccommon.cpp.

Referenced by customEvent().

◆ byAlbum

void MusicCommon::byAlbum ( void  )
protectedslot

Definition at line 2484 of file musiccommon.cpp.

Referenced by customEvent().

◆ byGenre

void MusicCommon::byGenre ( void  )
protectedslot

Definition at line 2497 of file musiccommon.cpp.

Referenced by customEvent().

◆ byYear

void MusicCommon::byYear ( void  )
protectedslot

Definition at line 2510 of file musiccommon.cpp.

Referenced by customEvent().

◆ byTitle

void MusicCommon::byTitle ( void  )
protectedslot

Definition at line 2523 of file musiccommon.cpp.

Referenced by customEvent().

◆ doUpdatePlaylist

void MusicCommon::doUpdatePlaylist ( void  )
protectedslot

◆ showExitMenu()

void MusicCommon::showExitMenu ( void  )
protected

Definition at line 2304 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ showPlaylistOptionsMenu()

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

Definition at line 2536 of file musiccommon.cpp.

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

◆ init()

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

Definition at line 160 of file musiccommon.cpp.

Referenced by CreateCommon(), and viewExited().

◆ getTimeString()

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

Definition at line 2159 of file musiccommon.cpp.

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

◆ updateProgressBar()

void MusicCommon::updateProgressBar ( void  )
protected

Definition at line 908 of file musiccommon.cpp.

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

◆ setTrackOnLCD()

void MusicCommon::setTrackOnLCD ( MusicMetadata mdata)
staticprotected

Definition at line 1029 of file musiccommon.cpp.

Referenced by updateTrackInfo().

◆ editTrackInfo()

void MusicCommon::editTrackInfo ( MusicMetadata mdata)
staticprotected

◆ updateTrackInfo()

void MusicCommon::updateTrackInfo ( MusicMetadata mdata)
protected

◆ showTrackInfo()

void MusicCommon::showTrackInfo ( MusicMetadata mdata)
staticprotected

◆ updateUIPlaylist()

void MusicCommon::updateUIPlaylist ( void  )
protected

◆ updatePlaylistStats()

void MusicCommon::updatePlaylistStats ( void  )
protected

◆ updateUIPlayedList()

void MusicCommon::updateUIPlayedList ( void  )
protected

Definition at line 2084 of file musiccommon.cpp.

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

◆ updateRepeatMode()

void MusicCommon::updateRepeatMode ( void  )
protected

Definition at line 285 of file musiccommon.cpp.

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

◆ updateShuffleMode()

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

Definition at line 320 of file musiccommon.cpp.

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

◆ changeVolume()

void MusicCommon::changeVolume ( bool  up) const
protected

Definition at line 868 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ changeSpeed()

void MusicCommon::changeSpeed ( bool  up)
protected

Definition at line 880 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ toggleMute()

void MusicCommon::toggleMute ( void  ) const
protected

Definition at line 893 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ toggleUpmix()

void MusicCommon::toggleUpmix ( void  )
staticprotected

Definition at line 902 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ showVolume()

void MusicCommon::showVolume ( void  )
staticprotected

Definition at line 943 of file musiccommon.cpp.

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

◆ updateVolume()

void MusicCommon::updateVolume ( void  )
protected

Definition at line 1852 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ showSpeed()

void MusicCommon::showSpeed ( bool  show)
staticprotected

Definition at line 958 of file musiccommon.cpp.

Referenced by changeSpeed().

◆ startVisualizer()

void MusicCommon::startVisualizer ( void  )
protected

Definition at line 1013 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ stopVisualizer()

void MusicCommon::stopVisualizer ( void  )
protected

◆ cycleVisualizer()

void MusicCommon::cycleVisualizer ( void  )
protected

Definition at line 983 of file musiccommon.cpp.

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

◆ switchVisualizer() [1/2]

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

Definition at line 962 of file musiccommon.cpp.

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

◆ switchVisualizer() [2/2]

void MusicCommon::switchVisualizer ( int  visual)
protected

Definition at line 967 of file musiccommon.cpp.

◆ playFirstTrack()

void MusicCommon::playFirstTrack ( )
staticprotected

Definition at line 2687 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

◆ restorePosition()

bool MusicCommon::restorePosition ( int  trackID)
protected

Definition at line 2653 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

Member Data Documentation

◆ m_parentScreen

MythScreenType* MusicCommon::m_parentScreen {nullptr}
protected

Definition at line 140 of file musiccommon.h.

Referenced by keyPressEvent(), and switchView().

◆ m_currentView

MusicView MusicCommon::m_currentView {}
protected

◆ m_mainvisual

MainVisual* MusicCommon::m_mainvisual {nullptr}
protected

◆ m_fullscreenBlank

bool MusicCommon::m_fullscreenBlank {false}
protected

Definition at line 145 of file musiccommon.h.

Referenced by init().

◆ m_cycleVisualizer

bool MusicCommon::m_cycleVisualizer {false}
protected

Definition at line 146 of file musiccommon.h.

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

◆ m_randomVisualizer

bool MusicCommon::m_randomVisualizer {false}
protected

Definition at line 147 of file musiccommon.h.

Referenced by cycleVisualizer(), and init().

◆ m_visualModes

QStringList MusicCommon::m_visualModes
protected

◆ m_currentVisual

unsigned int MusicCommon::m_currentVisual {0}
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_controlVolume

bool MusicCommon::m_controlVolume {true}
protected

Definition at line 155 of file musiccommon.h.

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

◆ m_currentTrack

int MusicCommon::m_currentTrack {0}
protected

◆ m_currentTime

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

◆ m_maxTime

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

◆ 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_playlistPlayedTime

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

◆ m_playlistMaxTime

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

◆ m_playlistOptions

PlaylistOptions MusicCommon::m_playlistOptions {PL_REPLACE, PL_CURRENT}
protected

◆ m_whereClause

QString MusicCommon::m_whereClause
protected

◆ m_songList

QList<int> MusicCommon::m_songList
protected

◆ 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_infoText

MythUIText* MusicCommon::m_infoText {nullptr}
protected

Definition at line 174 of file musiccommon.h.

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

◆ m_visualText

MythUIText* MusicCommon::m_visualText {nullptr}
protected

Definition at line 175 of file musiccommon.h.

Referenced by CreateCommon(), and switchVisualizer().

◆ m_noTracksText

MythUIText* MusicCommon::m_noTracksText {nullptr}
protected

Definition at line 176 of file musiccommon.h.

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

◆ m_shuffleState

MythUIStateType* MusicCommon::m_shuffleState {nullptr}
protected

Definition at line 178 of file musiccommon.h.

Referenced by CreateCommon(), and updateShuffleMode().

◆ m_repeatState

MythUIStateType* MusicCommon::m_repeatState {nullptr}
protected

Definition at line 179 of file musiccommon.h.

Referenced by CreateCommon(), and updateRepeatMode().

◆ m_movingTracksState

MythUIStateType* MusicCommon::m_movingTracksState {nullptr}
protected

Definition at line 181 of file musiccommon.h.

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

◆ m_ratingState

MythUIStateType* MusicCommon::m_ratingState {nullptr}
protected

Definition at line 183 of file musiccommon.h.

Referenced by CreateCommon(), 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_muteState

MythUIStateType* MusicCommon::m_muteState {nullptr}
protected

Definition at line 190 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_volumeText

MythUIText* MusicCommon::m_volumeText {nullptr}
protected

Definition at line 191 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_playlistProgress

MythUIProgressBar* MusicCommon::m_playlistProgress {nullptr}
protected

Definition at line 193 of file musiccommon.h.

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

◆ m_prevButton

MythUIButton* MusicCommon::m_prevButton {nullptr}
protected

Definition at line 195 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_rewButton

MythUIButton* MusicCommon::m_rewButton {nullptr}
protected

Definition at line 196 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ 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_stopButton

MythUIButton* MusicCommon::m_stopButton {nullptr}
protected

Definition at line 199 of file musiccommon.h.

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

◆ m_ffButton

MythUIButton* MusicCommon::m_ffButton {nullptr}
protected

Definition at line 200 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_nextButton

MythUIButton* MusicCommon::m_nextButton {nullptr}
protected

Definition at line 201 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ 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_playedTracksList

MythUIButtonList* MusicCommon::m_playedTracksList {nullptr}
protected

◆ m_visualizerVideo

MythUIVideo* MusicCommon::m_visualizerVideo {nullptr}
protected

Definition at line 208 of file musiccommon.h.

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


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