DtUrlLabel that can display a movie and act as a hyperlink with url(s) conditioned on the current movie frame.
More...
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.
|
| | DtUrlLabel (QWidget *parent=0, Qt::WindowFlags f=0) |
| | CTOR.
|
| virtual | ~DtUrlLabel () |
| | DTOR.
|
Protected Slots |
| void | onMovieFinished () |
| | Called by signal when an animation ends.
|
| void | updateTooltip (int frame) |
| | Called when the animation changes, to update the tooltip.
|
Additional Inherited Members |
| 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
Constructor & Destructor Documentation
| makVrv::DtMovieUrlLabel::DtMovieUrlLabel |
( |
QWidget * |
parent = 0, |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
| virtual makVrv::DtMovieUrlLabel::~DtMovieUrlLabel |
( |
| ) |
|
|
virtual |
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 |
| bool makVrv::DtMovieUrlLabel::myInfiniteLoop |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrvCoreQt/DtMovieUrlLabel.h