KPIM::KPixmapRegionSelectorWidget Class Reference
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly way to select a rectangular subregion of the pixmap. More...
#include <kpixmapregionselectorwidget.h>
Inherits QWidget.
Public Slots
- void rotateClockwise ()
- void rotateCounterclockwise ()
Public Member Functions
- KPixmapRegionSelectorWidget (QWidget *parent=0L, const char *name=0L)
- ~KPixmapRegionSelectorWidget ()
- void setPixmap (const QPixmap &pixmap)
- QPixmap pixmap () const
- void setSelectedRegion (const QRect &rect)
- QRect selectedRegion () const
- QRect unzoomedSelectedRegion () const
- void resetSelection ()
- QImage selectedImage () const
- void setSelectionAspectRatio (int width, int height)
- void setFreeSelectionAspectRatio ()
- void setMaximumWidgetSize (int width, int height)
- void rotate (KImageEffect::RotateDirection direction)
Protected Member Functions
- virtual KPopupMenu * createPopupMenu ()
Detailed Description
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly way to select a rectangular subregion of the pixmap.NOTE: There are two copies of this .h and the .cpp file, with subtle differences. One copy is in kdelibs/kdeui, and the other copy is in kdepim/libkdepim This is because kdepim has to remain backwards compatible. Any changes to either file should be made to the other.
- Author:
- Antonio Larrosa <larrosa@kde.org>
- Since:
- 3.4
Constructor & Destructor Documentation
|
Constructor for a KPixmapRegionSelectorWidget.
|
|
Destructor for a KPixmapRegionSelectorWidget.
|
Member Function Documentation
|
Sets the pixmap which will be shown for the user to select a region from.
|
|
|
|
Sets the selected region to be
|
|
Returns the selected region ( in zoomed pixmap coordinates ).
|
|
Returns the selected region ( in unzoomed, original pixmap coordinates ).
|
|
Resets the selection to use the whole image.
|
|
|
|
Sets the aspect ration that the selected subimage should have.
The way to select it, is specifying an example valid
|
|
Allows the user to do a selection which has any aspect ratio. This is the default.
|
|
Sets the maximum size for the widget. If the image is larger than this (either horizontally or vertically), it's scaled to adjust to the maximum size (preserving the aspect ratio) |
|
Rotates the image as specified by the
|
|
Rotates the current image 90º clockwise.
|
|
Rotates the current image 90º counterclockwise.
|
|
Creates a KPopupMenu with the menu that appears when clicking with the right button on the label.
|
The documentation for this class was generated from the following files:
- kpixmapregionselectorwidget.h
- kpixmapregionselectorwidget.cpp