ImageRenderer

The ImageRenderer class fetches, decodes, and displays a single inlined image. More...

Publicly inherits FormObjectRenderer.

Public Methods

ImageRenderer( QString src, int width, int height, bool ismap, bool isSubmit, QString url, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );
boolisMap( );
boolisSubmit( );
virtual boolredraw( );
voidrepaint( QPainter& p, const Rect& r );
voidreset( );
voidsetX( int x );
voidsetY( int y );
QStringvalue( );
virtual ~ImageRenderer( );

Public Slots

voidendOfData( );
voidstartOfData( Request* req, QString mediaType, QString mediaSubtype, int size );

Private Data Members

ImageDecoder*_decoder;
bool_isSubmit;
bool_ismap;
QString_src;
QString_url;
int_x;
int_y;

Detailed Documentation

The ImageRenderer class fetches, decodes, and displays a single inlined image.

The ImageRenderer class creates a request for the image data, and creates an appropriate ImageDecoder to process the data. The image decoder is selected based on the Internet media type of the image data stream.

Public Methods Documentation

ImageRenderer ( QString src, int width, int height, bool ismap, bool isSubmit, QString url, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? );

Create a new ImageReneder. The src specifies the url for the image data. The width and height parameters give the width and height that the image should be. A request is made for the image data.

virtual bool redraw ( );

Set our minimum and maximum width to be the width of our QWidget.

virtual ~ImageRenderer ( );

Free the pixmap containing the image.

Public Slots Documentation

void startOfData ( Request* req, QString mediaType, QString mediaSubtype, int size );

Create an appropriate ImageDecoder based on the Internet media type of data stream.


Return to Index.
Automatically generated on Aug 11 23:32