]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/private/mnemonics.h
98907cd7795acc8c3712f00dcce1a3b406a0fd49
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/private/mnemonics.h
3 // Purpose: helper functions for dealing with GTK+ mnemonics
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _GTK_PRIVATE_MNEMONICS_H_
11 #define _GTK_PRIVATE_MNEMONICS_H_
13 #if wxUSE_CONTROLS || wxUSE_MENUS
15 #include "wx/string.h"
17 // ----------------------------------------------------------------------------
18 // functions to convert between wxWidgets and GTK+ string containing mnemonics
19 // ----------------------------------------------------------------------------
21 // remove all mnemonics from a string
22 wxString
wxGTKRemoveMnemonics(const wxString
& label
);
24 // convert a wx string with '&' to GTK+ string with '_'s
25 wxString
wxConvertMnemonicsToGTK(const wxString
& label
);
27 // convert a wx string with '&' to indicate mnemonics as well as HTML entities
28 // to a GTK+ string with "&" used instead of '&', i.e. suitable for use
29 // with GTK+ functions using markup strings
30 wxString
wxConvertMnemonicsToGTKMarkup(const wxString
& label
);
32 // convert GTK+ string with '_'s to wx string with '&'s
33 wxString
wxConvertMnemonicsFromGTK(const wxString
& label
);
35 #endif // wxUSE_CONTROLS || wxUSE_MENUS
37 #endif // _GTK_PRIVATE_MNEMONICS_H_