14#ifndef GUI_EDITING_EDITINGINTERFACE_H
15#define GUI_EDITING_EDITINGINTERFACE_H
Interface for editing photo.
void flipVertical()
Flip image vertically.
bool findSelection(QPoint &topLeft, QPoint &bottomRight)
Finds the selected region of the image.
void adjustGrain()
Opens image grain editor.
ClickableLabel * previousButton
void removeRedeye()
Applies redeye removal.
void finishCorrectTilt(QPoint p1, QPoint p2)
Finish correcting and image's tilt.
void rotateSelection()
Rotate current selection.
ClickableLabel * redEyeReductionButton
The red eye reduction button is disabled when no selection is present.
QComboBox * effectsList
List of effects that can be applied to photos.
void startCorrectTilt()
Enter correct image tilt mode.
bool currentPhotoRevertable()
QSize * aspectRatioValues
array of common aspect ratios to crop to
Photo * photo
Pointer to backend photo.
void applyEffect()
Apply selected effect.
void selectAspectRatio()
Aspect ratio selection changed.
void enhanceContrast()
Enhance image contrast.
void selectEffect()
Effect seletion changed.
void colorBalance()
Improve color balance.
void showNextPrevFirstLastPhoto(Photo *newPhoto)
Utility method for show prev/next photos.
void showLastPhoto()
Show last photo.
void showFirstPhoto()
Show first photo.
void applyImageUpdate(QImage *editedImage, bool resetSelection)
Applies update to image.
void tuneLevels()
Opens levels editor for manual histogram and brightness/contrast adjustments.
void setPhoto(Subalbum *collection, Photo *photo)
Sets the photo pointer and constructs scaled qimage's for painting.
void crop()
Cropped image.
LayoutWidget * layout
Pointer to the parent layout widget.
void rotateFlip(TRANSFORM_CODE rotationFlipType)
Utility method for rotation + flip slots.
void returnAction()
Exit editing interface.
QComboBox * aspectRatios
Widget for selection aspect ratio to crop to.
QString effectPreviewImageFilename
Path to scaled down version of image for fast generation of previews of effects.
bool selectionRotated
state variable indicating if the user wants to use a rotate aspect ratio
EditingInterface(QWidget *parent=0, const char *name=0)
Constructs layout.
void keyPressEvent(QKeyEvent *e)
int displayResolutionIndex
Index for screen resolution, needed if this value pair changes during program executing.
QToolButton * cropButton
The crop buttons is disabled when no seletion is present.
QPushButton * applyEffectButton
The apply effect button is disabled when no effect has been chosen.
void selectAll(QPoint &topLeft, QPoint &bottomRight)
Return coordinates that select entire image.
void showPrevPhoto()
Show prev photo.
Subalbum * collection
========== Pointer to backend collection
void rotateRight()
Rotate image right 90 degrees.
void screenResolutionChanged()
Update recorded screen resolution and selection if necessary.
void rotateLeft()
Rotate image left 90 degrees.
Photo * getPhoto()
Returns a pointer to the currently selected photo.
ClickableLabel * nextButton
QToolButton * correctTiltButton
The start tilt button is disabled while a line is being selected.
void revertCurrentPhoto()
reverts current photo and updates display
int imageWidth
Dimension of photo in image coordinates.
SelectionInterface * selectionInterface
This widget scales and displays the photo to fit the available screen space, and provides extensive s...
void flipHorizontal()
Flip image horizontally.
void showNextPhoto()
Show next photo.
QLabel * effectPreview
Label that shows preview of effect.
void handleSelectionChanged()
int displayWidth
Dimension of photo in display coordinates.
void handleAspectRatioChanged()
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image,...
Display widget for photos. Used by the PhotoEditWidget.
A subalbum contains photos.
MANIPULATION
Manipulations listed in the order in which they will be displayed in the drop down list.