diff base/Command.cpp @ 47:bac8b14ab355

* Add menu for re-adding existing layers * Fix layer tree window so that it at least approximates correct * Add bundled operations in command history, for use with things like multiple consecutive changes to a parameter value * Disambiguate plugins that happen to have identical descriptions * Add spectral centroid plugin (could use some parameters!) * Some other fixes
author Chris Cannam
date Fri, 17 Mar 2006 17:38:28 +0000
parents a7ed14263fe4
children 39ae3dee27b9
line wrap: on
line diff
--- a/base/Command.cpp	Thu Mar 16 18:46:00 2006 +0000
+++ b/base/Command.cpp	Fri Mar 17 17:38:28 2006 +0000
@@ -41,6 +41,12 @@
     }
 }
 
+bool
+MacroCommand::haveCommands() const
+{
+    return !m_commands.empty();
+}
+
 void
 MacroCommand::execute()
 {
@@ -57,3 +63,15 @@
     }
 }
 
+QString
+MacroCommand::getName() const
+{
+    return m_name;
+}
+
+void
+MacroCommand::setName(QString name)
+{
+    m_name = name;
+}
+