kpixmapregionselectordialog.cpp
28 const char *name, bool modal ) : KDialogBase(parent, name, modal, i18n("Select Region of Image"), Help|Ok|Cancel, Ok, true )
64 TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
69 dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
106 TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent )
111 dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight);
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
void setMainWidget(TQWidget *widget)
Sets the main user definable widget.
Definition: kdialogbase.cpp:1431
static int spacingHint()
Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...
Definition: kdialog.cpp:110
A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image.
Definition: kpixmapregionselectordialog.h:43
~KPixmapRegionSelectorDialog()
The destructor of the dialog.
Definition: kpixmapregionselectordialog.cpp:39
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:43
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:86
KPixmapRegionSelectorWidget * pixmapRegionSelectorWidget() const
Definition: kpixmapregionselectordialog.h:61
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:27
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly wa...
Definition: kpixmapregionselectorwidget.h:45
TQImage selectedImage() const
Definition: kpixmapregionselectorwidget.cpp:396
TQRect unzoomedSelectedRegion() const
Returns the selected region ( in unzoomed, original pixmap coordinates )
Definition: kpixmapregionselectorwidget.cpp:388
void setSelectionAspectRatio(int width, int height)
Sets the aspect ration that the selected subimage should have.
Definition: kpixmapregionselectorwidget.cpp:402
void setPixmap(const TQPixmap &pixmap)
Sets the pixmap which will be shown for the user to select a region from.
Definition: kpixmapregionselectorwidget.cpp:67
void setMaximumWidgetSize(int width, int height)
Sets the maximum size for the widget.
Definition: kpixmapregionselectorwidget.cpp:412