VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Slots | Protected Attributes
makVrv::DtMovieUrlLabel Class Reference

DtUrlLabel that can display a movie and act as a hyperlink with url(s) conditioned on the current movie frame.

Inheritance diagram for makVrv::DtMovieUrlLabel:
Inheritance graph
[legend]

Classes

struct  FrameRange
 

Public Member Functions

 DtMovieUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DtMovieUrlLabel ()
 
virtual void setMovie (QMovie *movie)
 
virtual void addUrl (const QString &url, int startFrame, int endFrame)
 
virtual void setUrl (const QString &url)
 
virtual QString url () const
 
virtual QString url (int frame) const
 
virtual void removeUrl (const QString &url)
 
virtual void setInfiniteLoop (bool b)
 
- Public Member Functions inherited from makVrv::DtUrlLabel
 DtUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DtUrlLabel ()
 

Protected Types

typedef boost::unordered_map
< std::string, FrameRange
UrlFramesMap
 

Protected Slots

void onMovieFinished ()
 
void updateTooltip (int frame)
 

Protected Attributes

QMovie * myMovie
 
UrlFramesMap myUrlFramesMap
 
bool myInfiniteLoop
 
- Protected Attributes inherited from makVrv::DtUrlLabel
QString myUrl
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtUrlLabel
virtual void mouseReleaseEvent (QMouseEvent *ev)
 

Member Typedef Documentation

typedef boost::unordered_map<std::string, FrameRange> makVrv::DtMovieUrlLabel::UrlFramesMap
protected

Constructor & Destructor Documentation

makVrv::DtMovieUrlLabel::DtMovieUrlLabel ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

CTOR.

virtual makVrv::DtMovieUrlLabel::~DtMovieUrlLabel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtMovieUrlLabel::setMovie ( QMovie *  movie)
virtual

Override of QLabel mutator. Unlike the base QLabel, DtMovieUrlLabel takes control of this resource! Do not delete (unless you call setMovie( 0 ) first.

virtual void makVrv::DtMovieUrlLabel::addUrl ( const QString &  url,
int  startFrame,
int  endFrame 
)
virtual

Add a url and specify the animation frames for which the url should be used. -1 is a special 'last frame' indicator.

virtual void makVrv::DtMovieUrlLabel::setUrl ( const QString &  url)
virtual

Override of base class method. Calling setUrl is equivalent to calling addUrl with startFrame=0 and endFrame=-1.

Reimplemented from makVrv::DtUrlLabel.

virtual QString makVrv::DtMovieUrlLabel::url ( ) const
virtual

Override of base class; returns the url associated with the current animation frame number.

Reimplemented from makVrv::DtUrlLabel.

virtual QString makVrv::DtMovieUrlLabel::url ( int  frame) const
virtual

Returns the url associated with a frame number.

virtual void makVrv::DtMovieUrlLabel::removeUrl ( const QString &  url)
virtual

Remove a url from consideration.

virtual void makVrv::DtMovieUrlLabel::setInfiniteLoop ( bool  b)
virtual

Indicate that the animation should run indefinitely. Useful for cases where the animation itself does not indicate infinite looping. Note that if the animation itself indicates that it should be looped indefinitely, this setting will be ignored.

void makVrv::DtMovieUrlLabel::onMovieFinished ( )
protectedslot

Called by signal when an animation ends. If infiniteLoop is set to true, this will restart the animation.

void makVrv::DtMovieUrlLabel::updateTooltip ( int  frame)
protectedslot

Called when the animation changes, to update the tooltip.

Member Data Documentation

QMovie* makVrv::DtMovieUrlLabel::myMovie
protected
UrlFramesMap makVrv::DtMovieUrlLabel::myUrlFramesMap
protected
bool makVrv::DtMovieUrlLabel::myInfiniteLoop
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)