Debian Codegraph @

gtk/src/shortcutssection.hg

raw
1 /* Copyright (C) 2016 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/box.h>
18
19 _DEFS(gtkmm,gtk)
20 _PINCLUDE(gtkmm/private/box_p.h)
21
22 namespace Gtk
23 {
24
25 /** Represents an application mode in a ShortcutsWindow.
26 *
27 * A ShortcutsSection collects all the keyboard shortcuts and gestures
28 * for a major application mode. If your application needs multiple sections,
29 * you should give each section a unique section_name and
30 * a title that can be shown in the section selector of the ShortcutsWindow.
31 *
32 * The max_height property can be used to influence how
33 * the groups in the section are distributed over pages and columns.
34 *
35 * This widget is only meant to be used with ShortcutsWindow.
36 *
37 * @newin{3,20}
38 *
39 * @ingroup Widgets
40 */
41 class GTKMM_API ShortcutsSection : public Box
42 {
43 _CLASS_GTKOBJECT(ShortcutsSection, GtkShortcutsSection, GTK_SHORTCUTS_SECTION, Box, GtkBox, , , GTKMM_API)
44
45 public:
46 _CTOR_DEFAULT
47
48 _IGNORE_SIGNAL("change-current-page")dnl// Internal signal
49
50 _WRAP_PROPERTY("section-name", Glib::ustring)
51 _WRAP_PROPERTY("title", Glib::ustring)
52 _WRAP_PROPERTY("max-height", unsigned int)
53 _IGNORE_PROPERTY("view-name")dnl// Use ShortcutsWindow::property_view_name()
54 };
55
56 } // namespace Gtk