kpixmapregionselectordialog.cpp
32 const char *name, bool modal ) : KDialogBase(parent, name, modal, i18n("Select Region of Image"), Help|Ok|Cancel, Ok, true )
68 TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
73 dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
110 TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
115 dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image.
Definition: kpixmapregionselectordialog.h:47
KPIM::KPixmapRegionSelectorWidget * pixmapRegionSelectorWidget() const
Definition: kpixmapregionselectordialog.h:65
~KPixmapRegionSelectorDialog()
The destructor of the dialog.
Definition: kpixmapregionselectordialog.cpp:43
static TQRect getSelectedRegion(const TQPixmap &pixmap, TQWidget *parent=0L)
Creates a modal dialog, lets the user to select a region of the pixmap and returns when the dialog is...
Definition: kpixmapregionselectordialog.cpp:47
static TQImage getSelectedImage(const TQPixmap &pixmap, TQWidget *parent=0L)
Creates a modal dialog, lets the user to select a region of the pixmap and returns when the dialog is...
Definition: kpixmapregionselectordialog.cpp:90
KPixmapRegionSelectorDialog(TQWidget *parent=0L, const char *name=0L, bool modal=false)
The constructor of an empty KPixmapRegionSelectorDialog, you have to call later the setPixmap method ...
Definition: kpixmapregionselectordialog.cpp:31
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly wa...
Definition: kpixmapregionselectorwidget.h:48
TQImage selectedImage() const
Definition: kpixmapregionselectorwidget.cpp:399
TQRect unzoomedSelectedRegion() const
Returns the selected region ( in unzoomed, original pixmap coordinates )
Definition: kpixmapregionselectorwidget.cpp:391
void setSelectionAspectRatio(int width, int height)
Sets the aspect ration that the selected subimage should have.
Definition: kpixmapregionselectorwidget.cpp:405
void setPixmap(const TQPixmap &pixmap)
Sets the pixmap which will be shown for the user to select a region from.
Definition: kpixmapregionselectorwidget.cpp:71
void setMaximumWidgetSize(int width, int height)
Sets the maximum size for the widget.
Definition: kpixmapregionselectorwidget.cpp:415