]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/private/mnemonics.h
going private for m_peer to give a foundation for better encapsulation
[wxWidgets.git] / include / wx / gtk1 / private / mnemonics.h
CommitLineData
93591996
JJ
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: mnemonics.h 49869 2007-11-12 19:41:38Z VZ $
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
23wxString wxGTKRemoveMnemonics(const wxString& label);
24
25// convert a wx string with '&' to GTK+ string with '_'s
26wxString 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
31wxString wxConvertMnemonicsToGTKMarkup(const wxString& label);
32
33// convert GTK+ string with '_'s to wx string with '&'s
34wxString wxConvertMnemonicsFromGTK(const wxString& label);
35
36#endif // wxUSE_CONTROLS || wxUSE_MENUS
37
38#endif // _GTK_PRIVATE_MNEMONICS_H_
39