DigraphMultiLineEdit.h
Go to the documentation of this file.00001 #ifndef DIGRAPH_MULTI_LINE_EDIT_H
00002 #define DIGRAPH_MULTI_LINE_EDIT_H
00003
00004 #include <iostream.h>
00005 #include <qevent.h>
00006 #include <qmultilineedit.h>
00007 #include "Util.h"
00008
00009 class DigraphMultiLineEdit : public QMultiLineEdit {
00010
00011 Q_OBJECT
00012
00013 public:
00014
00015 DigraphMultiLineEdit( QWidget* parent, const char* name = 0 );
00016 ~DigraphMultiLineEdit();
00017
00018 bool isDigraphEnabled() const;
00019
00020 public slots:
00021
00022 void setDigraphEnabled( bool isEnabled );
00023
00024 protected:
00025
00026 virtual void keyPressEvent( QKeyEvent* event );
00027
00028 private:
00029
00030 bool digraphEnabled;
00031 QString buffer;
00032
00033 };
00034
00035 #endif