You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kile/src/kile/kileeventfilter.h

48 lines
858 B

//
// C++ Interface: kileeventfilter
//
// Description:
//
//
// Author: Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KILEEVENTFILTER_H
#define KILEEVENTFILTER_H
#include <tqobject.h>
#include <tqregexp.h>
class TQEvent;
namespace Kate {class View; }
namespace KileDocument { class EditorExtension; };
/**
* This class is capable of intercepting key-strokes from the editor. It can complete a \begin{env}
* with a \end{env} when enter is pressed.
**/
class KileEventFilter : public TQObject
{
TQ_OBJECT
public:
KileEventFilter(KileDocument::EditorExtension *edit);
public slots:
void readConfig();
protected:
bool eventFilter(TQObject *o, TQEvent *e);
private:
bool m_bCompleteEnvironment;
KileDocument::EditorExtension *m_edit;
};
#endif