1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _core.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13enum wxFindReplaceFlags
14{
15    wxFR_DOWN,
16    wxFR_WHOLEWORD,
17    wxFR_MATCHCASE
18};
19
20enum wxFindReplaceDialogStyles
21{
22    wxFR_REPLACEDIALOG,
23    wxFR_NOUPDOWN,
24    wxFR_NOMATCHCASE,
25    wxFR_NOWHOLEWORD
26};
27
28wxEventType wxEVT_FIND   /PyName=wxEVT_FIND/;
29
30wxEventType wxEVT_FIND_NEXT   /PyName=wxEVT_FIND_NEXT/;
31
32wxEventType wxEVT_FIND_REPLACE   /PyName=wxEVT_FIND_REPLACE/;
33
34wxEventType wxEVT_FIND_REPLACE_ALL   /PyName=wxEVT_FIND_REPLACE_ALL/;
35
36wxEventType wxEVT_FIND_CLOSE   /PyName=wxEVT_FIND_CLOSE/;
37
38class wxFindDialogEvent : wxCommandEvent
39{
40    %Docstring
41        FindDialogEvent(commandType=wxEVT_NULL, id=0)
42
43        wxFindReplaceDialog events.
44    %End
45    %TypeHeaderCode
46        #include <wx/fdrepdlg.h>
47    %End
48
49public:
50    wxFindDialogEvent(
51        wxEventType commandType = wxEVT_NULL,
52        int id = 0
53    );
54
55    wxFindReplaceDialog * GetDialog() const;
56    %Docstring
57        GetDialog() -> FindReplaceDialog
58
59        Return the pointer to the dialog which generated this event.
60    %End
61
62    wxString GetFindString() const;
63    %Docstring
64        GetFindString() -> String
65
66        Return the string to find (never empty).
67    %End
68
69    int GetFlags() const;
70    %Docstring
71        GetFlags() -> int
72
73        Get the currently selected flags: this is the combination of the
74        wxFindReplaceFlags enumeration values.
75    %End
76
77    const wxString & GetReplaceString() const;
78    %Docstring
79        GetReplaceString() -> String
80
81        Return the string to replace the search string with (only for replace
82        and replace all events).
83    %End
84
85    public:
86    virtual wxEvent* Clone() const /Factory/;
87
88
89    private:
90        wxFindDialogEvent& operator=(const wxFindDialogEvent&);
91
92
93    public:
94
95
96    %Property(name=Dialog, get=GetDialog)
97    %Property(name=FindString, get=GetFindString)
98    %Property(name=Flags, get=GetFlags)
99    %Property(name=ReplaceString, get=GetReplaceString)
100};  // end of class wxFindDialogEvent
101
102
103class wxFindReplaceData : wxObject
104{
105    %Docstring
106        FindReplaceData(flags=0)
107
108        wxFindReplaceData holds the data for wxFindReplaceDialog.
109    %End
110    %TypeHeaderCode
111        #include <wx/fdrepdlg.h>
112    %End
113
114public:
115    wxFindReplaceData(
116        wxUint32 flags = 0
117    );
118
119    const wxString & GetFindString() const;
120    %Docstring
121        GetFindString() -> String
122
123        Get the string to find.
124    %End
125
126    int GetFlags() const;
127    %Docstring
128        GetFlags() -> int
129
130        Get the combination of wxFindReplaceFlags values.
131    %End
132
133    const wxString & GetReplaceString() const;
134    %Docstring
135        GetReplaceString() -> String
136
137        Get the replacement string.
138    %End
139
140    void SetFindString(
141        const wxString & str
142    );
143    %Docstring
144        SetFindString(str)
145
146        Set the string to find (used as initial value by the dialog).
147    %End
148
149    void SetFlags(
150        wxUint32 flags
151    );
152    %Docstring
153        SetFlags(flags)
154
155        Set the flags to use to initialize the controls of the dialog.
156    %End
157
158    void SetReplaceString(
159        const wxString & str
160    );
161    %Docstring
162        SetReplaceString(str)
163
164        Set the replacement string (used as initial value by the dialog).
165    %End
166
167    public:
168
169
170    %Property(name=FindString, get=GetFindString, set=SetFindString)
171    %Property(name=Flags, get=GetFlags, set=SetFlags)
172    %Property(name=ReplaceString, get=GetReplaceString, set=SetReplaceString)
173};  // end of class wxFindReplaceData
174
175
176class wxFindReplaceDialog : wxDialog
177{
178    %Docstring
179        FindReplaceDialog()
180        FindReplaceDialog(parent, data, title=EmptyString, style=0)
181
182        wxFindReplaceDialog is a standard modeless dialog which is used to
183        allow the user to search for some text (and possibly replace it with
184        something else).
185    %End
186    %TypeHeaderCode
187        #include <wx/fdrepdlg.h>
188    %End
189
190public:
191    wxFindReplaceDialog();
192    %PreMethodCode
193        if (!wxPyCheckForApp()) return NULL;
194    %End
195
196    wxFindReplaceDialog(
197        wxWindow * parent,
198        wxFindReplaceData * data   /KeepReference/,
199        const wxString & title = wxEmptyString,
200        int style = 0
201    )   /Transfer/;
202    %PreMethodCode
203        if (!wxPyCheckForApp()) return NULL;
204    %End
205
206    ~wxFindReplaceDialog();
207
208    bool Create(
209        wxWindow * parent,
210        wxFindReplaceData * data,
211        const wxString & title = wxEmptyString,
212        int style = 0
213    )   /TransferThis/;
214    %Docstring
215        Create(parent, data, title=EmptyString, style=0) -> bool
216
217        Creates the dialog; use wxWindow::Show to show it on screen.
218    %End
219
220    const wxFindReplaceData * GetData() const;
221    %Docstring
222        GetData() -> FindReplaceData
223
224        Get the wxFindReplaceData object used by this dialog.
225    %End
226
227    public:
228    virtual wxPoint GetClientAreaOrigin() const;
229    virtual bool Validate();
230    virtual bool TransferDataToWindow();
231    virtual bool TransferDataFromWindow();
232    virtual void InitDialog();
233    virtual bool AcceptsFocus() const;
234    virtual bool AcceptsFocusRecursively() const;
235    virtual bool AcceptsFocusFromKeyboard() const;
236    virtual void AddChild( wxWindowBase *child );
237    virtual void RemoveChild( wxWindowBase *child );
238    virtual void InheritAttributes();
239    virtual bool ShouldInheritColours() const;
240    virtual void OnInternalIdle();
241    virtual wxWindow *GetMainWindowOfCompositeControl();
242    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
243    virtual void SetCanFocus(bool canFocus);
244    virtual bool Destroy();
245    virtual void SetValidator( const wxValidator &validator );
246    virtual wxValidator* GetValidator();
247
248
249    protected:
250    virtual bool ProcessEvent(wxEvent & event);
251    virtual void DoEnable(bool enable);
252    virtual void DoGetPosition(int *x, int *y) const;
253    virtual void DoGetSize(int *width, int *height) const;
254    virtual void DoGetClientSize(int *width, int *height) const;
255    virtual wxSize DoGetBestSize() const;
256    virtual wxSize DoGetBestClientSize() const;
257    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
258    virtual void DoSetClientSize(int width, int height);
259    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
260    virtual wxSize DoGetBorderSize() const;
261    virtual void DoMoveWindow(int x, int y, int width, int height);
262    virtual void DoSetWindowVariant( wxWindowVariant variant);
263    virtual wxBorder GetDefaultBorder() const;
264    virtual wxBorder GetDefaultBorderForControl() const;
265    virtual void DoFreeze();
266    virtual void DoThaw();
267    virtual bool HasTransparentBackground();
268    virtual bool TryBefore(wxEvent& event);
269    virtual bool TryAfter(wxEvent& event);
270
271
272    public:
273
274
275    static
276    wxVisualAttributes GetClassDefaultAttributes(
277        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
278    );
279    %Docstring
280        GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
281    %End
282    %PreMethodCode
283        if (!wxPyCheckForApp()) return NULL;
284    %End
285
286    public:
287
288
289    %Property(name=Data, get=GetData)
290};  // end of class wxFindReplaceDialog
291
292
293%Extract(id=pycode_core)
294EVT_FIND = wx.PyEventBinder( wxEVT_FIND, 1 )
295EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_FIND_NEXT, 1 )
296EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_FIND_REPLACE, 1 )
297EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_FIND_REPLACE_ALL, 1 )
298EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_FIND_CLOSE, 1 )
299
300# deprecated wxEVT aliases
301wxEVT_COMMAND_FIND              = wxEVT_FIND
302wxEVT_COMMAND_FIND_NEXT         = wxEVT_FIND_NEXT
303wxEVT_COMMAND_FIND_REPLACE      = wxEVT_FIND_REPLACE
304wxEVT_COMMAND_FIND_REPLACE_ALL  = wxEVT_FIND_REPLACE_ALL
305wxEVT_COMMAND_FIND_CLOSE        = wxEVT_FIND_CLOSE
306
307%End
308
309
310//---------------------------------------------------------------------------
311
312