KDEUI
KPixmapRegionSelectorDialog Class Reference
#include <kpixmapregionselectordialog.h>

Detailed Description
A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image.If you want to use special features like forcing the selected area to have a fixed aspect ratio, you can use
- See also:
- pixmapRegionSelectorWidget() to get the pointer to the KPixmapRegionSelectorWidget object and set the desired options there.
Definition at line 42 of file kpixmapregionselectordialog.h.
Public Member Functions | |
KPixmapRegionSelectorDialog (QWidget *parent=0) | |
KPixmapRegionSelectorWidget * | pixmapRegionSelectorWidget () const |
~KPixmapRegionSelectorDialog () | |
Static Public Member Functions | |
static QImage | getSelectedImage (const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent=0L) |
static QImage | getSelectedImage (const QPixmap &pixmap, QWidget *parent=0L) |
static QRect | getSelectedRegion (const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent=0L) |
static QRect | getSelectedRegion (const QPixmap &pixmap, QWidget *parent=0L) |
Constructor & Destructor Documentation
KPixmapRegionSelectorDialog::KPixmapRegionSelectorDialog | ( | QWidget * | parent = 0 |
) | [explicit] |
The constructor of an empty KPixmapRegionSelectorDialog, you have to call later the setPixmap method of the KPixmapRegionSelectorWidget widget of the new object.
Definition at line 43 of file kpixmapregionselectordialog.cpp.
KPixmapRegionSelectorDialog::~KPixmapRegionSelectorDialog | ( | ) |
Member Function Documentation
QImage KPixmapRegionSelectorDialog::getSelectedImage | ( | const QPixmap & | pixmap, | |
int | aspectRatioWidth, | |||
int | aspectRatioHeight, | |||
QWidget * | parent = 0L | |||
) | [static] |
Creates a modal dialog, lets the user to select a region of the pixmap
with the same aspect ratio than aspectRatioWidth
x aspectRatioHeight
and returns when the dialog is closed.
- Returns:
- the selected image, or an invalid image if the user pressed the Cancel button.
Definition at line 133 of file kpixmapregionselectordialog.cpp.
QImage KPixmapRegionSelectorDialog::getSelectedImage | ( | const QPixmap & | pixmap, | |
QWidget * | parent = 0L | |||
) | [static] |
Creates a modal dialog, lets the user to select a region of the pixmap
and returns when the dialog is closed.
- Returns:
- the selected image, or an invalid image if the user pressed the Cancel button.
Definition at line 113 of file kpixmapregionselectordialog.cpp.
QRect KPixmapRegionSelectorDialog::getSelectedRegion | ( | const QPixmap & | pixmap, | |
int | aspectRatioWidth, | |||
int | aspectRatioHeight, | |||
QWidget * | parent = 0L | |||
) | [static] |
Creates a modal dialog, lets the user to select a region of the pixmap
with the same aspect ratio than aspectRatioWidth
x aspectRatioHeight
and returns when the dialog is closed.
- Returns:
- the selected rectangle, or an invalid rectangle if the user pressed the Cancel button.
Definition at line 91 of file kpixmapregionselectordialog.cpp.
QRect KPixmapRegionSelectorDialog::getSelectedRegion | ( | const QPixmap & | pixmap, | |
QWidget * | parent = 0L | |||
) | [static] |
Creates a modal dialog, lets the user to select a region of the pixmap
and returns when the dialog is closed.
- Returns:
- the selected rectangle, or an invalid rectangle if the user pressed the Cancel button.
Definition at line 70 of file kpixmapregionselectordialog.cpp.
KPixmapRegionSelectorWidget * KPixmapRegionSelectorDialog::pixmapRegionSelectorWidget | ( | ) | const |
- Returns:
- the KPixmapRegionSelectorWidget widget so that additional parameters can be set by using it.
Definition at line 65 of file kpixmapregionselectordialog.cpp.
The documentation for this class was generated from the following files: