VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

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

Classes

struct  FrameRange

Public Member Functions

 DtMovieUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtMovieUrlLabel ()
 DTOR.
virtual void setMovie (QMovie *movie)
 Override of QLabel mutator.
virtual void addUrl (const QString &url, int startFrame, int endFrame)
 Add a url and specify the animation frames for which the url should be used.
virtual void setUrl (const QString &url)
 Override of base class method.
virtual QString url () const
 Override of base class; returns the url associated with the current animation frame number.
virtual QString url (int frame) const
 Returns the url associated with a frame number.
virtual void removeUrl (const QString &url)
 Remove a url from consideration.
virtual void setInfiniteLoop (bool b)
 Indicate that the animation should run indefinitely.
- Public Member Functions inherited from makVrv::DtUrlLabel
 DtUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR.
virtual ~DtUrlLabel ()
 DTOR.

Protected Types

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

Protected Slots

void onMovieFinished ()
 Called by signal when an animation ends.
void updateTooltip (int frame)
 Called when the animation changes, to update the tooltip.

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)
 Override of base class functionality, a mouse release event causes the url specified to be activated.

Detailed Description

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

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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)