#include <TQtClientGuard.h>
Public Member Functions | |
TQtPixmapGuard () | |
virtual | ~TQtPixmapGuard () |
QPixmap * | Create (int w, int h, int depth=-1) |
QPixmap * | Create (const QString &fileName, const char *format=0) |
QPixmap * | Create (int w, int h, const uchar *bits, bool isXbitmap=TRUE) |
QPixmap * | Create (const QPixmap &src) |
QBitmap * | Create (const QBitmap &src) |
QPixmap * | Create (const char *xpm[]) |
void | Delete (QPixmap *w) |
QPixmap * | Pixmap (Pixmap_t id, bool needBitmap=kFALSE) |
QPixmap * | Find (Window_t id) |
void | Add (QPixmap *w) |
Protected Slots | |
void | Disconnect () |
Protected Member Functions | |
void | Disconnect (QPixmap *w, int found=-1) |
void | SetCurrent (int found) |
Private Member Functions | |
TQtPixmapGuard & | operator= (const TQtPixmapGuard &) |
Private Attributes | |
QPtrList< QPixmap > | fQClientGuard |
int | fDeadCounter |
int | fLastFound |
Definition at line 52 of file TQtClientGuard.h.
TQtPixmapGuard::TQtPixmapGuard | ( | ) | [inline] |
Definition at line 65 of file TQtClientGuard.h.
virtual TQtPixmapGuard::~TQtPixmapGuard | ( | ) | [inline, virtual] |
Definition at line 66 of file TQtClientGuard.h.
TQtPixmapGuard& TQtPixmapGuard::operator= | ( | const TQtPixmapGuard & | ) | [private] |
QPixmap * TQtPixmapGuard::Create | ( | int | w, | |
int | h, | |||
int | depth = -1 | |||
) |
Definition at line 186 of file TQtClientGuard.cxx.
Referenced by TGQt::CreatePictureFromData(), TGQt::CreatePictureFromFile(), TGQt::CreatePixmap(), FillPixmapAttribute(), and TGQt::ReadPictureDataFromFile().
QPixmap * TQtPixmapGuard::Create | ( | const QString & | fileName, | |
const char * | format = 0 | |||
) |
QPixmap * TQtPixmapGuard::Create | ( | const QPixmap & | src | ) |
QBitmap * TQtPixmapGuard::Create | ( | const QBitmap & | src | ) |
QPixmap * TQtPixmapGuard::Create | ( | const char * | xpm[] | ) |
void TQtPixmapGuard::Delete | ( | QPixmap * | w | ) |
Definition at line 234 of file TQtClientGuard.cxx.
References Disconnect().
Referenced by TGQt::CreatePictureFromData(), TGQt::CreatePictureFromFile(), TGQt::DeletePictureData(), TGQt::DeletePixmap(), and TGQt::ReadPictureDataFromFile().
Definition at line 269 of file TQtClientGuard.cxx.
References fQClientGuard, and SetCurrent().
Referenced by TGQt::CreatePictureFromData(), TGQt::CreatePictureFromFile(), FillPixmapAttribute(), TGQt::SetIconPixmap(), and TGQt::SetWindowBackgroundPixmap().
QPixmap * TQtPixmapGuard::Find | ( | Window_t | id | ) |
void TQtPixmapGuard::Add | ( | QPixmap * | w | ) |
Definition at line 170 of file TQtClientGuard.cxx.
References fQClientGuard, and SetCurrent().
Referenced by Create(), and TGQt::CreatePixmapFromData().
void TQtPixmapGuard::Disconnect | ( | QPixmap * | w, | |
int | found = -1 | |||
) | [protected] |
Definition at line 244 of file TQtClientGuard.cxx.
References fDeadCounter, fQClientGuard, and SetCurrent().
void TQtPixmapGuard::SetCurrent | ( | int | found | ) | [inline, protected] |
Definition at line 82 of file TQtClientGuard.h.
References fLastFound.
Referenced by Add(), Disconnect(), and Pixmap().
void TQtPixmapGuard::Disconnect | ( | ) | [protected, slot] |
Definition at line 302 of file TQtClientGuard.cxx.
References fQClientGuard, SetCurrent(), and w.
Referenced by Delete().
QPtrList<QPixmap> TQtPixmapGuard::fQClientGuard [mutable, private] |
Definition at line 57 of file TQtClientGuard.h.
Referenced by Add(), Disconnect(), Find(), and Pixmap().
int TQtPixmapGuard::fDeadCounter [private] |
int TQtPixmapGuard::fLastFound [private] |