2010-05-07 04:47:10 -05:00
|
|
|
/*
|
2011-12-03 16:38:03 -06:00
|
|
|
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
|
2010-05-07 04:47:10 -05:00
|
|
|
* 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
|