FileSurfer 1.1.4
Modern Windows File Explorer
|
Generic class for browsing FileSurfer's history, such as file operations and visited directories. More...
Classes | |
class | UndoRedoNode |
Nested class representing a node in the UndoRedoHandler<T> chain. More... |
Public Member Functions | |
UndoRedoHandler () | |
Constructs a new UndoRedoHandler<T> chain. | |
void | AddNewNode (T data) |
Adds a new node at the current position in the chain and cuts of following nodes. | |
bool | IsTail () |
Determines if the current UndoRedoNode is the end of the UndoRedoHandler<T> chain. | |
bool | IsHead () |
Determines if the current UndoRedoNode is the beginning of the UndoRedoHandler<T> chain. | |
T? | GetPrevious () |
Gets the data of the previous UndoRedoNode in the UndoRedoHandler<T> chain. | |
T? | GetNext () |
Gets the data of the next UndoRedoNode in the UndoRedoHandler<T> chain. | |
void | MoveToPrevious () |
Moves to the previous UndoRedoNode in the UndoRedoHandler<T> chain. | |
void | MoveToNext () |
Moves to the next UndoRedoNode in the UndoRedoHandler<T> chain. | |
void | RemoveNode (bool goToPrevious) |
Removes the current UndoRedoNode from the UndoRedoHandler<T> chain. |
Package Functions | |
UndoRedoNode (T? data, UndoRedoNode? previous=null, UndoRedoNode? next=null) |
Package Attributes | |
T? | Data |
UndoRedoNode? | Previous |
UndoRedoNode? | Next |
Properties | |
T? | Current [get] |
Returns the data of the current UndoRedoNode. |
Private Attributes | |
readonly UndoRedoNode | _head |
readonly UndoRedoNode | _tail |
UndoRedoNode | _current |
Generic class for browsing FileSurfer's history, such as file operations and visited directories.
|
inline |
Adds a new node at the current position in the chain and cuts of following nodes.
T? FileSurfer.Models.UndoRedoHandler< T >.GetNext | ( | ) |
Gets the data of the next UndoRedoNode in the UndoRedoHandler<T> chain.
T? FileSurfer.Models.UndoRedoHandler< T >.GetPrevious | ( | ) |
Gets the data of the previous UndoRedoNode in the UndoRedoHandler<T> chain.
bool FileSurfer.Models.UndoRedoHandler< T >.IsHead | ( | ) |
Determines if the current UndoRedoNode is the beginning of the UndoRedoHandler<T> chain.
bool FileSurfer.Models.UndoRedoHandler< T >.IsTail | ( | ) |
Determines if the current UndoRedoNode is the end of the UndoRedoHandler<T> chain.
void FileSurfer.Models.UndoRedoHandler< T >.MoveToNext | ( | ) |
Moves to the next UndoRedoNode in the UndoRedoHandler<T> chain.
void FileSurfer.Models.UndoRedoHandler< T >.MoveToPrevious | ( | ) |
Moves to the previous UndoRedoNode in the UndoRedoHandler<T> chain.
|
inline |
Removes the current UndoRedoNode from the UndoRedoHandler<T> chain.
Throws InvalidOperationException if _current is either _head or _tail.
goToPrevious |
|
inline |
Constructs a new UndoRedoHandler<T> chain.
|
inlinepackage |
|
private |
|
private |
|
private |
|
package |
|
package |
|
package |
|
get |
Returns the data of the current UndoRedoNode.