added pop-up panel for playlist editing functions move up, move down,

and remove
This commit is contained in:
fgerlits 2005-07-21 15:14:40 +00:00
parent 19dd690732
commit 06d4859af2
8 changed files with 334 additions and 100 deletions

View file

@ -22,7 +22,7 @@
Author : $Author: fgerlits $
Version : $Revision: 1.39 $
Version : $Revision: 1.40 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/Playlist.h,v $
------------------------------------------------------------------------------*/
@ -128,7 +128,7 @@ using namespace boost::posix_time;
* </code></pre>
*
* @author $Author: fgerlits $
* @version $Revision: 1.39 $
* @version $Revision: 1.40 $
*/
class Playlist : public Configurable,
public Playable
@ -176,17 +176,6 @@ class Playlist : public Configurable,
*/
Ptr<PlaylistElementListType>::Ref elementList;
/**
* Add a new playlist element to the playlist.
*
* @param playlistElement the new playlist element to be added
* @exception std::invalid_argument if the playlist already contains
* a playlist element with the same relative offset
*/
void
addPlaylistElement(Ptr<PlaylistElement>::Ref playlistElement)
throw (std::invalid_argument);
/**
* A saved copy of this playlist.
*/
@ -626,6 +615,15 @@ class Playlist : public Configurable,
= Ptr<FadeInfo>::Ref())
throw ();
/**
* Add a new playlist element to the playlist.
*
* @param playlistElement the new playlist element to be added
*/
void
addPlaylistElement(Ptr<PlaylistElement>::Ref playlistElement)
throw ();
/**
* Set the fade in / fade out info for a playlist element.
*

View file

@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author : $Author: maroy $
Version : $Revision: 1.13 $
Author : $Author: fgerlits $
Version : $Revision: 1.14 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/include/LiveSupport/Core/PlaylistElement.h,v $
------------------------------------------------------------------------------*/
@ -103,8 +103,8 @@ class Playlist;
* &lt;!ATTLIST playlistElement relativeOffset NMTOKEN #REQUIRED &gt;
* </code></pre>
*
* @author $Author: maroy $
* @version $Revision: 1.13 $
* @author $Author: fgerlits $
* @version $Revision: 1.14 $
*/
class PlaylistElement : public Configurable
{
@ -297,6 +297,21 @@ class PlaylistElement : public Configurable
return id;
}
/**
* Set the relative offset of the playlist element.
* Note: this is very dangerous; use only if you know what you are
* doing. Never ever change the relative offset of a PlaylistElement
* which is contained in a Playlist.
*
* @param newOffset the new relative offset of the element.
*/
void
setRelativeOffset(Ptr<time_duration>::Ref newOffset)
throw ()
{
relativeOffset = newOffset;
}
/**
* Return the relative offset of the playlist element.
*

View file

@ -22,7 +22,7 @@
Author : $Author: fgerlits $
Version : $Revision: 1.38 $
Version : $Revision: 1.39 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/core/src/Playlist.cxx,v $
------------------------------------------------------------------------------*/
@ -431,7 +431,7 @@ Playlist :: configure(const xmlpp::Element & element)
*----------------------------------------------------------------------------*/
void
Playlist::addPlaylistElement(Ptr<PlaylistElement>::Ref playlistElement)
throw (std::invalid_argument)
throw ()
{
Ptr<const time_duration>::Ref relativeOffset
= playlistElement->getRelativeOffset();