mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fixup 3aab9ad2
: improve UndoGroupHelper docs again.
This commit is contained in:
parent
741d055eba
commit
b0983e1c5a
12
src/Undo.h
12
src/Undo.h
@ -130,18 +130,18 @@ private:
|
|||||||
|
|
||||||
/** Helper class to simplify the use of undo groups across several buffers.
|
/** Helper class to simplify the use of undo groups across several buffers.
|
||||||
*
|
*
|
||||||
* The undo group is created when the object is instantiated; it is
|
* The undo group is open when the object is instantiated or when
|
||||||
* then ended as the object goes out of scope or the buffer is reset
|
* the buffer is reset; it is then ended as the object goes out of
|
||||||
* (see below)
|
* scope (see below)
|
||||||
*/
|
*/
|
||||||
class UndoGroupHelper {
|
class UndoGroupHelper {
|
||||||
public:
|
public:
|
||||||
// Create a new undo group for buffer \c buf.
|
// Begin a new undo group for buffer \c buf.
|
||||||
UndoGroupHelper(Buffer * buf);
|
UndoGroupHelper(Buffer * buf);
|
||||||
// End all created undo groups.
|
// End all active undo groups.
|
||||||
~UndoGroupHelper();
|
~UndoGroupHelper();
|
||||||
|
|
||||||
// Create an additional undo group for buffer \c buf.
|
// Begin if needed an undo group for buffer \c buf.
|
||||||
void resetBuffer(Buffer * buf);
|
void resetBuffer(Buffer * buf);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user