Dialog (GUI) to configure the background image of a 2D view.
More...
#include <backgroundimagesetupdialog.h>
|
static QImage | cropImage (const QImage &img, const QPainterPath &p) noexcept |
|
Dialog (GUI) to configure the background image of a 2D view.
◆ State
Enumerator |
---|
Idle | |
Crop | |
Rotate | |
SelectRef1 | |
SelectRef2 | |
◆ BackgroundImageSetupDialog() [1/3]
◆ BackgroundImageSetupDialog() [2/3]
◆ BackgroundImageSetupDialog() [3/3]
◆ ~BackgroundImageSetupDialog()
◆ getImage()
const QImage & getImage |
( |
| ) |
const |
|
inlinenoexcept |
◆ getRotation()
const Angle & getRotation |
( |
| ) |
const |
|
inlinenoexcept |
◆ getReferences()
const QList< std::pair< QPointF, Point > > & getReferences |
( |
| ) |
const |
|
inlinenoexcept |
◆ setData()
void setData |
( |
const QImage & |
image, |
|
|
const Angle & |
rotation, |
|
|
const QList< std::pair< QPointF, Point > > & |
references |
|
) |
| |
|
noexcept |
◆ operator=()
◆ keyPressEvent()
void keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprivatenoexcept |
◆ graphicsViewEventHandler()
bool graphicsViewEventHandler |
( |
QEvent * |
event | ) |
|
|
overrideprivatevirtualnoexcept |
◆ startScreenshot()
◆ screenshotCountdownTick()
void screenshotCountdownTick |
( |
| ) |
|
|
privatenoexcept |
◆ takeScreenshot()
◆ pasteFromClipboard()
void pasteFromClipboard |
( |
| ) |
|
|
privatenoexcept |
◆ loadFromFile()
◆ updateUi()
void updateUi |
( |
QString |
msg = QString() | ) |
|
|
privatenoexcept |
◆ fitImageInView()
◆ updateAnchors()
◆ updateStatusMsg()
◆ cropImage()
QImage cropImage |
( |
const QImage & |
img, |
|
|
const QPainterPath & |
p |
|
) |
| |
|
staticprivatenoexcept |
◆ mUi
QScopedPointer<Ui::BackgroundImageSetupDialog> mUi |
|
private |
◆ mSettingsPrefix
const QString mSettingsPrefix |
|
private |
◆ mState
◆ mImage
◆ mRotation
◆ mLoadedReferences
QList<std::pair<QPointF, Point> > mLoadedReferences |
|
private |
◆ mReferences
QList<std::pair<QPointF, Point> > mReferences |
|
private |
◆ mScreen
QPointer<QScreen> mScreen |
|
private |
◆ mCountdownSecs
◆ mRotateWidget
QScopedPointer<QWidget> mRotateWidget |
|
private |
◆ mImageGraphicsItem
QScopedPointer<QGraphicsPixmapItem> mImageGraphicsItem |
|
private |
◆ mCursorGraphicsItem
std::shared_ptr<QGraphicsPathItem> mCursorGraphicsItem |
|
private |
◆ mCropGraphicsItem
QScopedPointer<QGraphicsPathItem> mCropGraphicsItem |
|
private |
◆ mReferenceGraphicsItems
QList<std::shared_ptr<QGraphicsPathItem> > mReferenceGraphicsItems |
|
private |
◆ mReferenceLineGraphicsItems
QList<std::shared_ptr<QGraphicsLineItem> > mReferenceLineGraphicsItems |
|
private |
◆ mReferenceWidgets
QList<std::shared_ptr<QWidget> > mReferenceWidgets |
|
private |
The documentation for this class was generated from the following files: