diff base/PropertyContainer.h @ 387:7aa1de571880

* juggle some files around in order to free audioio, base, and system libraries from dependency on QtGui
author Chris Cannam
date Wed, 12 Mar 2008 17:42:56 +0000
parents 516819f2b97b
children 57857a57a03a
line wrap: on
line diff
--- a/base/PropertyContainer.h	Sat Mar 01 16:17:44 2008 +0000
+++ b/base/PropertyContainer.h	Wed Mar 12 17:42:56 2008 +0000
@@ -118,10 +118,11 @@
     virtual void setProperty(const PropertyName &, int value);
 
     /**
-     * Set a property using a command, supporting undo and redo.
-     * The default implementation should work for most subclasses.
+     * Obtain a command that sets the given property, which can be
+     * added to the command history for undo/redo.  Returns NULL
+     * if the property is already set to the given value.
      */
-    virtual void setPropertyWithCommand(const PropertyName &, int value);
+    virtual Command *getSetPropertyCommand(const PropertyName &, int value);
 
     /**
      * Set a property using a fuzzy match.  Compare nameString with
@@ -141,9 +142,9 @@
     virtual void setProperty(QString nameString, QString valueString);
 
     /**
-     * As above, but using a command.
+     * As above, but returning a command.
      */
-    virtual void setPropertyWithCommand(QString nameString, QString valueString);
+    virtual Command *getSetPropertyCommand(QString nameString, QString valueString);
 
 protected: