![]() |
![]() |
#include <Iguana/Studio/interface/IgQtAppImageService.h>
Public Member Functions | |
IgQtAppImageService (IgState *state) | |
QPixmap * | pixmapById (const int id) |
void | registerImage (const QPixmap *, const int id) |
void | registerImage (const QString &filename, const int id) |
void | registerImage (const char *data[], const int id) |
~IgQtAppImageService (void) | |
Private Types | |
typedef std::map< int, QPixmap * > | ImageMap |
Private Member Functions | |
IG_DECLARE_STATE_ELEMENT (IgQtAppImageService) | |
Private Attributes | |
ImageMap | m_images |
IgState * | m_state |
Definition at line 21 of file IgQtAppImageService.h.
typedef std::map<int, QPixmap *> IgQtAppImageService::ImageMap [private] |
Definition at line 40 of file IgQtAppImageService.h.
IgQtAppImageService::IgQtAppImageService | ( | IgState * | state | ) |
IgQtAppImageService::~IgQtAppImageService | ( | void | ) |
IgQtAppImageService::IG_DECLARE_STATE_ELEMENT | ( | IgQtAppImageService | ) | [private] |
QPixmap * IgQtAppImageService::pixmapById | ( | const int | id | ) |
Definition at line 71 of file IgQtAppImageService.cc.
References m_images.
Referenced by IgSpareWindow::initToolBar(), IgRPhiWindow::initToolBar(), IgLegoWindow::initToolBar(), IgRZWindow::initToolBar(), Ig3DWindow::initToolBar(), and Ig3DBaseWindow::initToolBar().
Definition at line 35 of file IgQtAppImageService.cc.
References m_images.
Referenced by IgStudioDriver::setupMainWindow().
00036 { 00037 QPixmap *pixmap = m_images[id]; 00038 00039 if (!pixmap) 00040 { 00041 pixmap = new QPixmap (data); 00042 m_images[id] = pixmap; 00043 } 00044 }
ImageMap IgQtAppImageService::m_images [private] |
Definition at line 41 of file IgQtAppImageService.h.
Referenced by pixmapById(), and registerImage().
IgState* IgQtAppImageService::m_state [private] |