]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/mnemonics.h
Applied patch [ 1845819 ] wxMSW Top level window freeze fix for trunk
[wxWidgets.git] / include / wx / gtk / private / mnemonics.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: gtk/private/mnemonics.h
3 // Purpose: helper functions for dealing with GTK+ mnemonics
4 // Author: Vadim Zeitlin
5 // Created: 2007-11-12
6 // RCS-ID: $Id$
7 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _GTK_PRIVATE_MNEMONICS_H_
12 #define _GTK_PRIVATE_MNEMONICS_H_
13
14 #if wxUSE_CONTROLS || wxUSE_MENUS
15
16 #include "wx/string.h"
17
18 // ----------------------------------------------------------------------------
19 // functions to convert between wxWidgets and GTK+ string containing mnemonics
20 // ----------------------------------------------------------------------------
21
22 // remove all mnemonics from a string
23 wxString wxGTKRemoveMnemonics(const wxString& label);
24
25 // convert a wx string with '&' to GTK+ string with '_'s
26 wxString wxConvertMnemonicsToGTK(const wxString& label);
27
28 // convert a wx string with '&' to indicate mnemonics as well as HTML entities
29 // to a GTK+ string with "&amp;" used instead of '&', i.e. suitable for use
30 // with GTK+ functions using markup strings
31 wxString wxConvertMnemonicsToGTKMarkup(const wxString& label);
32
33 // convert GTK+ string with '_'s to wx string with '&'s
34 wxString wxConvertMnemonicsFromGTK(const wxString& label);
35
36 #endif // wxUSE_CONTROLS || wxUSE_MENUS
37
38 #endif // _GTK_PRIVATE_MNEMONICS_H_
39