From e16866e072f94410321d70daedbcb855ea878cac Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:56:40 -0600 Subject: Actually move the kde files that were renamed in the last commit --- kdeui/kpixmapregionselectordialog.cpp | 127 ---------------------------------- 1 file changed, 127 deletions(-) delete mode 100644 kdeui/kpixmapregionselectordialog.cpp (limited to 'kdeui/kpixmapregionselectordialog.cpp') diff --git a/kdeui/kpixmapregionselectordialog.cpp b/kdeui/kpixmapregionselectordialog.cpp deleted file mode 100644 index c394af0f3..000000000 --- a/kdeui/kpixmapregionselectordialog.cpp +++ /dev/null @@ -1,127 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2004 Antonio Larrosa -#include -#include -#include -#include - -KPixmapRegionSelectorDialog::KPixmapRegionSelectorDialog(TQWidget *parent, - const char *name, bool modal ) : KDialogBase(parent, name, modal, i18n("Select Region of Image"), Help|Ok|Cancel, Ok, true ) -{ - TQVBox *vbox=new TQVBox(this); - new TQLabel(i18n("Please click and drag on the image to select the region of interest:"), vbox); - m_pixmapSelectorWidget= new KPixmapRegionSelectorWidget(vbox); - - vbox->setSpacing( KDialog::spacingHint() ); - - setMainWidget(vbox); -} - -KPixmapRegionSelectorDialog::~KPixmapRegionSelectorDialog() -{ -} - -TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, TQWidget *parent ) -{ - KPixmapRegionSelectorDialog dialog(parent); - - dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap); - - TQDesktopWidget desktopWidget; - TQRect screen=desktopWidget.availableGeometry(); - dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize( - (int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5)); - - int result = dialog.exec(); - - TQRect rect; - - if ( result == TQDialog::Accepted ) - rect = dialog.pixmapRegionSelectorWidget()->unzoomedSelectedRegion(); - - return rect; -} - -TQRect KPixmapRegionSelectorDialog::getSelectedRegion(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent ) -{ - KPixmapRegionSelectorDialog dialog(parent); - - dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap); - dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight); - - TQDesktopWidget desktopWidget; - TQRect screen=desktopWidget.availableGeometry(); - dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize( - (int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5)); - - int result = dialog.exec(); - - TQRect rect; - - if ( result == TQDialog::Accepted ) - rect = dialog.pixmapRegionSelectorWidget()->unzoomedSelectedRegion(); - - return rect; -} - -TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, TQWidget *parent ) -{ - KPixmapRegionSelectorDialog dialog(parent); - - dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap); - - TQDesktopWidget desktopWidget; - TQRect screen=desktopWidget.availableGeometry(); - dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize( - (int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5)); - int result = dialog.exec(); - - TQImage image; - - if ( result == TQDialog::Accepted ) - image = dialog.pixmapRegionSelectorWidget()->selectedImage(); - - return image; -} - -TQImage KPixmapRegionSelectorDialog::getSelectedImage(const TQPixmap &pixmap, int aspectRatioWidth, int aspectRatioHeight, TQWidget *parent ) -{ - KPixmapRegionSelectorDialog dialog(parent); - - dialog.pixmapRegionSelectorWidget()->setPixmap(pixmap); - dialog.pixmapRegionSelectorWidget()->setSelectionAspectRatio(aspectRatioWidth,aspectRatioHeight); - - TQDesktopWidget desktopWidget; - TQRect screen=desktopWidget.availableGeometry(); - dialog.pixmapRegionSelectorWidget()->setMaximumWidgetSize( - (int)(screen.width()*4.0/5), (int)(screen.height()*4.0/5)); - - int result = dialog.exec(); - - TQImage image; - - if ( result == TQDialog::Accepted ) - image = dialog.pixmapRegionSelectorWidget()->selectedImage(); - - return image; -} - -- cgit v1.2.3