libkdepim
kpixmapregionselectordialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __KPIXMAPREGIONSELECTORDIALOG_H__
00023 #define __KPIXMAPREGIONSELECTORDIALOG_H__
00024
00025 #include <kdialogbase.h>
00026 #include <libkdepim/kpixmapregionselectorwidget.h>
00027 #include <qimage.h>
00028 #include <kdepimmacros.h>
00029
00030 namespace KPIM {
00031
00046 class KDE_EXPORT KPixmapRegionSelectorDialog : public KDialogBase
00047 {
00048 public:
00054 KPixmapRegionSelectorDialog(QWidget *parent=0L, const char *name=0L,
00055 bool modal = false );
00059 ~KPixmapRegionSelectorDialog();
00060
00065 KPIM::KPixmapRegionSelectorWidget *pixmapRegionSelectorWidget() const
00066 { return m_pixmapSelectorWidget; };
00067
00075 static QRect getSelectedRegion(const QPixmap &pixmap, QWidget *parent = 0L );
00076
00085 static QRect getSelectedRegion(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
00086
00094 static QImage getSelectedImage(const QPixmap &pixmap, QWidget *parent = 0L );
00095
00104 static QImage getSelectedImage(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
00105
00106 protected:
00107 KPIM::KPixmapRegionSelectorWidget *m_pixmapSelectorWidget;
00108 };
00109
00110 }
00111
00112 #endif
|