]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/private/mnemonics.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / gtk / private / mnemonics.h
CommitLineData
b1f17bf0 1///////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/gtk/private/mnemonics.h
b1f17bf0
VZ
3// Purpose: helper functions for dealing with GTK+ mnemonics
4// Author: Vadim Zeitlin
5// Created: 2007-11-12
b1f17bf0
VZ
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
22wxString wxGTKRemoveMnemonics(const wxString& label);
23
24// convert a wx string with '&' to GTK+ string with '_'s
25wxString 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 "&amp;" used instead of '&', i.e. suitable for use
29// with GTK+ functions using markup strings
30wxString wxConvertMnemonicsToGTKMarkup(const wxString& label);
31
32// convert GTK+ string with '_'s to wx string with '&'s
33wxString wxConvertMnemonicsFromGTK(const wxString& label);
34
35#endif // wxUSE_CONTROLS || wxUSE_MENUS
36
37#endif // _GTK_PRIVATE_MNEMONICS_H_
38