Provides a way to install logo pictures to the application main window. More...
#include <QtxLogoMgr.h>

Classes | |
| class | LogoBox |
| Logo images container. More... | |
| struct | LogoInfo |
Public Member Functions | |
| QtxLogoMgr (QMenuBar *) | |
| Constructor. More... | |
| virtual | ~QtxLogoMgr () |
| Destructor. More... | |
| int | count () const |
| Get number of logo images. More... | |
| void | insert (const QString &, QMovie *, const int=-1) |
| Insert new animated logo to the menu bar area. More... | |
| void | insert (const QString &, const QPixmap &, const int=-1) |
| Insert new logo pixmap to the menu bar area. More... | |
| void | remove (const QString &) |
| Remove a logo. More... | |
| void | clear () |
| Removes all logos. More... | |
| void | startAnimation (const QString &=QString()) |
| Start the animation of movie logo. More... | |
| void | stopAnimation (const QString &=QString()) |
| Stop the animation of movie logo. More... | |
| void | pauseAnimation (const bool, const QString &=QString()) |
| Pause/resume the animation of movie logo. More... | |
| QMenuBar * | menuBar () const |
| Get menu bar. More... | |
Private Types | |
| typedef QList< LogoInfo > | LogoList |
Private Member Functions | |
| void | generate () |
| Regenerate logo manager widget contents. More... | |
| int | find (const QString &) const |
| Search the logo by the specified id. More... | |
| LogoInfo & | insert (const QString &, const int) |
| Insert new logo information structure into the logos list. More... | |
| void | movies (const QString &, QList< QMovie * > &) const |
| Get movie logos by specified id. More... | |
Private Attributes | |
| LogoBox * | myBox |
| widget containing logox More... | |
| LogoList | myLogos |
| list of logo data More... | |
The class includes the following functionality:
|
private |
| QtxLogoMgr::QtxLogoMgr | ( | QMenuBar * | mb | ) |
| mb | parent menu bar |
References myBox.
|
virtual |
| void QtxLogoMgr::clear | ( | ) |
References generate(), and myLogos.
| int QtxLogoMgr::count | ( | ) | const |
References myLogos.
|
private |
|
private |
Insert logo to menu bar if it not yet done, layout the widget.
References menuBar(), myBox, myLogos, and QtxLogoMgr::LogoBox::setLabels().
| id | unique string identifier of the logo |
| pix | logo movie |
| index | logo position (if < 0, logo is added to the end) |
References generate(), and QtxLogoMgr::LogoInfo::mov.
| id | unique string identifier of the logo |
| pix | logo pixmap |
| index | logo position (if < 0, logo is added to the end) |
References generate(), insert(), and QtxLogoMgr::LogoInfo::pix.
|
private |
| id | unique string identifier of the logo |
| index | logo position (if < 0, logo is added to the end) |
References find(), QtxLogoMgr::LogoInfo::id, QtxLogoMgr::LogoInfo::mov, and myLogos.
| QMenuBar * QtxLogoMgr::menuBar | ( | ) | const |
References QtxLogoMgr::LogoBox::menuBar(), and myBox.
If id is empty, all movie logos are returned.
| id | logo identifier |
| lst | list of movies, which satisfy the id |
References myLogos.
If pause is true, the animation is paused; otherwise it is resumed.
If id is empty, the operation is performed for all movis logos.
| pause | if true, pause animation, otherwise resume it |
| id | logo identifier |
References movies().
| void QtxLogoMgr::remove | ( | const QString & | id | ) |
| id | logo identifier |
References find(), generate(), and myLogos.
| void QtxLogoMgr::startAnimation | ( | const QString & | id = QString() | ) |
If id is empty, all movie logos animation are started.
| id | logo identifier |
References movies().
| void QtxLogoMgr::stopAnimation | ( | const QString & | id = QString() | ) |
If id is empty, all movie logos animation are stopped.
| id | logo identifier |
References movies().
|
private |
|
private |