mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
merge r1449 from surfaces branch to include mackie surface and tranzport updates. Thanks to Gerd Flaig for the merge command: svn merge svn+ssh://ardoursvn@ardour.org/ardour2/trunk@1449 svn+ssh://ardoursvn@ardour.org/ardour2/branches/surfaces.
git-svn-id: svn://localhost/ardour2/trunk@1460 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
92c09a6d91
commit
e878b36519
117 changed files with 16565 additions and 46 deletions
26
libs/surfaces/mackie/scripts/transform.rb
Normal file
26
libs/surfaces/mackie/scripts/transform.rb
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
class ElementHandler
|
||||
|
||||
def apply( anElement )
|
||||
anElement.each {|e| handle(e)} if anElement
|
||||
end
|
||||
|
||||
def handle( aNode )
|
||||
if aNode.kind_of? REXML::Text
|
||||
handleTextNode(aNode)
|
||||
elsif aNode.kind_of? REXML::Element
|
||||
handle_element aNode
|
||||
else
|
||||
return #ignore comments and processing instructions
|
||||
end
|
||||
end
|
||||
|
||||
def handle_element( anElement )
|
||||
handler_method = "handle_" + anElement.name.tr("-","_")
|
||||
if self.respond_to? handler_method
|
||||
self.send(handler_method, anElement)
|
||||
else
|
||||
default_handler(anElement)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue