added a few encoding convenience methods for pc-mac encoding and string handling, put message box buttons under translation, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -170,6 +170,27 @@ void wxMacConvertToPC( char * p ) ;
|
||||
void wxMacConvertToPC( unsigned char *p ) ;
|
||||
wxString wxMacMakePCStringFromMac( const char * p ) ;
|
||||
|
||||
// converts this string into a pascal with optional pc 2 mac encoding
|
||||
void wxMacStringToPascal( const char * from , StringPtr to , bool pc2macEncoding ) ;
|
||||
|
||||
// converts this string into a pascal with pc 2 mac encoding if s_macDefaultEncodingIsPC
|
||||
inline void wxMacStringToPascal( const char * from , StringPtr to )
|
||||
{ wxMacStringToPascal( from , to , wxApp::s_macDefaultEncodingIsPC ) ; }
|
||||
|
||||
// converts this string into a pascal with optional mac 2 pc encoding
|
||||
wxString wxMacMakeStringFromPascal( StringPtr from , bool mac2pcEncoding ) ;
|
||||
|
||||
// converts this pascal string into a wxString with pc 2 mac encoding if s_macDefaultEncodingIsPC
|
||||
inline wxString wxMacMakeStringFromPascal( StringPtr from )
|
||||
{ return wxMacMakeStringFromPascal( from , wxApp::s_macDefaultEncodingIsPC ) ; }
|
||||
|
||||
// converts this c string into a wxString with optional mac 2 pc encoding
|
||||
wxString wxMacMakeStringFromMacString( const char* from , bool mac2pcEncoding ) ;
|
||||
|
||||
// converts this c string into a wxString with pc 2 mac encoding if s_macDefaultEncodingIsPC
|
||||
inline wxString wxMacMakeStringFromMacString( const char* from )
|
||||
{ return wxMacMakeStringFromMacString( from , wxApp::s_macDefaultEncodingIsPC ) ; }
|
||||
|
||||
#endif
|
||||
// _WX_APP_H_
|
||||
|
||||
|
Reference in New Issue
Block a user