========================== History (hwx.inspire.core) ========================== Manages the Undo or Redo support. While interacting with inspire object through API,History noteState need to be created explicitly to perform undo or redo operation. -------------- Public Methods -------------- +--------------------------------------+ | classmethod disabled_ (cls) | +--------------------------------------+ | classmethod noteState_ (cls, tag='') | +--------------------------------------+ | classmethod redo_ (cls) | +--------------------------------------+ | classmethod temporaryMode_ (cls) | +--------------------------------------+ | classmethod undo_ (cls) | +--------------------------------------+ -------------- Method Details -------------- .. _disabled: .. classmethod:: disabled(cls) Disables the history. .. _noteState: .. classmethod:: noteState(cls, tag='') Creates history noteState with supplied tag. :param tag: Name for noteState. :type tag: str .. _redo: .. classmethod:: redo(cls) Performs a Redo operation. .. _temporaryMode: .. classmethod:: temporaryMode(cls) Begins a transaction for data model changes. - NoteState commits the changes otherwise the model is restored when leaving the contextmanager. - Yields commit and rollback functions. .. _undo: .. classmethod:: undo(cls) Performs an Undo operation.