1 /* vim:set et ts=4 sts=4:
3 * ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus
5 * Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef __PY_PINYIN_PROPERTIES_H_
22 #define __PY_PINYIN_PROPERTIES_H_
25 #include "PYProperty.h"
31 class PinyinProperties {
33 PinyinProperties (Config & config);
35 void toggleModeChinese (void);
36 void toggleModeFull (void);
37 void toggleModeFullPunct (void);
38 void toggleModeSimp (void);
42 gboolean modeChinese (void) const { return m_mode_chinese; }
43 gboolean modeFull (void) const { return m_mode_full; }
44 gboolean modeFullPunct (void) const { return m_mode_full_punct; }
45 gboolean modeSimp (void) const { return m_mode_simp; }
47 PropList & properties (void) { return m_props; }
49 gboolean propertyActivate (const gchar *prop_name, guint prop_state);
51 signal <void (Property &)> & signalUpdateProperty (void)
53 return m_signal_update_property;
57 void updateProperty (Property & prop) const
59 m_signal_update_property (prop);
62 signal <void (Property &)> m_signal_update_property;
66 gboolean m_mode_chinese;
68 gboolean m_mode_full_punct;
72 Property m_prop_chinese;
74 Property m_prop_full_punct;
76 Property m_prop_setup;