kdeui
kpixmapregionselectordialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KPIXMAPREGIONSELECTORDIALOG_H__
00021 #define __KPIXMAPREGIONSELECTORDIALOG_H__
00022
00023 #include <qimage.h>
00024
00025 #include <kdialogbase.h>
00026 #include <kpixmapregionselectorwidget.h>
00027
00042 class KDEUI_EXPORT KPixmapRegionSelectorDialog : public KDialogBase
00043 {
00044 public:
00050 KPixmapRegionSelectorDialog(QWidget *parent=0L, const char *name=0L,
00051 bool modal = false );
00055 ~KPixmapRegionSelectorDialog();
00056
00061 KPixmapRegionSelectorWidget *pixmapRegionSelectorWidget() const
00062 { return m_pixmapSelectorWidget; }
00063
00071 static QRect getSelectedRegion(const QPixmap &pixmap, QWidget *parent = 0L );
00072
00081 static QRect getSelectedRegion(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
00082
00090 static QImage getSelectedImage(const QPixmap &pixmap, QWidget *parent = 0L );
00091
00100 static QImage getSelectedImage(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
00101
00102 protected:
00103 KPixmapRegionSelectorWidget *m_pixmapSelectorWidget;
00104 };
00105
00106
00107 #endif