X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84a81942dd0a64d7dbbf6f1ad7127c2de16c1363..01e4ec19805f0decf6adde30a9f77b03340d60b5:/wxPython/src/gtk/cmndlgs.py diff --git a/wxPython/src/gtk/cmndlgs.py b/wxPython/src/gtk/cmndlgs.py index 05e508a769..d9d51fdd0f 100644 --- a/wxPython/src/gtk/cmndlgs.py +++ b/wxPython/src/gtk/cmndlgs.py @@ -9,14 +9,32 @@ from windows import * from clip_dnd import * +from events import * + from frames import * from stattool import * from controls import * - -from events import * import wx + + +def EVT_COMMAND_FIND(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_FIND, func) + +def EVT_COMMAND_FIND_NEXT(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT, func) + +def EVT_COMMAND_FIND_REPLACE(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE, func) + +def EVT_COMMAND_FIND_REPLACE_ALL(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL, func) + +def EVT_COMMAND_FIND_CLOSE(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE, func) + + class wxColourDataPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -71,7 +89,7 @@ class wxColourDialog(wxColourDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -104,7 +122,7 @@ class wxDirDialog(wxDirDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -170,7 +188,28 @@ class wxFileDialog(wxFileDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) + + + + +class wxMultiChoiceDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def SetSelections(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxMultiChoiceDialog_SetSelections,(self,) + _args, _kwargs) + return val + def GetSelections(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxMultiChoiceDialog_GetSelections,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxMultiChoiceDialog(wxMultiChoiceDialogPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(cmndlgsc.new_wxMultiChoiceDialog,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) @@ -197,7 +236,7 @@ class wxSingleChoiceDialog(wxSingleChoiceDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -221,7 +260,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -302,7 +341,7 @@ class wxFontDialog(wxFontDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -320,7 +359,7 @@ class wxMessageDialog(wxMessageDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs) self.thisown = 1 - #wx._StdDialogCallbacks(self) + self._setOORInfo(self) @@ -341,8 +380,111 @@ class wxProgressDialog(wxProgressDialogPtr): def __init__(self,*_args,**_kwargs): self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) + + + + +class wxFindDialogEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetFlags(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs) + return val + def GetFindString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs) + return val + def GetReplaceString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs) + return val + def GetDialog(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs) + if val: val = wxFindReplaceDialogPtr(val) + return val + def SetFlags(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs) + return val + def SetFindString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs) + return val + def SetReplaceString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxFindDialogEvent(wxFindDialogEventPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs) + self.thisown = 1 + + + + +class wxFindReplaceDataPtr(wxObjectPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __del__(self,cmndlgsc=cmndlgsc): + if self.thisown == 1 : + cmndlgsc.delete_wxFindReplaceData(self) + def GetFindString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs) + return val + def GetReplaceString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs) + return val + def GetFlags(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs) + return val + def SetFlags(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs) + return val + def SetFindString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs) + return val + def SetReplaceString(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxFindReplaceData(wxFindReplaceDataPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs) + self.thisown = 1 + + + + +class wxFindReplaceDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def Create(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs) + return val + def GetData(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs) + if val: val = wxFindReplaceDataPtr(val) + return val + def SetData(self, *_args, **_kwargs): + val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxFindReplaceDialog(wxFindReplaceDialogPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) + +def wxPreFindReplaceDialog(*_args,**_kwargs): + val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs)) + val.thisown = 1 + val._setOORInfo(val) + return val @@ -353,3 +495,16 @@ class wxProgressDialog(wxProgressDialogPtr): #-------------- VARIABLE WRAPPERS ------------------ +wxCHOICEDLG_STYLE = cmndlgsc.wxCHOICEDLG_STYLE +wxFR_DOWN = cmndlgsc.wxFR_DOWN +wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD +wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE +wxFR_REPLACEDIALOG = cmndlgsc.wxFR_REPLACEDIALOG +wxFR_NOUPDOWN = cmndlgsc.wxFR_NOUPDOWN +wxFR_NOMATCHCASE = cmndlgsc.wxFR_NOMATCHCASE +wxFR_NOWHOLEWORD = cmndlgsc.wxFR_NOWHOLEWORD +wxEVT_COMMAND_FIND = cmndlgsc.wxEVT_COMMAND_FIND +wxEVT_COMMAND_FIND_NEXT = cmndlgsc.wxEVT_COMMAND_FIND_NEXT +wxEVT_COMMAND_FIND_REPLACE = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE +wxEVT_COMMAND_FIND_REPLACE_ALL = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE_ALL +wxEVT_COMMAND_FIND_CLOSE = cmndlgsc.wxEVT_COMMAND_FIND_CLOSE