首页 / tech / oaTechUndoObserverBase

oaTechUndoObserverBase

模块: oapy._oa._tech 导入: from oapy._oa import _tech

概览

oaTechUndoObserverBaseoapy 中可用,可通过 _tech 模块访问。

本页汇总 oaTechUndoObserverBase 当前在 oapy 中可用的 Python 接口。

详细说明

The oaTechUndoObserver class implements an observer for actions associated with undo and redo functions。 Applications that need to receive notification of these actions should derive from this class and implement the appropriate observer functions。 See oaObserver for a general description of how callbacks are used。

构造函数

_tech.oaTechUndoObserverBase()

obj = _tech.oaTechUndoObserverBase()

方法总览

状态 Python 调用
obj.onStartUndo(Tech)
obj.onEndUndo(Tech)
obj.onStartRedo(Tech)
obj.onEndRedo(Tech)
obj.onSetCp(Tech, cpID)
obj.onUnsetCp(Tech)
obj.isEnabled()
obj.enable(enabledIn)

方法说明

obj.onStartUndo(Tech)

绑定状态: 已绑定

Python 调用: obj.onStartUndo(Tech)

This function is called just before the undo mechanism reverses changes to the specified tech。 The application's derived class must implement this function in order to receive notification when an undo event is about to occur。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onStartUndo(Tech)

obj.onEndUndo(Tech)

绑定状态: 已绑定

Python 调用: obj.onEndUndo(Tech)

This function is called just after the undo mechanism finishes undoing changes to the specified tech。 The application's derived class must implement this function in order to receive notification when an undo event occurs。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onEndUndo(Tech)

obj.onStartRedo(Tech)

绑定状态: 已绑定

Python 调用: obj.onStartRedo(Tech)

This function is called just before the undo mechanism restores changes to the specified tech。 The application's derived class must implement this function in order to receive notification when a redo event is about to occur。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onStartRedo(Tech)

obj.onEndRedo(Tech)

绑定状态: 已绑定

Python 调用: obj.onEndRedo(Tech)

This function is called just after the undo mechanism finishes redoing changes to the specified tech。 The application's derived class must implement this function in order to receive notification when a redo event has occurred。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onEndRedo(Tech)

obj.onSetCp(Tech, cpID)

绑定状态: 已绑定

Python 调用: obj.onSetCp(Tech, cpID)

This function is called when the an undo checkpoint is set on the specified tech。 The application's derived class must implement this function to receive notification when a checkpoint for the tech is set。

参数

  • Tech: The technology database on which the checkpoint was set。
  • cpID: The ID of the checkpoint that was set。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onSetCp(Tech, cpID)

obj.onUnsetCp(Tech)

绑定状态: 已绑定

Python 调用: obj.onUnsetCp(Tech)

This function is called when a checkpoint is unset on the specified tech。 The application's derived class must implement this function in order to receive notification when a checkpoint for the tech is unset。

参数

  • Tech: The technology database on which the observer is set。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.onUnsetCp(Tech)

obj.isEnabled()

绑定状态: 已绑定

Python 调用: obj.isEnabled()

This function returns a boolean value indicating whether this observer is active。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.isEnabled()

obj.enable(enabledIn)

绑定状态: 已绑定

Python 调用: obj.enable(enabledIn)

This function activates or deactivates this observer。

参数

  • enabledIn: Indicates whether to make this observer active or inactive。

Python 示例

from oapy._oa import _tech

# assume obj is a oaTechUndoObserverBase
obj.enable(enabledIn)