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