/* Copyright (C) 2005 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ #include #include _DEFS(gtkmm,gtk) _PINCLUDE(gtkmm/private/cellrenderertext_p.h) namespace Gtk { _WRAP_ENUM(CellRendererAccelMode, GtkCellRendererAccelMode, decl_prefix GTKMM_API) /** * Renders a keyboard accelerator in a cell. * * Gtk::CellRendererAccel displays a keyboard accelerator * (i.e. a key combination like -a). * If the cell renderer is editable, the accelerator can be changed by * simply typing the new combination. * * Key values are the codes which are sent whenever a key is pressed or released. * The complete list of key values can be found in the * gdk/gdkkeysyms.h * header file. They are prefixed with GDK_KEY_. * * @ingroup TreeView * @newin{2,10} */ class GTKMM_API CellRendererAccel : public CellRendererText { _CLASS_GTKOBJECT(CellRendererAccel, GtkCellRendererAccel, GTK_CELL_RENDERER_ACCEL, Gtk::CellRendererText, GtkCellRendererText, , , GTKMM_API) public: _CTOR_DEFAULT #m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING) //TODO: Wrap accel_key and accel_mods in an AccelKey? _WRAP_SIGNAL(void accel_edited(const Glib::ustring& path_string, guint accel_key, Gdk::ModifierType accel_mods, guint hardware_keycode), "accel_edited") _WRAP_SIGNAL(void accel_cleared(const Glib::ustring& path_string), "accel_cleared") _WRAP_PROPERTY("accel-key", guint) _WRAP_PROPERTY("accel-mods", Gdk::ModifierType) _WRAP_PROPERTY("keycode", guint) _WRAP_PROPERTY("accel-mode", CellRendererAccelMode) Glib::PropertyProxy_Base _property_renderable() override; }; } //namespace Gtk