| 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/window.h> |
| 18 |
|
| 19 |
_DEFS(gtkmm,gtk) |
| 20 |
_PINCLUDE(gtkmm/private/window_p.h) |
| 21 |
|
| 22 |
namespace Gtk |
| 23 |
{ |
| 24 |
|
| 25 |
/** Toplevel which shows help for shortcuts. |
| 26 |
* |
| 27 |
* A ShortcutsWindow shows brief information about the keyboard shortcuts |
| 28 |
* and gestures of an application. The shortcuts can be grouped, and you can |
| 29 |
* have multiple sections in this window, corresponding to the major modes of |
| 30 |
* your application. |
| 31 |
* |
| 32 |
* Additionally, the shortcuts can be filtered by the current view, to avoid |
| 33 |
* showing information that is not relevant in the current application context. |
| 34 |
* |
| 35 |
* The recommended way to construct a ShortcutsWindow is with Builder, |
| 36 |
* by populating a ShortcutsWindow with one or more ShortcutsSection |
| 37 |
* objects, which contain ShortcutsGroup objects that in turn contain objects |
| 38 |
* of class ShortcutsShortcut. |
| 39 |
* |
| 40 |
* @newin{3,20} |
| 41 |
* |
| 42 |
* @ingroup Widgets |
| 43 |
*/ |
| 44 |
class GTKMM_API ShortcutsWindow : public Window |
| 45 |
{ |
| 46 |
_CLASS_GTKOBJECT(ShortcutsWindow, GtkShortcutsWindow, GTK_SHORTCUTS_WINDOW, Window, GtkWindow, , , GTKMM_API) |
| 47 |
_UNMANAGEABLE |
| 48 |
|
| 49 |
public: |
| 50 |
_CTOR_DEFAULT |
| 51 |
|
| 52 |
/** Unsets the property_view_name(). |
| 53 |
* All groups will then be shown. |
| 54 |
* |
| 55 |
* This is a convenience method that calls property_view_name().reset_value(). |
| 56 |
*/ |
| 57 |
void unset_view_name(); |
| 58 |
|
| 59 |
_IGNORE_SIGNAL(close, search)dnl// keybinding signals |
| 60 |
|
| 61 |
_WRAP_PROPERTY("section-name", Glib::ustring) |
| 62 |
_WRAP_PROPERTY("view-name", Glib::ustring) |
| 63 |
}; |
| 64 |
|
| 65 |
} // namespace Gtk |