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

ImageEdit Class Reference

#include </home/clem/local/src/opie/library/imageedit.h>

List of all members.

Public Member Functions

 ImageEdit (QWidget *parent=0, const char *name=0)
 ~ImageEdit ()
void setPixmap (const QPixmap &pm)
QPixmap pixmap () const

Protected Member Functions

void drawContents (QPainter *p, int cx, int cy, int cw, int ch)
void contentsMousePressEvent (QMouseEvent *e)
void contentsMouseMoveEvent (QMouseEvent *e)
void contentsMouseReleaseEvent (QMouseEvent *e)
void viewportResizeEvent (QResizeEvent *e)

Private Member Functions

void enlargeBuffer (const QSize &sz)

Private Attributes

QPoint lastPos
QPixmap buffer
ImageEditPrivate * d


Constructor & Destructor Documentation

ImageEdit::ImageEdit QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 22 of file imageedit.cpp.

References buffer, and size.

ImageEdit::~ImageEdit  ) 
 

Definition at line 29 of file imageedit.cpp.


Member Function Documentation

void ImageEdit::contentsMouseMoveEvent QMouseEvent *  e  )  [protected]
 

Definition at line 39 of file imageedit.cpp.

References buffer, and lastPos.

void ImageEdit::contentsMousePressEvent QMouseEvent *  e  )  [protected]
 

Definition at line 34 of file imageedit.cpp.

References lastPos.

void ImageEdit::contentsMouseReleaseEvent QMouseEvent *  e  )  [protected]
 

Definition at line 49 of file imageedit.cpp.

void ImageEdit::drawContents QPainter *  p,
int  cx,
int  cy,
int  cw,
int  ch
[protected]
 

Definition at line 72 of file imageedit.cpp.

References buffer.

void ImageEdit::enlargeBuffer const QSize &  sz  )  [private]
 

Definition at line 58 of file imageedit.cpp.

References buffer, and p.

Referenced by setPixmap(), and viewportResizeEvent().

QPixmap ImageEdit::pixmap  )  const
 

Definition at line 92 of file imageedit.cpp.

References buffer.

void ImageEdit::setPixmap const QPixmap &  pm  ) 
 

Definition at line 77 of file imageedit.cpp.

References buffer, enlargeBuffer(), FALSE, and p.

void ImageEdit::viewportResizeEvent QResizeEvent *  e  )  [protected]
 

Definition at line 53 of file imageedit.cpp.

References enlargeBuffer().


Member Data Documentation

QPixmap ImageEdit::buffer [private]
 

Definition at line 47 of file imageedit.h.

Referenced by contentsMouseMoveEvent(), drawContents(), enlargeBuffer(), ImageEdit(), pixmap(), and setPixmap().

ImageEditPrivate* ImageEdit::d [private]
 

Definition at line 48 of file imageedit.h.

QPoint ImageEdit::lastPos [private]
 

Definition at line 46 of file imageedit.h.

Referenced by contentsMouseMoveEvent(), and contentsMousePressEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:35:21 2005 for OPIE by  doxygen 1.4.2