extensions management unified

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-01-25 15:12:02 +00:00
parent 66b7ea46c7
commit 5974c3cf06
3 changed files with 49 additions and 69 deletions

View File

@@ -1990,25 +1990,25 @@ WX_DEFINE_EXPORTED_OBJARRAY(MacDefaultExtensionArray) ;
MacDefaultExtensionArray gMacDefaultExtensions ;
// load the default extensions
MacDefaultExtensionRecord gDefaults[] =
{
MacDefaultExtensionRecord( wxT("txt") , 'TEXT' , 'ttxt' ) ,
MacDefaultExtensionRecord( wxT("tif") , 'TIFF' , '****' ) ,
MacDefaultExtensionRecord( wxT("jpg") , 'JPEG' , '****' ) ,
} ;
static void MacEnsureDefaultExtensionsLoaded()
{
if ( !gMacDefaultExtensionsInited )
{
// load the default extensions
MacDefaultExtensionRecord defaults[1] =
if ( !gMacDefaultExtensionsInited )
{
MacDefaultExtensionRecord( wxT("txt") , 'TEXT' , 'ttxt' ) ,
} ;
// we could load the pc exchange prefs here too
for ( size_t i = 0 ; i < WXSIZEOF( defaults ) ; ++i )
{
gMacDefaultExtensions.Add( defaults[i] ) ;
// we could load the pc exchange prefs here too
for ( size_t i = 0 ; i < WXSIZEOF( gDefaults ) ; ++i )
{
gMacDefaultExtensions.Add( gDefaults[i] ) ;
}
gMacDefaultExtensionsInited = true ;
}
gMacDefaultExtensionsInited = true ;
}
}
bool wxFileName::MacSetTypeAndCreator( wxUint32 type , wxUint32 creator )
{