mnemonics.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk1/private/mnemonics.h
  3. // Purpose: helper functions for dealing with GTK+ mnemonics
  4. // Author: Vadim Zeitlin
  5. // Created: 2007-11-12
  6. // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _GTK_PRIVATE_MNEMONICS_H_
  10. #define _GTK_PRIVATE_MNEMONICS_H_
  11. #if wxUSE_CONTROLS || wxUSE_MENUS
  12. #include "wx/string.h"
  13. // ----------------------------------------------------------------------------
  14. // functions to convert between wxWidgets and GTK+ string containing mnemonics
  15. // ----------------------------------------------------------------------------
  16. // remove all mnemonics from a string
  17. wxString wxGTKRemoveMnemonics(const wxString& label);
  18. // convert a wx string with '&' to GTK+ string with '_'s
  19. wxString wxConvertMnemonicsToGTK(const wxString& label);
  20. // convert a wx string with '&' to indicate mnemonics as well as HTML entities
  21. // to a GTK+ string with "&amp;" used instead of '&', i.e. suitable for use
  22. // with GTK+ functions using markup strings
  23. wxString wxConvertMnemonicsToGTKMarkup(const wxString& label);
  24. // convert GTK+ string with '_'s to wx string with '&'s
  25. wxString wxConvertMnemonicsFromGTK(const wxString& label);
  26. #endif // wxUSE_CONTROLS || wxUSE_MENUS
  27. #endif // _GTK_PRIVATE_MNEMONICS_H_