summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-06-15 16:04:25 +0800
committerPeng Wu <alexepico@gmail.com>2018-06-15 16:25:17 +0800
commit313647e5c8bf9301cafe53743c411a7cf167b539 (patch)
treedbb836740ed57f2cd65116b00747e9f04a84e919
parentea4784475c1491c9eb6fd0eec454588f2333ce75 (diff)
downloadibus-libpinyin-313647e5c8bf9301cafe53743c411a7cf167b539.tar.gz
ibus-libpinyin-313647e5c8bf9301cafe53743c411a7cf167b539.tar.xz
ibus-libpinyin-313647e5c8bf9301cafe53743c411a7cf167b539.zip
begin to write class SuggestionEditor
-rw-r--r--src/PYPSuggestionEditor.cc33
-rw-r--r--src/PYPSuggestionEditor.h1
2 files changed, 33 insertions, 1 deletions
diff --git a/src/PYPSuggestionEditor.cc b/src/PYPSuggestionEditor.cc
new file mode 100644
index 0000000..d8dffd3
--- /dev/null
+++ b/src/PYPSuggestionEditor.cc
@@ -0,0 +1,33 @@
+/* vim:set et ts=4 sts=4:
+ *
+ * ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus
+ *
+ * Copyright (c) 2018 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include "PYPSuggestionEditor.h"
+
+using namespace PY;
+
+SuggestionEditor::SuggestionEditor (PinyinProperties &props,
+ Config & config)
+ : Editor (props, config)
+{
+ /* use m_text to store the prefix string. */
+ m_text = "prefix";
+}
+
diff --git a/src/PYPSuggestionEditor.h b/src/PYPSuggestionEditor.h
index d6fd0a1..8a68bfb 100644
--- a/src/PYPSuggestionEditor.h
+++ b/src/PYPSuggestionEditor.h
@@ -52,7 +52,6 @@ private:
gboolean processSpace (guint keyval);
gboolean processEnter (guint keyval);
- gboolean processEscape (guint keyval);
private:
/* variables */