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 (int)
 
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)
 
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)
 
void toggleMute (void)
 
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
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
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)
 
void ConnectDependants (bool recurse=false)
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Static Protected Member Functions

static QString getTimeString (int exTime, int maxTime)
 
static void setTrackOnLCD (MusicMetadata *mdata)
 
static void editTrackInfo (MusicMetadata *mdata)
 
static void showTrackInfo (MusicMetadata *mdata)
 
static void changeSpeed (bool up)
 
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 (const int width)
 
static int NormY (const 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}
 
int m_currentTime {0}
 
int m_maxTime {0}
 
uint m_playlistTrackCount {0}
 
uint m_playlistPlayedTime {0}
 
uint m_playlistMaxTime {0}
 
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}
 
QMap< int, MythUIType * > 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 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 inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
virtual ~MythScreenType ()
 
virtual bool Create (void)
 
bool gestureEvent (MythGestureEvent *) 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)
 
bool IsLoaded (void)
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
virtual ~MythUIComposite ()=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 (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...
 
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 47 of file musiccommon.h.

Constructor & Destructor Documentation

◆ MusicCommon()

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

Definition at line 48 of file musiccommon.cpp.

◆ ~MusicCommon()

MusicCommon::~MusicCommon ( void  )
protected

Definition at line 63 of file musiccommon.cpp.

Member Function Documentation

◆ CreateCommon()

bool MusicCommon::CreateCommon ( void  )
protected

◆ switchView()

void MusicCommon::switchView ( MusicView  view)
protected

Definition at line 377 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 2196 of file musiccommon.cpp.

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

◆ viewExited

void MusicCommon::viewExited ( void  )
protectedslot

Definition at line 576 of file musiccommon.cpp.

Referenced by switchView().

◆ play

void MusicCommon::play ( void  )
staticprotectedslot

Definition at line 1060 of file musiccommon.cpp.

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

◆ stop

void MusicCommon::stop ( void  )
protectedslot

Definition at line 1070 of file musiccommon.cpp.

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

◆ pause

void MusicCommon::pause ( void  )
staticprotectedslot

Definition at line 1065 of file musiccommon.cpp.

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

◆ previous

void MusicCommon::previous ( void  )
protectedslot

Definition at line 1091 of file musiccommon.cpp.

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

◆ next

void MusicCommon::next ( void  )
protectedslot

Definition at line 1082 of file musiccommon.cpp.

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

◆ seekforward

void MusicCommon::seekforward ( void  )
protectedslot

Definition at line 1099 of file musiccommon.cpp.

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

◆ seekback

void MusicCommon::seekback ( void  )
protectedslot

Definition at line 1107 of file musiccommon.cpp.

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

◆ seek

void MusicCommon::seek ( int  pos)
protectedslot

Definition at line 1115 of file musiccommon.cpp.

Referenced by seekback(), and seekforward().

◆ stopAll

void MusicCommon::stopAll ( void  )
protectedslot

Definition at line 1048 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ changeRating

void MusicCommon::changeRating ( bool  increase)
staticprotectedslot

Definition at line 1161 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ searchButtonList

void MusicCommon::searchButtonList ( void  )
protectedslot

Definition at line 2185 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 2245 of file musiccommon.cpp.

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

◆ createPlaylistMenu

MythMenu * MusicCommon::createPlaylistMenu ( void  )
protectedslot

Definition at line 2273 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createPlayerMenu

MythMenu * MusicCommon::createPlayerMenu ( void  )
protectedslot

Definition at line 2325 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createQuickPlaylistsMenu

MythMenu * MusicCommon::createQuickPlaylistsMenu ( void  )
protectedslot

Definition at line 2383 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createRepeatMenu

MythMenu * MusicCommon::createRepeatMenu ( void  )
protectedslot

Definition at line 2351 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createShuffleMenu

MythMenu * MusicCommon::createShuffleMenu ( void  )
protectedslot

Definition at line 2366 of file musiccommon.cpp.

Referenced by createSubMenu().

◆ createVisualizerMenu

MythMenu * MusicCommon::createVisualizerMenu ( void  )
protectedslot

Definition at line 2406 of file musiccommon.cpp.

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

◆ createPlaylistOptionsMenu

MythMenu * MusicCommon::createPlaylistOptionsMenu ( void  )
protectedslot

Definition at line 2420 of file musiccommon.cpp.

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

◆ playlistItemClicked

void MusicCommon::playlistItemClicked ( MythUIButtonListItem item)
protectedslot

Definition at line 1976 of file musiccommon.cpp.

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

◆ playlistItemVisible

void MusicCommon::playlistItemVisible ( MythUIButtonListItem item)
staticprotectedslot

Definition at line 1997 of file musiccommon.cpp.

Referenced by CreateCommon().

◆ fromCD

void MusicCommon::fromCD ( void  )
protectedslot

Definition at line 2438 of file musiccommon.cpp.

Referenced by customEvent().

◆ allTracks

void MusicCommon::allTracks ( void  )
protectedslot

Definition at line 2432 of file musiccommon.cpp.

Referenced by customEvent().

◆ byArtist

void MusicCommon::byArtist ( void  )
protectedslot

Definition at line 2456 of file musiccommon.cpp.

Referenced by customEvent().

◆ byAlbum

void MusicCommon::byAlbum ( void  )
protectedslot

Definition at line 2469 of file musiccommon.cpp.

Referenced by customEvent().

◆ byGenre

void MusicCommon::byGenre ( void  )
protectedslot

Definition at line 2482 of file musiccommon.cpp.

Referenced by customEvent().

◆ byYear

void MusicCommon::byYear ( void  )
protectedslot

Definition at line 2495 of file musiccommon.cpp.

Referenced by customEvent().

◆ byTitle

void MusicCommon::byTitle ( void  )
protectedslot

Definition at line 2508 of file musiccommon.cpp.

Referenced by customEvent().

◆ doUpdatePlaylist

void MusicCommon::doUpdatePlaylist ( void  )
protectedslot

◆ showExitMenu()

void MusicCommon::showExitMenu ( void  )
protected

Definition at line 2301 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ showPlaylistOptionsMenu()

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

Definition at line 2521 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 165 of file musiccommon.cpp.

Referenced by CreateCommon(), and viewExited().

◆ getTimeString()

QString MusicCommon::getTimeString ( int  exTime,
int  maxTime 
)
staticprotected

Definition at line 2153 of file musiccommon.cpp.

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

◆ updateProgressBar()

void MusicCommon::updateProgressBar ( void  )
protected

Definition at line 915 of file musiccommon.cpp.

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

◆ setTrackOnLCD()

void MusicCommon::setTrackOnLCD ( MusicMetadata mdata)
staticprotected

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

Definition at line 2028 of file musiccommon.cpp.

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

◆ updatePlaylistStats()

void MusicCommon::updatePlaylistStats ( void  )
protected

◆ updateUIPlayedList()

void MusicCommon::updateUIPlayedList ( void  )
protected

Definition at line 2083 of file musiccommon.cpp.

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

◆ 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(), init(), and keyPressEvent().

◆ changeVolume()

void MusicCommon::changeVolume ( bool  up)
protected

Definition at line 876 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ changeSpeed()

void MusicCommon::changeSpeed ( bool  up)
staticprotected

Definition at line 888 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ toggleMute()

void MusicCommon::toggleMute ( void  )
protected

Definition at line 900 of file musiccommon.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ toggleUpmix()

void MusicCommon::toggleUpmix ( void  )
staticprotected

Definition at line 909 of file musiccommon.cpp.

Referenced by keyPressEvent().

◆ showVolume()

void MusicCommon::showVolume ( void  )
staticprotected

Definition at line 949 of file musiccommon.cpp.

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

◆ updateVolume()

void MusicCommon::updateVolume ( void  )
protected

Definition at line 1851 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ showSpeed()

void MusicCommon::showSpeed ( bool  show)
staticprotected

Definition at line 964 of file musiccommon.cpp.

Referenced by changeSpeed().

◆ startVisualizer()

void MusicCommon::startVisualizer ( void  )
protected

Definition at line 1020 of file musiccommon.cpp.

Referenced by customEvent(), and init().

◆ stopVisualizer()

void MusicCommon::stopVisualizer ( void  )
protected

◆ cycleVisualizer()

void MusicCommon::cycleVisualizer ( void  )
protected

Definition at line 990 of file musiccommon.cpp.

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

◆ switchVisualizer() [1/2]

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

Definition at line 969 of file musiccommon.cpp.

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

◆ switchVisualizer() [2/2]

void MusicCommon::switchVisualizer ( int  visual)
protected

Definition at line 974 of file musiccommon.cpp.

◆ playFirstTrack()

void MusicCommon::playFirstTrack ( )
staticprotected

Definition at line 2674 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

◆ restorePosition()

bool MusicCommon::restorePosition ( int  trackID)
protected

Definition at line 2640 of file musiccommon.cpp.

Referenced by doUpdatePlaylist().

Member Data Documentation

◆ m_parentScreen

MythScreenType* MusicCommon::m_parentScreen {nullptr}
protected

Definition at line 138 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 143 of file musiccommon.h.

Referenced by init().

◆ m_cycleVisualizer

bool MusicCommon::m_cycleVisualizer {false}
protected

Definition at line 144 of file musiccommon.h.

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

◆ m_randomVisualizer

bool MusicCommon::m_randomVisualizer {false}
protected

Definition at line 145 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 151 of file musiccommon.h.

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

◆ m_controlVolume

bool MusicCommon::m_controlVolume {true}
protected

Definition at line 153 of file musiccommon.h.

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

◆ m_currentTrack

int MusicCommon::m_currentTrack {0}
protected

◆ m_currentTime

int MusicCommon::m_currentTime {0}
protected

◆ m_maxTime

int MusicCommon::m_maxTime {0}
protected

Definition at line 157 of file musiccommon.h.

Referenced by customEvent(), seek(), seekforward(), stop(), updateProgressBar(), and updateTrackInfo().

◆ m_playlistTrackCount

uint MusicCommon::m_playlistTrackCount {0}
protected

Definition at line 159 of file musiccommon.h.

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

◆ m_playlistPlayedTime

uint MusicCommon::m_playlistPlayedTime {0}
protected

◆ m_playlistMaxTime

uint MusicCommon::m_playlistMaxTime {0}
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 171 of file musiccommon.h.

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

◆ m_infoText

MythUIText* MusicCommon::m_infoText {nullptr}
protected

Definition at line 172 of file musiccommon.h.

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

◆ m_visualText

MythUIText* MusicCommon::m_visualText {nullptr}
protected

Definition at line 173 of file musiccommon.h.

Referenced by CreateCommon(), and switchVisualizer().

◆ m_noTracksText

MythUIText* MusicCommon::m_noTracksText {nullptr}
protected

Definition at line 174 of file musiccommon.h.

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

◆ m_shuffleState

MythUIStateType* MusicCommon::m_shuffleState {nullptr}
protected

Definition at line 176 of file musiccommon.h.

Referenced by CreateCommon(), and updateShuffleMode().

◆ m_repeatState

MythUIStateType* MusicCommon::m_repeatState {nullptr}
protected

Definition at line 177 of file musiccommon.h.

Referenced by CreateCommon(), and updateRepeatMode().

◆ m_movingTracksState

MythUIStateType* MusicCommon::m_movingTracksState {nullptr}
protected

Definition at line 179 of file musiccommon.h.

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

◆ m_ratingState

MythUIStateType* MusicCommon::m_ratingState {nullptr}
protected

Definition at line 181 of file musiccommon.h.

Referenced by CreateCommon(), and updateTrackInfo().

◆ m_trackProgress

MythUIProgressBar* MusicCommon::m_trackProgress {nullptr}
protected

Definition at line 183 of file musiccommon.h.

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

◆ m_trackProgressText

MythUIText* MusicCommon::m_trackProgressText {nullptr}
protected

Definition at line 184 of file musiccommon.h.

Referenced by CreateCommon().

◆ m_trackSpeedText

MythUIText* MusicCommon::m_trackSpeedText {nullptr}
protected

Definition at line 185 of file musiccommon.h.

Referenced by CreateCommon().

◆ m_trackState

MythUIStateType* MusicCommon::m_trackState {nullptr}
protected

Definition at line 186 of file musiccommon.h.

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

◆ m_muteState

MythUIStateType* MusicCommon::m_muteState {nullptr}
protected

Definition at line 188 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_volumeText

MythUIText* MusicCommon::m_volumeText {nullptr}
protected

Definition at line 189 of file musiccommon.h.

Referenced by CreateCommon(), and updateVolume().

◆ m_playlistProgress

MythUIProgressBar* MusicCommon::m_playlistProgress {nullptr}
protected

Definition at line 191 of file musiccommon.h.

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

◆ m_prevButton

MythUIButton* MusicCommon::m_prevButton {nullptr}
protected

Definition at line 193 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_rewButton

MythUIButton* MusicCommon::m_rewButton {nullptr}
protected

Definition at line 194 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_pauseButton

MythUIButton* MusicCommon::m_pauseButton {nullptr}
protected

Definition at line 195 of file musiccommon.h.

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

◆ m_playButton

MythUIButton* MusicCommon::m_playButton {nullptr}
protected

Definition at line 196 of file musiccommon.h.

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

◆ m_stopButton

MythUIButton* MusicCommon::m_stopButton {nullptr}
protected

Definition at line 197 of file musiccommon.h.

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

◆ m_ffButton

MythUIButton* MusicCommon::m_ffButton {nullptr}
protected

Definition at line 198 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_nextButton

MythUIButton* MusicCommon::m_nextButton {nullptr}
protected

Definition at line 199 of file musiccommon.h.

Referenced by CreateCommon(), and keyPressEvent().

◆ m_coverartImage

MythUIImage* MusicCommon::m_coverartImage {nullptr}
protected

Definition at line 201 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 206 of file musiccommon.h.

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


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