X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8af26133d9906216890eecf33fd47186d9e5b76d..32b70aec1ff90877ae0ce2ce82967f698218fbdc:/wxPython/src/msw/misc2.py diff --git a/wxPython/src/msw/misc2.py b/wxPython/src/msw/misc2.py index f8be3794cb..0895ab25a5 100644 --- a/wxPython/src/msw/misc2.py +++ b/wxPython/src/msw/misc2.py @@ -7,6 +7,8 @@ from misc import * from gdi import * +from fonts import * + from clip_dnd import * from events import * @@ -14,6 +16,19 @@ from events import * from streams import * from utils import * +class wxSystemSettingsPtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxSystemSettings(wxSystemSettingsPtr): + def __init__(self,this): + self.this = this + + + + class wxToolTipPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -95,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 "" % (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 @@ -319,6 +301,9 @@ class wxStopWatchPtr : def __init__(self,this): self.this = this self.thisown = 0 + def __del__(self,misc2c=misc2c): + if self.thisown == 1 : + misc2c.delete_wxStopWatch(self) def Start(self, *_args, **_kwargs): val = apply(misc2c.wxStopWatch_Start,(self,) + _args, _kwargs) return val @@ -351,9 +336,6 @@ class wxLogPtr : def HasPendingMessages(self, *_args, **_kwargs): val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs) return val - def SetVerbose(self, *_args, **_kwargs): - val = apply(misc2c.wxLog_SetVerbose,(self,) + _args, _kwargs) - return val def GetVerbose(self, *_args, **_kwargs): val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs) return val @@ -949,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) @@ -977,6 +959,12 @@ class wxFileHistory(wxFileHistoryPtr): wxFileSelector = misc2c.wxFileSelector +wxLoadFileSelector = misc2c.wxLoadFileSelector + +wxSaveFileSelector = misc2c.wxSaveFileSelector + +wxDirSelector = misc2c.wxDirSelector + wxGetTextFromUser = misc2c.wxGetTextFromUser wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser @@ -1070,18 +1058,6 @@ wxResourceParseFile = misc2c.wxResourceParseFile wxResourceParseString = misc2c.wxResourceParseString -def wxSystemSettings_GetSystemColour(*_args, **_kwargs): - val = apply(misc2c.wxSystemSettings_GetSystemColour,_args,_kwargs) - if val: val = wxColourPtr(val); val.thisown = 1 - return val - -def wxSystemSettings_GetSystemFont(*_args, **_kwargs): - val = apply(misc2c.wxSystemSettings_GetSystemFont,_args,_kwargs) - if val: val = wxFontPtr(val); val.thisown = 1 - return val - -wxSystemSettings_GetSystemMetric = misc2c.wxSystemSettings_GetSystemMetric - wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime @@ -1136,6 +1112,20 @@ def wxWaveData(*_args, **_kwargs): if val: val = wxWavePtr(val); val.thisown = 1 return val +def wxSystemSettings_GetColour(*_args, **_kwargs): + val = apply(misc2c.wxSystemSettings_GetColour,_args,_kwargs) + if val: val = wxColourPtr(val); val.thisown = 1 + return val + +def wxSystemSettings_GetFont(*_args, **_kwargs): + val = apply(misc2c.wxSystemSettings_GetFont,_args,_kwargs) + if val: val = wxFontPtr(val); val.thisown = 1 + return val + +wxSystemSettings_GetMetric = misc2c.wxSystemSettings_GetMetric + +wxSystemSettings_HasFeature = misc2c.wxSystemSettings_HasFeature + wxToolTip_Enable = misc2c.wxToolTip_Enable wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay @@ -1162,6 +1152,8 @@ wxLog_Suspend = misc2c.wxLog_Suspend wxLog_Resume = misc2c.wxLog_Resume +wxLog_SetVerbose = misc2c.wxLog_SetVerbose + wxLog_DontCreateOnDemand = misc2c.wxLog_DontCreateOnDemand wxLog_SetTraceMask = misc2c.wxLog_SetTraceMask @@ -1188,16 +1180,6 @@ wxMimeTypesManager_IsOfType = misc2c.wxMimeTypesManager_IsOfType #-------------- VARIABLE WRAPPERS ------------------ -wxSYS_WHITE_BRUSH = misc2c.wxSYS_WHITE_BRUSH -wxSYS_LTGRAY_BRUSH = misc2c.wxSYS_LTGRAY_BRUSH -wxSYS_GRAY_BRUSH = misc2c.wxSYS_GRAY_BRUSH -wxSYS_DKGRAY_BRUSH = misc2c.wxSYS_DKGRAY_BRUSH -wxSYS_BLACK_BRUSH = misc2c.wxSYS_BLACK_BRUSH -wxSYS_NULL_BRUSH = misc2c.wxSYS_NULL_BRUSH -wxSYS_HOLLOW_BRUSH = misc2c.wxSYS_HOLLOW_BRUSH -wxSYS_WHITE_PEN = misc2c.wxSYS_WHITE_PEN -wxSYS_BLACK_PEN = misc2c.wxSYS_BLACK_PEN -wxSYS_NULL_PEN = misc2c.wxSYS_NULL_PEN wxSYS_OEM_FIXED_FONT = misc2c.wxSYS_OEM_FIXED_FONT wxSYS_ANSI_FIXED_FONT = misc2c.wxSYS_ANSI_FIXED_FONT wxSYS_ANSI_VAR_FONT = misc2c.wxSYS_ANSI_VAR_FONT @@ -1208,6 +1190,7 @@ wxSYS_SYSTEM_FIXED_FONT = misc2c.wxSYS_SYSTEM_FIXED_FONT wxSYS_DEFAULT_GUI_FONT = misc2c.wxSYS_DEFAULT_GUI_FONT wxSYS_COLOUR_SCROLLBAR = misc2c.wxSYS_COLOUR_SCROLLBAR wxSYS_COLOUR_BACKGROUND = misc2c.wxSYS_COLOUR_BACKGROUND +wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP wxSYS_COLOUR_ACTIVECAPTION = misc2c.wxSYS_COLOUR_ACTIVECAPTION wxSYS_COLOUR_INACTIVECAPTION = misc2c.wxSYS_COLOUR_INACTIVECAPTION wxSYS_COLOUR_MENU = misc2c.wxSYS_COLOUR_MENU @@ -1222,21 +1205,27 @@ wxSYS_COLOUR_APPWORKSPACE = misc2c.wxSYS_COLOUR_APPWORKSPACE wxSYS_COLOUR_HIGHLIGHT = misc2c.wxSYS_COLOUR_HIGHLIGHT wxSYS_COLOUR_HIGHLIGHTTEXT = misc2c.wxSYS_COLOUR_HIGHLIGHTTEXT wxSYS_COLOUR_BTNFACE = misc2c.wxSYS_COLOUR_BTNFACE +wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE wxSYS_COLOUR_BTNSHADOW = misc2c.wxSYS_COLOUR_BTNSHADOW +wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW wxSYS_COLOUR_GRAYTEXT = misc2c.wxSYS_COLOUR_GRAYTEXT wxSYS_COLOUR_BTNTEXT = misc2c.wxSYS_COLOUR_BTNTEXT wxSYS_COLOUR_INACTIVECAPTIONTEXT = misc2c.wxSYS_COLOUR_INACTIVECAPTIONTEXT wxSYS_COLOUR_BTNHIGHLIGHT = misc2c.wxSYS_COLOUR_BTNHIGHLIGHT +wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT +wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT +wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT wxSYS_COLOUR_3DDKSHADOW = misc2c.wxSYS_COLOUR_3DDKSHADOW wxSYS_COLOUR_3DLIGHT = misc2c.wxSYS_COLOUR_3DLIGHT wxSYS_COLOUR_INFOTEXT = misc2c.wxSYS_COLOUR_INFOTEXT wxSYS_COLOUR_INFOBK = misc2c.wxSYS_COLOUR_INFOBK -wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP -wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE -wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW -wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT -wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT -wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT +wxSYS_COLOUR_LISTBOX = misc2c.wxSYS_COLOUR_LISTBOX +wxSYS_COLOUR_HOTLIGHT = misc2c.wxSYS_COLOUR_HOTLIGHT +wxSYS_COLOUR_GRADIENTACTIVECAPTION = misc2c.wxSYS_COLOUR_GRADIENTACTIVECAPTION +wxSYS_COLOUR_GRADIENTINACTIVECAPTION = misc2c.wxSYS_COLOUR_GRADIENTINACTIVECAPTION +wxSYS_COLOUR_MENUHILIGHT = misc2c.wxSYS_COLOUR_MENUHILIGHT +wxSYS_COLOUR_MENUBAR = misc2c.wxSYS_COLOUR_MENUBAR +wxSYS_COLOUR_MAX = misc2c.wxSYS_COLOUR_MAX wxSYS_MOUSE_BUTTONS = misc2c.wxSYS_MOUSE_BUTTONS wxSYS_BORDER_X = misc2c.wxSYS_BORDER_X wxSYS_BORDER_Y = misc2c.wxSYS_BORDER_Y @@ -1274,6 +1263,8 @@ wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS +wxSYS_CAN_DRAW_FRAME_DECORATIONS = misc2c.wxSYS_CAN_DRAW_FRAME_DECORATIONS +wxSYS_CAN_ICONIZE_FRAME = misc2c.wxSYS_CAN_ICONIZE_FRAME wxLOG_FatalError = misc2c.wxLOG_FatalError wxLOG_Error = misc2c.wxLOG_Error wxLOG_Warning = misc2c.wxLOG_Warning @@ -1285,6 +1276,10 @@ wxLOG_Trace = misc2c.wxLOG_Trace wxLOG_Progress = misc2c.wxLOG_Progress wxLOG_User = misc2c.wxLOG_User wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS +wxEXEC_ASYNC = misc2c.wxEXEC_ASYNC +wxEXEC_SYNC = misc2c.wxEXEC_SYNC +wxEXEC_NOHIDE = misc2c.wxEXEC_NOHIDE +wxEXEC_MAKE_GROUP_LEADER = misc2c.wxEXEC_MAKE_GROUP_LEADER wxMAILCAP_STANDARD = misc2c.wxMAILCAP_STANDARD wxMAILCAP_NETSCAPE = misc2c.wxMAILCAP_NETSCAPE wxMAILCAP_KDE = misc2c.wxMAILCAP_KDE