• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Member Functions | Static Public Member Functions | Protected Attributes
KPixmapRegionSelectorDialog Class Reference

#include <kpixmapregionselectordialog.h>

Inheritance diagram for KPixmapRegionSelectorDialog:
KDialogBase KDialog TQDialog

List of all members.

Public Member Functions

 KPixmapRegionSelectorDialog (TQWidget *parent=0L, const char *name=0L, bool modal=false)
 ~KPixmapRegionSelectorDialog ()
KPixmapRegionSelectorWidget * pixmapRegionSelectorWidget () const

Static Public Member Functions

static TQRect getSelectedRegion (const TQPixmap &pixmap, TQWidget *parent=0L)
static TQRect getSelectedRegion (const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent=0L)
static TQImage getSelectedImage (const TQPixmap &pixmap, TQWidget *parent=0L)
static TQImage getSelectedImage (const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent=0L)

Protected Attributes

KPixmapRegionSelectorWidget * m_pixmapSelectorWidget

Detailed Description

A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image.

If you want to use special features like forcing the selected area to have a fixed aspect ratio, you can use

See also:
pixmapRegionSelectorWidget() to get the pointer to the KPixmapRegionSelectorWidget object and set the desired options there.

There are some convenience methods that allow to easily show a dialog for the user to select a region of an image, and just care about the selected image.

Author:
Antonio Larrosa <larrosa@kde.org>
Since:
3.4

Definition at line 42 of file kpixmapregionselectordialog.h.


Constructor & Destructor Documentation

KPixmapRegionSelectorDialog::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 of the KPixmapRegionSelectorWidget widget of the new object.

Definition at line 27 of file kpixmapregionselectordialog.cpp.

KPixmapRegionSelectorDialog::~KPixmapRegionSelectorDialog ( )

The destructor of the dialog.

Definition at line 39 of file kpixmapregionselectordialog.cpp.


Member Function Documentation

TQImage KPixmapRegionSelectorDialog::getSelectedImage ( const TQPixmap &  pixmap,
TQWidget *  parent = 0L 
) [static]

Creates a modal dialog, lets the user to select a region of the pixmap and returns when the dialog is closed.

Returns:
the selected image, or an invalid image if the user pressed the Cancel button.

Definition at line 86 of file kpixmapregionselectordialog.cpp.

TQImage KPixmapRegionSelectorDialog::getSelectedImage ( const TQPixmap &  pixmap,
int  aspectRatioWidth,
int  aspectRatioHeight,
TQWidget *  parent = 0L 
) [static]

Creates a modal dialog, lets the user to select a region of the pixmap with the same aspect ratio than aspectRatioWidth x aspectRatioHeight and returns when the dialog is closed.

Returns:
the selected image, or an invalid image if the user pressed the Cancel button.

Definition at line 106 of file kpixmapregionselectordialog.cpp.

TQRect KPixmapRegionSelectorDialog::getSelectedRegion ( const TQPixmap &  pixmap,
TQWidget *  parent = 0L 
) [static]

Creates a modal dialog, lets the user to select a region of the pixmap and returns when the dialog is closed.

Returns:
the selected rectangle, or an invalid rectangle if the user pressed the Cancel button.

Definition at line 43 of file kpixmapregionselectordialog.cpp.

TQRect KPixmapRegionSelectorDialog::getSelectedRegion ( const TQPixmap &  pixmap,
int  aspectRatioWidth,
int  aspectRatioHeight,
TQWidget *  parent = 0L 
) [static]

Creates a modal dialog, lets the user to select a region of the pixmap with the same aspect ratio than aspectRatioWidth x aspectRatioHeight and returns when the dialog is closed.

Returns:
the selected rectangle, or an invalid rectangle if the user pressed the Cancel button.

Definition at line 64 of file kpixmapregionselectordialog.cpp.

KPixmapRegionSelectorWidget* KPixmapRegionSelectorDialog::pixmapRegionSelectorWidget ( ) const [inline]
Returns:
the KPixmapRegionSelectorWidget widget so that additional parameters can be set by using it.

Definition at line 61 of file kpixmapregionselectordialog.h.


The documentation for this class was generated from the following files:
  • kpixmapregionselectordialog.h
  • kpixmapregionselectordialog.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.