kpixmapregionselectordialog.h
/* This file is part of the KDE libraries
Copyright (C) 2004 Antonio Larrosa <larrosa@kde.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __KPIXMAPREGIONSELECTORDIALOG_H__
#define __KPIXMAPREGIONSELECTORDIALOG_H__
#include <qimage.h>
#include <kdialogbase.h>
#include <kpixmapregionselectorwidget.h>
class KDEUI_EXPORT KPixmapRegionSelectorDialog : public KDialogBase
{
public:
KPixmapRegionSelectorDialog(QWidget *parent=0L, const char *name=0L,
bool modal = false );
~KPixmapRegionSelectorDialog();
KPixmapRegionSelectorWidget *pixmapRegionSelectorWidget() const
{ return m_pixmapSelectorWidget; }
static QRect getSelectedRegion(const QPixmap &pixmap, QWidget *parent = 0L );
static QRect getSelectedRegion(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
static QImage getSelectedImage(const QPixmap &pixmap, QWidget *parent = 0L );
static QImage getSelectedImage(const QPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, QWidget *parent = 0L );
protected:
KPixmapRegionSelectorWidget *m_pixmapSelectorWidget;
};
#endif
KPixmapRegionSelectorDialog
A dialog that uses a KPixmapRegionSelectorWidget to allow the user to select a region of an image...
Definition: kpixmapregionselectordialog.h:42
KPixmapRegionSelectorDialog::pixmapRegionSelectorWidget
KPixmapRegionSelectorWidget * pixmapRegionSelectorWidget() const
Definition: kpixmapregionselectordialog.h:61
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
KPixmapRegionSelectorWidget
KPixmapRegionSelectorWidget is a widget that shows a picture and provides the user with a friendly wa...
Definition: kpixmapregionselectorwidget.h:44

KDE Home | KDE Accessibility Home | Description of Access Keys