00001 00002 #ifndef RTLEDITOR_H 00003 #define RTLEDITOR_H 00004 00005 #include <QtCore/QString> 00006 #include <QtGui/QTextEdit> 00007 00008 #include "types.h" 00009 #include <vector> 00010 #include <map> 00011 #include <set> 00012 00013 class Decompiler; 00014 00015 class RTLEditor : public QTextEdit 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 RTLEditor(Decompiler *decompiler, const QString &name); 00021 00022 public slots: 00023 void updateContents(); 00024 00025 protected: 00026 virtual void mouseMoveEvent(QMouseEvent *event); 00027 virtual void mousePressEvent(QMouseEvent *event); 00028 00029 private: 00030 Decompiler *decompiler; 00031 QString name; 00032 }; 00033 00034 #endif 00035