DigraphLineEdit.h

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

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6