Kexi API Documentation (2.0 alpha)

PixmapCollection Class Reference

#include <pixmapcollection.h>

List of all members.


Detailed Description

A class that store pixmaps (by path or by name for KDE icons).

Definition at line 43 of file pixmapcollection.h.

Signals

void itemRenamed (const QString &oldName, const QString &newName)
void itemRemoved (const QString &name)

Public Member Functions

 PixmapCollection (const QString &collectionName, QObject *parent=0, const char *name=0)
 Pixmap Collection.
 ~PixmapCollection ()
QString addPixmapPath (const KURL &url)
QString addPixmapName (const QString &name, int size=KIcon::SizeMedium)
void removePixmap (const QString &name)
bool contains (const QString &name)
QPixmap getPixmap (const QString &name)
void save (QDomNode parentNode)
void load (QDomNode node)
QString collectionName ()

Protected Attributes

QString m_name
PixmapMap m_pixmaps

Friends

class PixmapCollectionEditor
class PixmapCollectionChooser


Constructor & Destructor Documentation

PixmapCollection::PixmapCollection const QString collectionName,
QObject *  parent = 0,
const char *  name = 0
 

Pixmap Collection.

Definition at line 43 of file pixmapcollection.cpp.

References m_name.

PixmapCollection::~PixmapCollection  )  [inline]
 

Definition at line 49 of file pixmapcollection.h.


Member Function Documentation

QString PixmapCollection::addPixmapName const QString name,
int  size = KIcon::SizeMedium
 

Definition at line 68 of file pixmapcollection.cpp.

References m_pixmaps.

Referenced by PixmapCollectionEditor::newItemByName().

QString PixmapCollection::addPixmapPath const KURL &  url  ) 
 

Definition at line 50 of file pixmapcollection.cpp.

References m_pixmaps.

Referenced by PixmapCollectionEditor::newItemByPath().

QString PixmapCollection::collectionName  )  [inline]
 

Definition at line 61 of file pixmapcollection.h.

Referenced by PixmapCollectionEditor::removeItem().

bool PixmapCollection::contains const QString name  ) 
 

Definition at line 109 of file pixmapcollection.cpp.

References m_pixmaps.

QPixmap PixmapCollection::getPixmap const QString name  ) 
 

Definition at line 92 of file pixmapcollection.cpp.

References m_pixmaps.

Referenced by PixmapCollectionChooser::getPixmap(), PixmapCollectionEditor::getPixmap(), and PixmapCollectionChooser::pixmap().

void PixmapCollection::itemRemoved const QString name  )  [signal]
 

void PixmapCollection::itemRenamed const QString oldName,
const QString newName
[signal]
 

void PixmapCollection::load QDomNode  node  ) 
 

Definition at line 141 of file pixmapcollection.cpp.

References m_pixmaps.

void PixmapCollection::removePixmap const QString name  ) 
 

Definition at line 86 of file pixmapcollection.cpp.

References m_pixmaps.

Referenced by PixmapCollectionEditor::removeItem().

void PixmapCollection::save QDomNode  parentNode  ) 
 

Definition at line 115 of file pixmapcollection.cpp.

References m_pixmaps.


Friends And Related Function Documentation

friend class PixmapCollectionChooser [friend]
 

Definition at line 72 of file pixmapcollection.h.

friend class PixmapCollectionEditor [friend]
 

Definition at line 71 of file pixmapcollection.h.


Member Data Documentation

QString PixmapCollection::m_name [protected]
 

Definition at line 68 of file pixmapcollection.h.

Referenced by PixmapCollection().

PixmapMap PixmapCollection::m_pixmaps [protected]
 

Definition at line 69 of file pixmapcollection.h.

Referenced by addPixmapName(), addPixmapPath(), contains(), getPixmap(), load(), PixmapCollectionEditor::PixmapCollectionEditor(), removePixmap(), PixmapCollectionEditor::renameCollectionItem(), save(), and PixmapCollectionChooser::slotUser1().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:14 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003