Playlist Class Reference

List of all members.

Public Member Functions

def __init__
def AppendTracks
def GetCurrentTrack
def GetSelectedTracks
def GetState
def GotoNextTrack
def RemoveSelected
def ScrollToCurrent
def SetCurrentTrack
def SetState
def Shuffle

Private Member Functions

def _DragData
def _DragReceive
def _FillAndHighlight
def _onClick
def _Refresh

Private Attributes


Detailed Description

One of the playlists in tabs on the right of the window.

Definition at line 11 of file

Member Function Documentation

def __init__ (   self,

Pass me with a gtk.ListView to be in.

Definition at line 13 of file

def _DragData (   self,
) [private]

Callback for drag and drop. Provides a pickled list of Track objects.

Definition at line 178 of file

def _DragReceive (   self,
) [private]

Callback for drag and drop. Expects drag data to be a pickled
list of Track objects, as provided by CollectionTree.DragData()
or by self.DragData().

Definition at line 143 of file

def _FillAndHighlight (   self,
) [private]

Private, for use by the renderer to extract text from the Track object
and draw the current track highlighted.

Definition at line 96 of file

def _onClick (   self,
) [private]

Handler for clicks on playlist. Responds to right-click by
popping-up the context menu.

Definition at line 219 of file

def _Refresh (   self  )  [private]

Forces a redraw (GTK doesn't always know we need one).

Definition at line 78 of file

def AppendTracks (   self,

Appends 'tracks' to the playlist. Returns an iterator to
the first Track appended.

Definition at line 126 of file

def GetCurrentTrack (   self  ) 

Returns the current (highlighted) Track object if it
exists, None otherwise.

Definition at line 44 of file

def GetSelectedTracks (   self  ) 

Returns a list of Track objects representing the selected tracks.

Definition at line 171 of file

def GetState (   self  ) 

Returns a representation of the playlist's state.
Form is currently ([tracks],currentpath).

Definition at line 183 of file

def GotoNextTrack (   self  ) 

Moves onto the next track in the playlist if possible.
Returns a boolean indicating success.

Definition at line 83 of file

def RemoveSelected (   self  ) 

Removes the currently selected tracks from the playlist.
Returns whether the currently playing track was removed.

Definition at line 202 of file

def ScrollToCurrent (   self  ) 

Scroll the playlist until the current track is 1/3 of the way down.

Definition at line 119 of file

def SetCurrentTrack (   self,

Sets the current track to the one pointed to by the gtk iterator 'it'.
'it' may be None.

Definition at line 51 of file

def SetState (   self,

Initialises playlist to the state returned by GetState().

Definition at line 191 of file

def Shuffle (   self  ) 

Removes everything from the playlist and puts it back in a random order.

Definition at line 64 of file

Member Data Documentation

_curtrackref [private]

Definition at line 32 of file

_store [private]

Definition at line 16 of file

_view [private]

Definition at line 15 of file

The documentation for this class was generated from the following file:
Generated on Mon Aug 6 21:24:45 2007 for plai by  doxygen 1.5.1