HaikuDepot: UndoableEditListener base class added

This commit is contained in:
Stephan Aßmus 2015-02-22 21:25:11 +01:00
parent 651e8326ca
commit b5cbbf8041
3 changed files with 55 additions and 0 deletions

View File

@ -39,6 +39,7 @@ local textDocumentSources =
TextSelection.cpp
TextSpan.cpp
TextView.cpp
UndoableEditListener.cpp
;
Application HaikuDepot :

View File

@ -0,0 +1,25 @@
/*
* Copyright 2015, Stephan Aßmus <superstippi@gmx.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "UndoableEditListener.h"
UndoableEditListener::UndoableEditListener()
:
BReferenceable()
{
}
UndoableEditListener::~UndoableEditListener()
{
}
void
UndoableEditListener::UndoableEditHappened(const TextDocument* document,
const UndoableEditRef& edit)
{
}

View File

@ -0,0 +1,29 @@
/*
* Copyright 2015, Stephan Aßmus <superstippi@gmx.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef UNDOABLE_EDIT_LISTENER_H
#define UNDOABLE_EDIT_LISTENER_H
#include <Referenceable.h>
class TextDocument;
class UndoableEditRef;
class UndoableEditListener : public BReferenceable {
public:
UndoableEditListener();
virtual ~UndoableEditListener();
virtual void UndoableEditHappened(
const TextDocument* document,
const UndoableEditRef& edit);
};
typedef BReference<UndoableEditListener> UndoableEditListenerRef;
#endif // UNDOABLE_EDIT_LISTENER_H