wex v24.10.0
|
Offers a simple class to enforce several undo like actions on an stc component. More...
#include <wex/factory/stc-undo.h>
Public Types | |
enum | { UNDO_ACTION = 0 , UNDO_POS , UNDO_SEL_NONE } |
Undo flags. More... | |
typedef std::bitset< 3 > | undo_t |
A typedef containing undo flags. | |
Public Member Functions | |
stc_undo (wex::factory::stc *stc, undo_t type=undo_t().set(UNDO_ACTION)) | |
Constructor, depending on the type will start an action. | |
~stc_undo () | |
Destructor, will restore the actions taken. | |
undo_t | type () const |
Returns type. | |
Offers a simple class to enforce several undo like actions on an stc component.
anonymous enum |
wex::stc_undo::stc_undo | ( | wex::factory::stc * | stc, |
undo_t | type = undo_t().set(UNDO_ACTION) ) |
Constructor, depending on the type will start an action.
stc | the stc component |
type | the kind of undo |