CaptureProcessOverlay::CaptureHistory
#include <captureprocessoverlay.h>
Public Member Functions | |
bool | addFrame (FrameData data) |
bool | backward () |
const FrameData | currentFrame () |
bool | deleteFrame (int pos) |
bool | forward () |
const FrameData | getFrame (int pos) |
int | position () |
void | reset () |
int | size () |
void | updateTargetStatistics () |
Public Attributes | |
TargetStatistics | statistics |
Detailed Description
Navigator through the capture history.
Definition at line 50 of file captureprocessoverlay.h.
Member Function Documentation
◆ addFrame()
bool CaptureProcessOverlay::CaptureHistory::addFrame | ( | CaptureProcessOverlay::FrameData | data | ) |
Add a newly captured frame to the history.
- Parameters
-
data frame data
- Returns
- true iff this is a new frame, i.e. its filename does not exist in the history
Definition at line 169 of file captureprocessoverlay.cpp.
◆ backward()
bool CaptureProcessOverlay::CaptureHistory::backward | ( | ) |
Move one step backwards in the history.
- Returns
- true iff the move was possible within the limits
Definition at line 221 of file captureprocessoverlay.cpp.
◆ currentFrame()
|
inline |
the currently pointed capture frame
Definition at line 69 of file captureprocessoverlay.h.
◆ deleteFrame()
bool CaptureProcessOverlay::CaptureHistory::deleteFrame | ( | int | pos | ) |
Delete the current frame and (if possible) the corresponding file.
If the last one has been deleted, navigate to the frame before, if possible.
- Returns
- true iff deleting was successful
Definition at line 183 of file captureprocessoverlay.cpp.
◆ forward()
bool CaptureProcessOverlay::CaptureHistory::forward | ( | ) |
Move one step forward in the history.
- Returns
- true iff the move was possible within the limits
Definition at line 210 of file captureprocessoverlay.cpp.
◆ getFrame()
|
inline |
Obtain the frame from the given position in the history.
Definition at line 78 of file captureprocessoverlay.h.
◆ position()
|
inline |
The current navigation position in the capture history.
Definition at line 74 of file captureprocessoverlay.h.
◆ reset()
void CaptureProcessOverlay::CaptureHistory::reset | ( | ) |
Reset the history.
Definition at line 204 of file captureprocessoverlay.cpp.
◆ size()
|
inline |
Capture history size.
Definition at line 82 of file captureprocessoverlay.h.
◆ updateTargetStatistics()
void CaptureProcessOverlay::CaptureHistory::updateTargetStatistics | ( | ) |
Iterate over the current target history and add all those where the corresponding file exists.
Definition at line 232 of file captureprocessoverlay.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:58:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.