2010-05-07 04:47:10 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Andrea Anzani. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2010-05-20 16:31:55 -05:00
|
|
|
#ifndef _EDITING_FILTER_H
|
|
|
|
#define _EDITING_FILTER_H
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
#include <MessageFilter.h>
|
2010-05-20 16:31:55 -05:00
|
|
|
#include <TextView.h>
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
class EditingFilter : public BMessageFilter {
|
|
|
|
public:
|
2010-05-20 16:31:55 -05:00
|
|
|
EditingFilter(BTextView* view);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
2010-05-20 16:31:55 -05:00
|
|
|
virtual filter_result Filter(BMessage* message, BHandler** target);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
private:
|
2010-05-20 16:31:55 -05:00
|
|
|
BTextView* fView;
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
|
2010-05-20 16:31:55 -05:00
|
|
|
#endif // _EDITING_FILTER_H
|