/** * @file libsexymm/spell-entry.hg Spell checked entry widget * * @Copyright (C) 2005 Christian Hammond. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include #include _DEFS(libsexymm,libsexy) _PINCLUDE(gtkmm/private/entry_p.h) namespace Sexy { _CC_INCLUDE(libsexy/sexy-enum-types.h) _WRAP_ENUM(SpellError, SexySpellError) class SpellEntry : public Gtk::Entry { _CLASS_GTKOBJECT(SpellEntry, SexySpellEntry, SEXY_SPELL_ENTRY, Gtk::Entry, GtkEntry) public: _CTOR_DEFAULT _IGNORE(sexy_spell_entry_set_active_languages) _IGNORE(sexy_spell_entry_get_language_name) _IGNORE(sexy_spell_entry_activate_language) _WRAP_METHOD(Glib::SListHandle get_languages() const, sexy_spell_entry_get_languages) Glib::ustring get_language_name(const Glib::ustring& lang) const; _WRAP_METHOD(bool language_is_active(const Glib::ustring& lang), sexy_spell_entry_language_is_active) bool activate_language(const Glib::ustring& lang); _WRAP_METHOD(void deactivate_language(const Glib::ustring& lang), sexy_spell_entry_deactivate_language); bool set_active_languages(const Glib::SListHandle& langs); _WRAP_METHOD(Glib::SListHandle get_active_languages() const, sexy_spell_entry_get_active_languages) _WRAP_METHOD(bool is_checked() const, sexy_spell_entry_is_checked) _WRAP_METHOD(void set_checked(bool checked), sexy_spell_entry_set_checked) _WRAP_METHOD(void activate_default_languages(), sexy_spell_entry_activate_default_languages) _WRAP_SIGNAL(bool word_check(const Glib::ustring& word), word_check) }; } /* namespace Sexy */ // vim: syntax=cpp