Mercurial > hg > sonic-visualiser
changeset 248:842745edded8
* 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 | 587c79827c69 |
children | 9d772bee2095 |
files | main/MainWindow.cpp main/OSCHandler.cpp |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Tue Mar 11 09:23:48 2008 +0000 +++ b/main/MainWindow.cpp Wed Mar 12 17:42:56 2008 +0000 @@ -65,11 +65,11 @@ #include "plugin/transform/ModelTransformerFactory.h" #include "base/PlayParameterRepository.h" #include "base/XmlExportable.h" -#include "base/CommandHistory.h" +#include "widgets/CommandHistory.h" #include "base/Profiler.h" #include "base/Clipboard.h" #include "base/UnitDatabase.h" -#include "base/ColourDatabase.h" +#include "layer/ColourDatabase.h" // For version information #include "vamp/vamp.h"
--- a/main/OSCHandler.cpp Tue Mar 11 09:23:48 2008 +0000 +++ b/main/OSCHandler.cpp Wed Mar 12 17:42:56 2008 +0000 @@ -21,7 +21,7 @@ #include "view/Pane.h" #include "view/PaneStack.h" #include "data/model/WaveFileModel.h" -#include "base/CommandHistory.h" +#include "widgets/CommandHistory.h" #include "audioio/AudioCallbackPlaySource.h" #include "audioio/AudioCallbackPlayTarget.h" #include "framework/Document.h" @@ -351,7 +351,9 @@ if (container) { QString nameString = message.getArg(1).toString(); QString valueString = message.getArg(2).toString(); - container->setPropertyWithCommand(nameString, valueString); + Command *c = container->getSetPropertyCommand + (nameString, valueString); + if (c) CommandHistory::getInstance()->addCommand(c, true, true); } }