wex v25.04.0
|
Offers a class that collects unified diff invocations to be able to iterate through the differences, show them on the stc component, or checkout the difference. More...
#include <wex/factory/unified-diffs.h>
Public Member Functions | |
unified_diffs (factory::stc *s) | |
Constructor, provide stc. | |
bool | checkout (size_t line) |
Checks out the difference on specified line. | |
void | clear () |
Clears all differences, reset iterator. | |
bool | end () |
Goto last diff line on stc. | |
bool | first () |
Goto first diff line on stc. | |
void | insert (const factory::unified_diff *diff) |
Inserts a unified diff. | |
bool | next () |
Goto next diff line on stc. | |
size_t | pos () const |
Returns position of iterator in the collection. | |
bool | prev () |
Goto previous diff line on stc. | |
size_t | size () const |
Returns number of differences present. | |
void | status () const |
Shows status message. | |
Offers a class that collects unified diff invocations to be able to iterate through the differences, show them on the stc component, or checkout the difference.
bool wex::unified_diffs::checkout | ( | size_t | line | ) |
Checks out the difference on specified line.
It reverts the changes on that line, and removes key from the container, and resets the iterator to begin.
bool wex::unified_diffs::next | ( | ) |
Goto next diff line on stc.
If at end, goes to next stc. If on first position of stc, goes to first diff line.
size_t wex::unified_diffs::pos | ( | ) | const |
Returns position of iterator in the collection.
The first element has number 1.
bool wex::unified_diffs::prev | ( | ) |
Goto previous diff line on stc.
If at begin, goes to previous stc. If on last position of stc, goes to last diff line.