summaryrefslogtreecommitdiffstats
path: root/src/PYPSuggestionEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PYPSuggestionEditor.h')
-rw-r--r--src/PYPSuggestionEditor.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/PYPSuggestionEditor.h b/src/PYPSuggestionEditor.h
index 8a68bfb..637dfe0 100644
--- a/src/PYPSuggestionEditor.h
+++ b/src/PYPSuggestionEditor.h
@@ -22,6 +22,7 @@
#ifndef __PY_LIB_PINYIN_SUGGESTION_EDITOR_
#define __PY_LIB_PINYIN_SUGGESTION_EDITOR_
+#include <pinyin.h>
#include "PYEditor.h"
#include "PYLookupTable.h"
@@ -42,8 +43,9 @@ public:
virtual void candidateClicked (guint index, guint button, guint state);
private:
- void clearLookupTable (void);
void updateLookupTable (void);
+ gboolean updateCandidates ();
+ gboolean fillLookupTable ();
void updatePreeditText (void);
void updateAuxiliaryText (void);
@@ -51,7 +53,8 @@ private:
gboolean selectCandidate (guint index);
gboolean processSpace (guint keyval);
- gboolean processEnter (guint keyval);
+ gboolean processLabelKey (guint keyval);
+ gboolean processPageKey (guint keyval);
private:
/* variables */