/* * Copyright 2006-2012, Stephan Aßmus * Distributed under the terms of the MIT License. */ #include "UndoableEdit.h" #include #include #include UndoableEdit::UndoableEdit() : fTimeStamp(system_time()) { } UndoableEdit::~UndoableEdit() { } status_t UndoableEdit::InitCheck() { return B_NO_INIT; } status_t UndoableEdit::Perform(EditContext& context) { return B_ERROR; } status_t UndoableEdit::Undo(EditContext& context) { return B_ERROR; } status_t UndoableEdit::Redo(EditContext& context) { return Perform(context); } void UndoableEdit::GetName(BString& name) { name << "Name of edit goes here."; } bool UndoableEdit::UndoesPrevious(const UndoableEdit* previous) { return false; } bool UndoableEdit::CombineWithNext(const UndoableEdit* next) { return false; } bool UndoableEdit::CombineWithPrevious(const UndoableEdit* previous) { return false; }