7 #ifndef DLG_IMPORT_CROPPING_PDF_H
8 #define DLG_IMPORT_CROPPING_PDF_H
18 class QGraphicsPixmapItem;
39 QImage
image ()
const;
42 virtual void showEvent (QShowEvent *event);
61 void createPageSpinner (QGridLayout *layout,
63 void createPdfCropping ();
64 void createPreview (QGridLayout *layout,
67 void finishPanel (QWidget *subPanel);
68 void initializeFrameGeometryAndPixmap ();
69 QImage loadImage (
int page1Based)
const;
72 static int MINIMUM_DIALOG_WIDTH;
75 static int MINIMUM_PREVIEW_HEIGHT;
77 void saveGeometryToSettings ();
78 void updatePreview ();
81 QPushButton *m_btnCancel;
85 const Poppler::Document &m_document;
88 QGraphicsPixmapItem *m_pixmap;
90 QGraphicsScene *m_scenePreview;
96 #endif // DLG_IMPORT_CROPPING_PDF_H
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window...
This class shows a frame around the selected portion of the pdf import preview window.
virtual void showEvent(QShowEvent *event)
Do preparation before dialog is displayed.
QImage image() const
Image that was selected. Value is null if loading failed.
Storage of one imported image and the data attached to that image.
Dialog for selecting a page and frame on that page when importing an image from a pdf file...