Package schrodinger :: Package application :: Package msv :: Module command
[hide private]
[frames] | no frames]

Module command

Classes [hide private]
  Command
Functions [hide private]
 
do_command(meth)
Decorates a method returning a command object, validates the command (in DEBUG mode only), and pushes it onto the command stack if there is one or calls redo if there isn't.
 
compress_command(*args, **kwds)
Enables compression of commands on undo stack, so they can be revoked using a single undo call.
 
from_command_only(meth)
When running in DEBUG mode, enforces the requirement that the decorated method only be called from a command object
Variables [hide private]
  DEBUG = True
hash(x)
  __package__ = 'schrodinger.application.msv'
Function Details [hide private]

do_command(meth)

 

Decorates a method returning a command object, validates the command (in DEBUG mode only), and pushes it onto the command stack if there is one or calls redo if there isn't.

Decorators:
  • @decorator

compress_command(*args, **kwds)

 

Enables compression of commands on undo stack, so they can be revoked using a single undo call.

Parameters:
  • stack (QUndoStack) - Undo stack to compress commands on.
  • description (str) - Description of the compressed command.
Decorators:
  • @contextmanager

from_command_only(meth)

 

When running in DEBUG mode, enforces the requirement that the decorated method only be called from a command object

Decorators:
  • @decorator