summaryrefslogtreecommitdiff
path: root/inputmethods/dasher/QtDasherPlugin.h
blob: c979a2f55b90517c66d1228c18f41863d385ce94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <qutfcodec.h>
#include <qframe.h>
#include "QtDasherScreen.h"
#include "DasherInterface.h"
#include "DashEdit.h"

class QtDasherPlugin : public QFrame, public CDashEditbox
{
  Q_OBJECT
public:
  QtDasherPlugin(QWidget* parent=0, const char* name=0, WFlags f=0);
  ~QtDasherPlugin();

  void resetState();
  QSize sizeHint() const;

  void write_to_file() {};
  void get_new_context(std::string&, int) {};
  void unflush();
  void output(int);
  void deletetext();
  void flush(int);
  void Clear() {};
  void SetEncoding(Dasher::Opts::FileEncodingFormats) {};
  void SetFont(std::string , long ) {};

 signals:
  void key( ushort, ushort, ushort, bool, bool);

 private:
  QtDasherScreen *d;
  CDasherInterface *interface;
  int flushcount;
  QUtf8Codec *utf8_codec;
};