◆ DPreviewImage()
Digikam::DPreviewImage::DPreviewImage |
( |
QWidget *const |
parent | ) |
|
|
explicit |
◆ ~DPreviewImage()
Digikam::DPreviewImage::~DPreviewImage |
( |
| ) |
|
|
override |
◆ enableSelectionArea()
void Digikam::DPreviewImage::enableSelectionArea |
( |
bool |
b | ) |
|
◆ enterEvent()
void Digikam::DPreviewImage::enterEvent |
( |
QEvent * |
| ) |
|
|
overrideprotected |
◆ eventFilter()
bool Digikam::DPreviewImage::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
overrideprotected |
◆ getSelectionArea()
QRectF Digikam::DPreviewImage::getSelectionArea |
( |
| ) |
const |
◆ leaveEvent()
void Digikam::DPreviewImage::leaveEvent |
( |
QEvent * |
| ) |
|
|
overrideprotected |
◆ load()
bool Digikam::DPreviewImage::load |
( |
const QUrl & |
file | ) |
const |
◆ mouseMoveEvent()
void Digikam::DPreviewImage::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
References Digikam::DSelectionItem::Bottom, Digikam::DSelectionItem::BottomLeft, Digikam::DSelectionItem::BottomRight, Digikam::DSelectionItem::Left, Digikam::DSelectionItem::Move, Digikam::DSelectionItem::None, Digikam::DSelectionItem::Right, Digikam::DSelectionItem::Top, Digikam::DSelectionItem::TopLeft, Digikam::DSelectionItem::TopRight, updateHighlight(), and value.
◆ mousePressEvent()
void Digikam::DPreviewImage::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void Digikam::DPreviewImage::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ resizeEvent()
void Digikam::DPreviewImage::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
overrideprotected |
◆ setImage()
bool Digikam::DPreviewImage::setImage |
( |
const QImage & |
img | ) |
const |
◆ setSelectionArea()
void Digikam::DPreviewImage::setSelectionArea |
( |
const QRectF & |
rectangle | ) |
|
Sets a selection area and show it
- Parameters
-
rectangle | This rectangle should have height and width of 1.0 |
◆ slotClearActiveSelection
void Digikam::DPreviewImage::slotClearActiveSelection |
( |
| ) |
|
|
slot |
◆ slotClearHighlight
void Digikam::DPreviewImage::slotClearHighlight |
( |
| ) |
|
|
slot |
This function removes the highlight area.
◆ slotSetBRX
void Digikam::DPreviewImage::slotSetBRX |
( |
float |
ratio | ) |
|
|
slot |
◆ slotSetBRY
void Digikam::DPreviewImage::slotSetBRY |
( |
float |
ratio | ) |
|
|
slot |
◆ slotSetHighlightArea
void Digikam::DPreviewImage::slotSetHighlightArea |
( |
float |
tl_x, |
|
|
float |
tl_y, |
|
|
float |
br_x, |
|
|
float |
br_y |
|
) |
| |
|
slot |
This function is used to darken everything except what is inside the given area.
- Note
- all parameters must be in the range 0.0 -> 1.0.
- Parameters
-
tl_x | is the x coordinate of the top left corner 0=0 1=image with. |
tl_y | is the y coordinate of the top left corner 0=0 1=image height. |
br_x | is the x coordinate of the bottom right corner 0=0 1=image with. |
br_y | is the y coordinate of the bottom right corner 0=0 1=image height. |
◆ slotSetHighlightShown
void Digikam::DPreviewImage::slotSetHighlightShown |
( |
int |
percentage, |
|
|
const QColor & |
highLightColor = Qt::white |
|
) |
| |
|
slot |
This function sets the percentage of the highlighted area that is visible. The rest is hidden. This stacks with the previous highlight area.
- Parameters
-
percentage | is the percentage of the highlighted area that is shown. |
hideColor | is the color to use to hide the highlighted area of the image. |
◆ slotSetSelection
void Digikam::DPreviewImage::slotSetSelection |
( |
float |
tl_x, |
|
|
float |
tl_y, |
|
|
float |
br_x, |
|
|
float |
br_y |
|
) |
| |
|
slot |
This function is used to set a selection without the user setting it.
- Note
- all parameters must be in the range 0.0 -> 1.0.
- Parameters
-
tl_x | is the x coordinate of the top left corner 0=0 1=image with. |
tl_y | is the y coordinate of the top left corner 0=0 1=image height. |
br_x | is the x coordinate of the bottom right corner 0=0 1=image with. |
br_y | is the y coordinate of the bottom right corner 0=0 1=image height. |
References updateSelVisibility().
◆ slotSetTLX
void Digikam::DPreviewImage::slotSetTLX |
( |
float |
ratio | ) |
|
|
slot |
◆ slotSetTLY
void Digikam::DPreviewImage::slotSetTLY |
( |
float |
ratio | ) |
|
|
slot |
◆ slotZoom2Fit
void Digikam::DPreviewImage::slotZoom2Fit |
( |
| ) |
|
|
slot |
◆ slotZoomIn
void Digikam::DPreviewImage::slotZoomIn |
( |
| ) |
|
|
slot |
◆ slotZoomOut
void Digikam::DPreviewImage::slotZoomOut |
( |
| ) |
|
|
slot |
◆ updateHighlight()
void Digikam::DPreviewImage::updateHighlight |
( |
| ) |
|
|
protected |
◆ updateSelVisibility()
void Digikam::DPreviewImage::updateSelVisibility |
( |
| ) |
|
|
protected |
◆ wheelEvent()
void Digikam::DPreviewImage::wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
overrideprotected |
The documentation for this class was generated from the following files: