]>
Commit | Line | Data |
---|---|---|
93591996 | 1 | /////////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk1/private/mnemonics.h |
93591996 JJ |
3 | // Purpose: helper functions for dealing with GTK+ mnemonics |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2007-11-12 | |
93591996 JJ |
6 | // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org> |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _GTK_PRIVATE_MNEMONICS_H_ | |
11 | #define _GTK_PRIVATE_MNEMONICS_H_ | |
12 | ||
13 | #if wxUSE_CONTROLS || wxUSE_MENUS | |
14 | ||
15 | #include "wx/string.h" | |
16 | ||
17 | // ---------------------------------------------------------------------------- | |
18 | // functions to convert between wxWidgets and GTK+ string containing mnemonics | |
19 | // ---------------------------------------------------------------------------- | |
20 | ||
21 | // remove all mnemonics from a string | |
22 | wxString wxGTKRemoveMnemonics(const wxString& label); | |
23 | ||
24 | // convert a wx string with '&' to GTK+ string with '_'s | |
25 | wxString wxConvertMnemonicsToGTK(const wxString& label); | |
26 | ||
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); | |
31 | ||
32 | // convert GTK+ string with '_'s to wx string with '&'s | |
33 | wxString wxConvertMnemonicsFromGTK(const wxString& label); | |
34 | ||
35 | #endif // wxUSE_CONTROLS || wxUSE_MENUS | |
36 | ||
37 | #endif // _GTK_PRIVATE_MNEMONICS_H_ | |
38 |