00001 #include <qutfcodec.h> 00002 #include <qframe.h> 00003 #include "QtDasherScreen.h" 00004 #include "DasherInterface.h" 00005 #include "DashEdit.h" 00006 00007 class QtDasherPlugin : public QFrame, public CDashEditbox 00008 { 00009 Q_OBJECT 00010 public: 00011 QtDasherPlugin(QWidget* parent=0, const char* name=0, WFlags f=0); 00012 ~QtDasherPlugin(); 00013 00014 void resetState(); 00015 QSize sizeHint() const; 00016 00017 void write_to_file() {}; 00018 void get_new_context(std::string&, int) {}; 00019 void unflush(); 00020 void output(int); 00021 void deletetext(); 00022 void flush(int); 00023 void Clear() {}; 00024 void SetEncoding(Dasher::Opts::FileEncodingFormats) {}; 00025 void SetFont(std::string , long ) {}; 00026 00027 signals: 00028 void key( ushort, ushort, ushort, bool, bool); 00029 00030 private: 00031 QtDasherScreen *d; 00032 CDasherInterface *interface; 00033 int flushcount; 00034 QUtf8Codec *utf8_codec; 00035 }; 00036 00037 00038 00039 00040 00041 00042
1.4.2