Program Listing for File undo.cpp

Return to documentation for file (include/MainObjects/editorObject/undo.cpp)

#include "editorObject.hpp"

template<>
bool
editorObject::Undo<EDIT_ARG_NOTE>()
{
    return E_obj->noteHandle.first.Undo();
}

template<>
bool
editorObject::Undo<EDIT_ARG_MIX>()
{
    return E_obj->mixHandle.first.Undo();
}

template<>
bool
editorObject::Undo<EDIT_ARG_MUSIC>(const std::string& musicName)
{
    for(auto& i : E_obj->musicHandle){
        if(i.musicName == musicName){
            return i.gith.Undo();
        }
    }
    return false;
}

template<>
bool
editorObject::Undo<EDIT_ARG_KEY_VALUE>()
{
    return E_obj->KVHandler.first.Undo();
}