From: W. Trevor King Date: Thu, 12 Aug 2010 11:25:56 +0000 (-0400) Subject: We'll keep most command stack functionality in a new hooke.command_stack X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf4eb693152d35700518b5451a0a7777786ec994;p=hooke.git We'll keep most command stack functionality in a new hooke.command_stack --- diff --git a/hooke/command_stack.py b/hooke/command_stack.py new file mode 100644 index 0000000..cebf0b9 --- /dev/null +++ b/hooke/command_stack.py @@ -0,0 +1,26 @@ +# Copyright (C) 2010 W. Trevor King +# +# This file is part of Hooke. +# +# Hooke is free software: you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Hooke is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General +# Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with Hooke. If not, see +# . + +"""The ``command_stack`` module provides tools for managing stacks of +:class:`~hooke.engine.CommandMessage`\s and applying those stacks to +:class:`~hooke.curve.Curve`\s. +""" + +from .command import Command, Argument, Failure +from .engine import CommandMessage +from .playlist import NoteIndexList diff --git a/hooke/plugin/command_stack.py b/hooke/plugin/command_stack.py index fc696a7..ab75ce4 100644 --- a/hooke/plugin/command_stack.py +++ b/hooke/plugin/command_stack.py @@ -19,16 +19,13 @@ # . """The ``command_stack`` module provides :class:`CommandStackPlugin` -and several associated :class:`~hooke.command.Command`\s for managing -stacks of :class:`~hooke.engine.CommandMessage`\s and applying those -stacks to :class:`~hooke.curve.Curve`\s. +and several associated :class:`~hooke.command.Command`\s exposing +:mod`hooke.command_stack`'s functionality. """ -import os.path -import string - -from .. import curve as lhc -from .. import libinput as linput +from ..command import Command, Argument, Failure +from ..plugin import Builtin +from .curve import CurveCommand class macroCommands(object):