diff --git a/include/AutomatableModel.h b/include/AutomatableModel.h index 59fee5215..7e9c9e891 100644 --- a/include/AutomatableModel.h +++ b/include/AutomatableModel.h @@ -193,10 +193,13 @@ public: void unlinkAllModels(); - virtual void saveSettings( QDomDocument& doc, QDomElement& element, - const QString& name = QString( "value" ) ); + /*! \brief Saves settings (value, automation links and controller connections) of AutomatableModel into + specified DOM element using as attribute/node name */ + void saveSettings( QDomDocument& doc, QDomElement& element, const QString& name ); - virtual void loadSettings( const QDomElement& element, const QString& name = QString( "value" ) ); + /*! \brief Loads settings (value, automation links and controller connections) of AutomatableModel from + specified DOM element using as attribute/node name */ + void loadSettings( const QDomElement& element, const QString& name ); virtual QString nodeName() const { @@ -233,6 +236,16 @@ public slots: protected: + virtual void saveSettings( QDomDocument& doc, QDomElement& element ) + { + saveSettings( doc, element, "value" ); + } + + virtual void loadSettings( const QDomElement& element ) + { + loadSettings( element, "value" ); + } + virtual void redoStep( JournalEntry& je ); virtual void undoStep( JournalEntry& je );