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

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