]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/misc2.py
Emptied patch.rsp
[wxWidgets.git] / wxPython / src / msw / misc2.py
index 560ac688d218150760db02f50cd82ebc6b658d0a..f8be3794cbe6682a8b87729aa8f3af906da1fe2f 100644 (file)
@@ -12,6 +12,8 @@ from clip_dnd import *
 from events import *
 
 from streams import *
+
+from utils import *
 class wxToolTipPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
@@ -100,8 +102,8 @@ class wxFontEnumeratorPtr :
     def __del__(self,misc2c=misc2c):
         if self.thisown == 1 :
             misc2c.delete_wxFontEnumerator(self)
-    def _setSelf(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFontEnumerator__setSelf,(self,) + _args, _kwargs)
+    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)
@@ -121,7 +123,7 @@ class wxFontEnumerator(wxFontEnumeratorPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs)
         self.thisown = 1
-        self._setSelf(self, wxFontEnumerator)
+        self._setCallbackInfo(self, wxFontEnumerator, 0)
 
 
 
@@ -257,6 +259,26 @@ class wxDragImage(wxDragImagePtr):
 
 
 
+def wxDragIcon(*_args,**_kwargs):
+    val = wxDragImagePtr(apply(misc2c.new_wxDragIcon,_args,_kwargs))
+    val.thisown = 1
+    return val
+
+def wxDragString(*_args,**_kwargs):
+    val = wxDragImagePtr(apply(misc2c.new_wxDragString,_args,_kwargs))
+    val.thisown = 1
+    return val
+
+def wxDragTreeItem(*_args,**_kwargs):
+    val = wxDragImagePtr(apply(misc2c.new_wxDragTreeItem,_args,_kwargs))
+    val.thisown = 1
+    return val
+
+def wxDragListItem(*_args,**_kwargs):
+    val = wxDragImagePtr(apply(misc2c.new_wxDragListItem,_args,_kwargs))
+    val.thisown = 1
+    return val
+
 
 class wxPyTimerPtr(wxObjectPtr):
     def __init__(self,this):
@@ -293,6 +315,32 @@ class wxPyTimer(wxPyTimerPtr):
 
 
 
+class wxStopWatchPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def Start(self, *_args, **_kwargs):
+        val = apply(misc2c.wxStopWatch_Start,(self,) + _args, _kwargs)
+        return val
+    def Pause(self, *_args, **_kwargs):
+        val = apply(misc2c.wxStopWatch_Pause,(self,) + _args, _kwargs)
+        return val
+    def Resume(self, *_args, **_kwargs):
+        val = apply(misc2c.wxStopWatch_Resume,(self,) + _args, _kwargs)
+        return val
+    def Time(self, *_args, **_kwargs):
+        val = apply(misc2c.wxStopWatch_Time,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxStopWatch instance at %s>" % (self.this,)
+class wxStopWatch(wxStopWatchPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxStopWatch,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
 class wxLogPtr :
     def __init__(self,this):
         self.this = this
@@ -309,6 +357,9 @@ class wxLogPtr :
     def GetVerbose(self, *_args, **_kwargs):
         val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs)
         return val
+    def TimeStamp(self, *_args, **_kwargs):
+        val = apply(misc2c.wxLog_TimeStamp,(self,) + _args, _kwargs)
+        return val
     def __repr__(self):
         return "<C wxLog instance at %s>" % (self.this,)
 class wxLog(wxLogPtr):
@@ -408,6 +459,54 @@ class wxLogNull(wxLogNullPtr):
 
 
 
+class wxLogChainPtr(wxLogPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def SetLog(self, *_args, **_kwargs):
+        val = apply(misc2c.wxLogChain_SetLog,(self,) + _args, _kwargs)
+        return val
+    def PassMessages(self, *_args, **_kwargs):
+        val = apply(misc2c.wxLogChain_PassMessages,(self,) + _args, _kwargs)
+        return val
+    def IsPassingMessages(self, *_args, **_kwargs):
+        val = apply(misc2c.wxLogChain_IsPassingMessages,(self,) + _args, _kwargs)
+        return val
+    def GetOldLog(self, *_args, **_kwargs):
+        val = apply(misc2c.wxLogChain_GetOldLog,(self,) + _args, _kwargs)
+        if val: val = wxLogPtr(val) 
+        return val
+    def __repr__(self):
+        return "<C wxLogChain instance at %s>" % (self.this,)
+class wxLogChain(wxLogChainPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxLogChain,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxPyLogPtr(wxLogPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def _setCallbackInfo(self, *_args, **_kwargs):
+        val = apply(misc2c.wxPyLog__setCallbackInfo,(self,) + _args, _kwargs)
+        return val
+    def Destroy(self, *_args, **_kwargs):
+        val = apply(misc2c.wxPyLog_Destroy,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxPyLog instance at %s>" % (self.this,)
+class wxPyLog(wxPyLogPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxPyLog,_args,_kwargs)
+        self.thisown = 1
+        self._setCallbackInfo(self, wxPyLog)
+
+
+
+
 class wxProcessEventPtr(wxEventPtr):
     def __init__(self,this):
         self.this = this
@@ -449,8 +548,8 @@ class wxProcessPtr(wxEvtHandlerPtr):
     def Destroy(self, *_args, **_kwargs):
         val = apply(misc2c.wxProcess_Destroy,(self,) + _args, _kwargs)
         return val
-    def _setSelf(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess__setSelf,(self,) + _args, _kwargs)
+    def _setCallbackInfo(self, *_args, **_kwargs):
+        val = apply(misc2c.wxProcess__setCallbackInfo,(self,) + _args, _kwargs)
         return val
     def base_OnTerminate(self, *_args, **_kwargs):
         val = apply(misc2c.wxProcess_base_OnTerminate,(self,) + _args, _kwargs)
@@ -483,7 +582,7 @@ class wxProcess(wxProcessPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(misc2c.new_wxProcess,_args,_kwargs)
         self.thisown = 1
-        self._setSelf(self, wxProcess)
+        self._setCallbackInfo(self, wxProcess)
 
 
 
@@ -655,6 +754,223 @@ class wxWave(wxWavePtr):
 
 
 
+class wxFileTypeInfoPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def IsValid(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_IsValid,(self,) + _args, _kwargs)
+        return val
+    def SetIcon(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_SetIcon,(self,) + _args, _kwargs)
+        return val
+    def SetShortDesc(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_SetShortDesc,(self,) + _args, _kwargs)
+        return val
+    def GetMimeType(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetMimeType,(self,) + _args, _kwargs)
+        return val
+    def GetOpenCommand(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetOpenCommand,(self,) + _args, _kwargs)
+        return val
+    def GetPrintCommand(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetPrintCommand,(self,) + _args, _kwargs)
+        return val
+    def GetShortDesc(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetShortDesc,(self,) + _args, _kwargs)
+        return val
+    def GetDescription(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetDescription,(self,) + _args, _kwargs)
+        return val
+    def GetExtensions(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetExtensions,(self,) + _args, _kwargs)
+        return val
+    def GetExtensionsCount(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetExtensionsCount,(self,) + _args, _kwargs)
+        return val
+    def GetIconFile(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetIconFile,(self,) + _args, _kwargs)
+        return val
+    def GetIconIndex(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileTypeInfo_GetIconIndex,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxFileTypeInfo instance at %s>" % (self.this,)
+class wxFileTypeInfo(wxFileTypeInfoPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxFileTypeInfo,_args,_kwargs)
+        self.thisown = 1
+
+
+
+def wxFileTypeInfoSequence(*_args,**_kwargs):
+    val = wxFileTypeInfoPtr(apply(misc2c.new_wxFileTypeInfoSequence,_args,_kwargs))
+    val.thisown = 1
+    return val
+
+def wxNullFileTypeInfo(*_args,**_kwargs):
+    val = wxFileTypeInfoPtr(apply(misc2c.new_wxNullFileTypeInfo,_args,_kwargs))
+    val.thisown = 1
+    return val
+
+
+class wxFileTypePtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetMimeType(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetMimeType,(self,) + _args, _kwargs)
+        return val
+    def GetMimeTypes(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetMimeTypes,(self,) + _args, _kwargs)
+        return val
+    def GetExtensions(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetExtensions,(self,) + _args, _kwargs)
+        return val
+    def GetIcon(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetIcon,(self,) + _args, _kwargs)
+        if val: val = wxIconPtr(val) ; val.thisown = 1
+        return val
+    def GetIconInfo(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetIconInfo,(self,) + _args, _kwargs)
+        return val
+    def GetDescription(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetDescription,(self,) + _args, _kwargs)
+        return val
+    def GetOpenCommand(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetOpenCommand,(self,) + _args, _kwargs)
+        return val
+    def GetPrintCommand(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetPrintCommand,(self,) + _args, _kwargs)
+        return val
+    def GetAllCommands(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_GetAllCommands,(self,) + _args, _kwargs)
+        return val
+    def SetCommand(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_SetCommand,(self,) + _args, _kwargs)
+        return val
+    def SetDefaultIcon(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_SetDefaultIcon,(self,) + _args, _kwargs)
+        return val
+    def Unassociate(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileType_Unassociate,(self,) + _args, _kwargs)
+        return val
+    def __del__(self,misc2c=misc2c):
+        if self.thisown == 1 :
+            misc2c.delete_wxFileType(self)
+    def __repr__(self):
+        return "<C wxFileType instance at %s>" % (self.this,)
+class wxFileType(wxFileTypePtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxFileType,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxMimeTypesManagerPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def Initialize(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_Initialize,(self,) + _args, _kwargs)
+        return val
+    def ClearData(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_ClearData,(self,) + _args, _kwargs)
+        return val
+    def GetFileTypeFromExtension(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromExtension,(self,) + _args, _kwargs)
+        if val: val = wxFileTypePtr(val) ; val.thisown = 1
+        return val
+    def GetFileTypeFromMimeType(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromMimeType,(self,) + _args, _kwargs)
+        if val: val = wxFileTypePtr(val) ; val.thisown = 1
+        return val
+    def ReadMailcap(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_ReadMailcap,(self,) + _args, _kwargs)
+        return val
+    def ReadMimeTypes(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_ReadMimeTypes,(self,) + _args, _kwargs)
+        return val
+    def EnumAllFileTypes(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_EnumAllFileTypes,(self,) + _args, _kwargs)
+        return val
+    def AddFallback(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_AddFallback,(self,) + _args, _kwargs)
+        return val
+    def Associate(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_Associate,(self,) + _args, _kwargs)
+        if val: val = wxFileTypePtr(val) ; val.thisown = 1
+        return val
+    def Unassociate(self, *_args, **_kwargs):
+        val = apply(misc2c.wxMimeTypesManager_Unassociate,(self,) + _args, _kwargs)
+        return val
+    def __del__(self,misc2c=misc2c):
+        if self.thisown == 1 :
+            misc2c.delete_wxMimeTypesManager(self)
+    def __repr__(self):
+        return "<C wxMimeTypesManager instance at %s>" % (self.this,)
+class wxMimeTypesManager(wxMimeTypesManagerPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxMimeTypesManager,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxFileHistoryPtr(wxObjectPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self,misc2c=misc2c):
+        if self.thisown == 1 :
+            misc2c.delete_wxFileHistory(self)
+    def AddFileToHistory(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_AddFileToHistory,(self,) + _args, _kwargs)
+        return val
+    def RemoveFileFromHistory(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_RemoveFileFromHistory,(self,) + _args, _kwargs)
+        return val
+    def GetMaxFiles(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_GetMaxFiles,(self,) + _args, _kwargs)
+        return val
+    def UseMenu(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_UseMenu,(self,) + _args, _kwargs)
+        return val
+    def RemoveMenu(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_RemoveMenu,(self,) + _args, _kwargs)
+        return val
+    def Load(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_Load,(self,) + _args, _kwargs)
+        return val
+    def Save(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_Save,(self,) + _args, _kwargs)
+        return val
+    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)
+        return val
+    def GetHistoryFile(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_GetHistoryFile,(self,) + _args, _kwargs)
+        return val
+    def GetCount(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_GetCount,(self,) + _args, _kwargs)
+        return val
+    def GetNoHistoryFiles(self, *_args, **_kwargs):
+        val = apply(misc2c.wxFileHistory_GetNoHistoryFiles,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxFileHistory instance at %s>" % (self.this,)
+class wxFileHistory(wxFileHistoryPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(misc2c.new_wxFileHistory,_args,_kwargs)
+        self.thisown = 1
+
+
+
+
 
 
 #-------------- FUNCTION WRAPPERS ------------------
@@ -791,26 +1107,6 @@ def wxCreateFileTipProvider(*_args, **_kwargs):
     if val: val = wxTipProviderPtr(val); val.thisown = 1
     return val
 
-def wxDragIcon(*_args, **_kwargs):
-    val = apply(misc2c.wxDragIcon,_args,_kwargs)
-    if val: val = wxDragImagePtr(val); val.thisown = 1
-    return val
-
-def wxDragString(*_args, **_kwargs):
-    val = apply(misc2c.wxDragString,_args,_kwargs)
-    if val: val = wxDragImagePtr(val); val.thisown = 1
-    return val
-
-def wxDragTreeItem(*_args, **_kwargs):
-    val = apply(misc2c.wxDragTreeItem,_args,_kwargs)
-    if val: val = wxDragImagePtr(val); val.thisown = 1
-    return val
-
-def wxDragListItem(*_args, **_kwargs):
-    val = apply(misc2c.wxDragListItem,_args,_kwargs)
-    if val: val = wxDragImagePtr(val); val.thisown = 1
-    return val
-
 wxSysErrorCode = misc2c.wxSysErrorCode
 
 wxSysErrorMsg = misc2c.wxSysErrorMsg
@@ -874,10 +1170,20 @@ wxLog_AddTraceMask = misc2c.wxLog_AddTraceMask
 
 wxLog_RemoveTraceMask = misc2c.wxLog_RemoveTraceMask
 
+wxLog_ClearTraceMasks = misc2c.wxLog_ClearTraceMasks
+
+wxLog_SetTimestamp = misc2c.wxLog_SetTimestamp
+
+wxLog_GetTimestamp = misc2c.wxLog_GetTimestamp
+
 wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask
 
 wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
 
+wxFileType_ExpandCommand = misc2c.wxFileType_ExpandCommand
+
+wxMimeTypesManager_IsOfType = misc2c.wxMimeTypesManager_IsOfType
+
 
 
 #-------------- VARIABLE WRAPPERS ------------------
@@ -979,3 +1285,10 @@ wxLOG_Trace = misc2c.wxLOG_Trace
 wxLOG_Progress = misc2c.wxLOG_Progress
 wxLOG_User = misc2c.wxLOG_User
 wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS
+wxMAILCAP_STANDARD = misc2c.wxMAILCAP_STANDARD
+wxMAILCAP_NETSCAPE = misc2c.wxMAILCAP_NETSCAPE
+wxMAILCAP_KDE = misc2c.wxMAILCAP_KDE
+wxMAILCAP_GNOME = misc2c.wxMAILCAP_GNOME
+wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL
+cvar = misc2c.cvar
+wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager)