QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
imagecropdialog.h File Reference
#include <QDialog>
#include <QImage>
#include <QRect>
#include <QWidget>
Include dependency graph for imagecropdialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CropAreaWidget
 The CropAreaWidget class Displays the image scaled to fit a reasonable dialog size, with a draggable, resizable crop rectangle overlaid on top – the area outside it dimmed, the usual visual convention for "this part goes away" during a crop, so it's never ambiguous which region survives. All internal geometry (the crop rect, drag handling, hit-testing) works in display-space pixel coordinates; only cropRect() converts back to the original, full-resolution image's own coordinates for the caller, the same original-vs-display distinction already used for colour sampling in ImageTransparentColorDialog. More...
class  ImageCropDialog
 The ImageCropDialog class Self-contained modal dialog wrapping CropAreaWidget with OK/Cancel – the same reasoning as ImageTransparentColorDialog: this needs neither undo-during-drag nor coexistence with other tools, only a rectangle the user drags out against a pixmap already in hand. More...