]>
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 | |
a9a4f229 | 6 | // RCS-ID: $Id$ |
93591996 JJ |
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 "&" 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 |