HaikuDepot: UndoableEditListener base class added
This commit is contained in:
parent
651e8326ca
commit
b5cbbf8041
@ -39,6 +39,7 @@ local textDocumentSources =
|
||||
TextSelection.cpp
|
||||
TextSpan.cpp
|
||||
TextView.cpp
|
||||
UndoableEditListener.cpp
|
||||
;
|
||||
|
||||
Application HaikuDepot :
|
||||
|
25
src/apps/haikudepot/textview/UndoableEditListener.cpp
Normal file
25
src/apps/haikudepot/textview/UndoableEditListener.cpp
Normal 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)
|
||||
{
|
||||
}
|
29
src/apps/haikudepot/textview/UndoableEditListener.h
Normal file
29
src/apps/haikudepot/textview/UndoableEditListener.h
Normal 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
|
Loading…
Reference in New Issue
Block a user