]>
git.saurik.com Git - wxWidgets.git/blob - 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
7 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _GTK_PRIVATE_MNEMONICS_H_
12 #define _GTK_PRIVATE_MNEMONICS_H_
14 #if wxUSE_CONTROLS || wxUSE_MENUS
16 #include "wx/string.h"
18 // ----------------------------------------------------------------------------
19 // functions to convert between wxWidgets and GTK+ string containing mnemonics
20 // ----------------------------------------------------------------------------
22 // remove all mnemonics from a string
23 wxString
wxGTKRemoveMnemonics(const wxString
& label
);
25 // convert a wx string with '&' to GTK+ string with '_'s
26 wxString
wxConvertMnemonicsToGTK(const wxString
& label
);
28 // convert a wx string with '&' to indicate mnemonics as well as HTML entities
29 // to a GTK+ string with "&" used instead of '&', i.e. suitable for use
30 // with GTK+ functions using markup strings
31 wxString
wxConvertMnemonicsToGTKMarkup(const wxString
& label
);
33 // convert GTK+ string with '_'s to wx string with '&'s
34 wxString
wxConvertMnemonicsFromGTK(const wxString
& label
);
36 #endif // wxUSE_CONTROLS || wxUSE_MENUS
38 #endif // _GTK_PRIVATE_MNEMONICS_H_