Remmina - The GTK+ Remote Desktop Client  v1.4.34
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
remmina_key_chooser.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2010 Vic Lee
4  * Copyright (C) 2017-2023 Antenore Gatta, Giovanni Panozzo
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * In addition, as a special exception, the copyright holders give
22  * permission to link the code of portions of this program with the
23  * OpenSSL library under certain conditions as described in each
24  * individual source file, and distribute linked combinations
25  * including the two.
26  * You must obey the GNU General Public License in all respects
27  * for all of the code used other than OpenSSL. * If you modify
28  * file(s) with this exception, you may extend this exception to your
29  * version of the file(s), but you are not obligated to do so. * If you
30  * do not wish to do so, delete this exception statement from your
31  * version. * If you delete this exception statement from all source
32  * files in the program, then also delete it here.
33  *
34  */
35 
36 #pragma once
37 
38 #include <gtk/gtk.h>
39 
40 #define KEY_MODIFIER_SHIFT _("Shift+")
41 #define KEY_MODIFIER_CTRL _("Ctrl+")
42 #define KEY_MODIFIER_ALT _("Alt+")
43 #define KEY_MODIFIER_SUPER _("Super+")
44 #define KEY_MODIFIER_HYPER _("Hyper+")
45 #define KEY_MODIFIER_META _("Meta+")
46 #define KEY_CHOOSER_NONE _("<None>")
47 
49  guint keyval;
50  guint state;
51  gboolean use_modifiers;
52  gint response;
54 
55 G_BEGIN_DECLS
56 
57 /* Show a key chooser dialog and return the keyval for the selected key */
58 RemminaKeyChooserArguments *remmina_key_chooser_new(GtkWindow *parent_window, gboolean use_modifiers);
59 /* Get the uppercase character value of a keyval */
60 gchar *remmina_key_chooser_get_value(guint keyval, guint state);
61 /* Get the keyval of a (lowercase) character value */
62 guint remmina_key_chooser_get_keyval(const gchar *value);
63 
64 G_END_DECLS
gchar * remmina_key_chooser_get_value(guint keyval, guint state)
G_BEGIN_DECLS RemminaKeyChooserArguments * remmina_key_chooser_new(GtkWindow *parent_window, gboolean use_modifiers)
guint remmina_key_chooser_get_keyval(const gchar *value)
struct _RemminaKeyChooserArguments RemminaKeyChooserArguments