Move font and encoding related classes to a new module. Added

wxLocale and wxEncodingConverter.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-04-03 18:15:21 +00:00
parent af2b012d65
commit 68bc8549d8
50 changed files with 6060 additions and 3294 deletions

View File

@@ -7,6 +7,8 @@ from misc import *
from gdi import *
from fonts import *
from clip_dnd import *
from events import *
@@ -108,39 +110,6 @@ class wxCaret(wxCaretPtr):
class wxFontEnumeratorPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,misc2c=misc2c):
if self.thisown == 1 :
misc2c.delete_wxFontEnumerator(self)
def _setCallbackInfo(self, *_args, **_kwargs):
val = apply(misc2c.wxFontEnumerator__setCallbackInfo,(self,) + _args, _kwargs)
return val
def EnumerateFacenames(self, *_args, **_kwargs):
val = apply(misc2c.wxFontEnumerator_EnumerateFacenames,(self,) + _args, _kwargs)
return val
def EnumerateEncodings(self, *_args, **_kwargs):
val = apply(misc2c.wxFontEnumerator_EnumerateEncodings,(self,) + _args, _kwargs)
return val
def GetEncodings(self, *_args, **_kwargs):
val = apply(misc2c.wxFontEnumerator_GetEncodings,(self,) + _args, _kwargs)
return val
def GetFacenames(self, *_args, **_kwargs):
val = apply(misc2c.wxFontEnumerator_GetFacenames,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxFontEnumerator instance at %s>" % (self.this,)
class wxFontEnumerator(wxFontEnumeratorPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxFontEnumerator, 0)
class wxBusyCursorPtr :
def __init__(self,this):
self.this = this
@@ -962,8 +931,8 @@ class wxFileHistoryPtr(wxObjectPtr):
def AddFilesToMenu(self, *_args, **_kwargs):
val = apply(misc2c.wxFileHistory_AddFilesToMenu,(self,) + _args, _kwargs)
return val
def AddFilesToSingleMenu(self, *_args, **_kwargs):
val = apply(misc2c.wxFileHistory_AddFilesToSingleMenu,(self,) + _args, _kwargs)
def AddFilesToThisMenu(self, *_args, **_kwargs):
val = apply(misc2c.wxFileHistory_AddFilesToThisMenu,(self,) + _args, _kwargs)
return val
def GetHistoryFile(self, *_args, **_kwargs):
val = apply(misc2c.wxFileHistory_GetHistoryFile,(self,) + _args, _kwargs)