Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Ui::OPixmapProvider Class Reference

an abstract interface for looking up icons More...

#include </home/clem/local/src/opie/libopie2/opieui/opixmapprovider.h>

List of all members.

Public Member Functions

virtual ~OPixmapProvider ()
virtual QPixmap pixmapFor (const QString &text, int size=0)=0

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Private Attributes

Private * d


Detailed Description

an abstract interface for looking up icons

Todo:
make usefull A tiny abstract class with just one method: pixmapFor()
It will be called whenever an icon is searched for text.

Used e.g. by KHistoryCombo

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 40 of file opixmapprovider.h.


Constructor & Destructor Documentation

OPixmapProvider::~OPixmapProvider  )  [virtual]
 

Definition at line 25 of file opixmapprovider.cpp.


Member Function Documentation

virtual QPixmap Opie::Ui::OPixmapProvider::pixmapFor const QString text,
int  size = 0
[pure virtual]
 

You may subclass this and return a pixmap of size size for text.

Parameters:
text the text that is associated with the pixmap
size the size of the icon in pixels, 0 for defaylt size. See KIcon::StdSize.
Returns:
the pixmap for the arguments, or null if there is none

void OPixmapProvider::virtual_hook int  id,
void *  data
[protected, virtual]
 

Definition at line 27 of file opixmapprovider.cpp.


Member Data Documentation

Private* Opie::Ui::OPixmapProvider::d [private]
 

Definition at line 55 of file opixmapprovider.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:59 2005 for OPIE by  doxygen 1.4.2