7 #ifndef DLG_IMPORT_CROPPING_NON_PDF_H 8 #define DLG_IMPORT_CROPPING_NON_PDF_H 15 class QGraphicsPixmapItem;
34 QImage
image ()
const;
37 virtual void showEvent (QShowEvent *event);
50 void createNonPdfCropping();
51 void createPreview (QGridLayout *layout,
53 void finishPanel (QWidget *subPanel);
54 void initializeFrameGeometryAndPixmap ();
55 QImage loadImage ()
const;
58 static int MINIMUM_DIALOG_WIDTH;
61 static int MINIMUM_PREVIEW_HEIGHT;
63 void saveGeometryToSettings ();
64 void updatePreview ();
66 QPushButton *m_btnCancel;
69 const QString &m_fileName;
71 QGraphicsPixmapItem *m_pixmap;
73 QGraphicsScene *m_scenePreview;
79 #endif // DLG_IMPORT_CROPPING_NON_PDF_H This class shows a frame around the selected portion of the import preview window.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
Dialog for selecting a page and frame on that page when importing an image from a non-pdf file...
virtual void showEvent(QShowEvent *event)
Do preparation before dialog is displayed.
QImage image() const
Image that was selected. Value is null if loading failed.