summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-06-12 15:57:46 +0800
committerPeng Wu <alexepico@gmail.com>2018-06-12 15:57:46 +0800
commitbb51fd16c244a5e93add5ad9df2fb21460fb4032 (patch)
tree0ea938c9833921eb77e86571b182ae5c45110f58 /src
parent4821c9acb8fb76c27d7fdbd3e3bacb1af4015122 (diff)
downloadibus-libpinyin-bb51fd16c244a5e93add5ad9df2fb21460fb4032.tar.gz
ibus-libpinyin-bb51fd16c244a5e93add5ad9df2fb21460fb4032.tar.xz
ibus-libpinyin-bb51fd16c244a5e93add5ad9df2fb21460fb4032.zip
define lua candidates header
Diffstat (limited to 'src')
-rw-r--r--src/PYPLuaConverterCandidates.h47
-rw-r--r--src/PYPLuaTriggerCandidates.h46
2 files changed, 93 insertions, 0 deletions
diff --git a/src/PYPLuaConverterCandidates.h b/src/PYPLuaConverterCandidates.h
new file mode 100644
index 0000000..9a19bbd
--- /dev/null
+++ b/src/PYPLuaConverterCandidates.h
@@ -0,0 +1,47 @@
+/* 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.
+ */
+
+#ifndef __PY_LIB_PINYIN_LUA_CONVERTER_CANDIDATES_H_
+#define __PY_LIB_PINYIN_LUA_CONVERTER_CANDIDATES_H_
+
+#include <vector>
+#include "PYPEnhancedCandidates.h"
+
+namespace PY {
+
+class LuaConverterCandidates : public EnhancedCandidates {
+public:
+ LuaConverterCandidates (PhoneticEditor *editor) {
+ m_editor = editor;
+ }
+
+public:
+ gboolean processCandidates (std::vector<EnhancedCandidate> & candidates);
+
+ SelectCandidateAction selectCandidate (EnhancedCandidate & enhanced);
+
+protected:
+ std::vector<EnhancedCandidate> m_candidates;
+};
+
+};
+
+#endif
diff --git a/src/PYPLuaTriggerCandidates.h b/src/PYPLuaTriggerCandidates.h
new file mode 100644
index 0000000..7c9d42e
--- /dev/null
+++ b/src/PYPLuaTriggerCandidates.h
@@ -0,0 +1,46 @@
+/* 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.
+ */
+
+#ifndef __PY_LIB_PINYIN_LUA_TRIGGER_CANDIDATES_H_
+#define __PY_LIB_PINYIN_LUA_TRIGGER_CANDIDATES_H_
+
+#include "PYPEnhancedCandidates.h"
+
+namespace PY {
+
+class LuaTriggerCandidates : public EnhancedCandidates {
+public:
+ LuaTriggerCandidates (PhoneticEditor *editor) {
+ m_editor = editor;
+ }
+
+public:
+ gboolean processCandidates (std::vector<EnhancedCandidate> & candidates);
+
+ SelectCandidateAction selectCandidate (EnhancedCandidate & enhanced);
+
+protected:
+ EnhancedCandidate m_candidate;
+};
+
+};
+
+#endif