tdeui
kpixmapregionselectordialog.h
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 <tqimage.h>
00024
00025 #include <kdialogbase.h>
00026 #include <kpixmapregionselectorwidget.h>
00027
00042 class TDEUI_EXPORT KPixmapRegionSelectorDialog : public KDialogBase
00043 {
00044 public:
00050 KPixmapRegionSelectorDialog(TQWidget *parent=0L, const char *name=0L,
00051 bool modal = false );
00055 ~KPixmapRegionSelectorDialog();
00056
00061 KPixmapRegionSelectorWidget *pixmapRegionSelectorWidget() const
00062 { return m_pixmapSelectorWidget; }
00063
00071 static TQRect getSelectedRegion(const TQPixmap &pixmap, TQWidget *parent = 0L );
00072
00081 static TQRect getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent = 0L );
00082
00090 static TQImage getSelectedImage(const TQPixmap &pixmap, TQWidget *parent = 0L );
00091
00100 static TQImage getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent = 0L );
00101
00102 protected:
00103 KPixmapRegionSelectorWidget *m_pixmapSelectorWidget;
00104 };
00105
00106
00107 #endif