1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_adv.h"
11
12 #include <wx/notifmsg.h>
13
14 #include <wx/window.h>
15 #include <wx/event.h>
16 #include <wx/eventfilter.h>
17 #include <wx/event.h>
18 #include <wx/object.h>
19 #include <wx/object.h>
20 #include <wx/object.h>
21
22
23 class sipwxNotificationMessage : public ::wxNotificationMessage
24 {
25 public:
26 sipwxNotificationMessage();
27 sipwxNotificationMessage(const ::wxString&,const ::wxString&, ::wxWindow*,int);
28 virtual ~sipwxNotificationMessage();
29
30 /*
31 * There is a public method for every protected method visible from
32 * this class.
33 */
34 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
35 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
36
37 /*
38 * There is a protected method for every virtual method visible from
39 * this class.
40 */
41 protected:
42 bool Show(int) SIP_OVERRIDE;
43 bool Close() SIP_OVERRIDE;
44 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
45 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
46 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
47
48 public:
49 sipSimpleWrapper *sipPySelf;
50
51 private:
52 sipwxNotificationMessage(const sipwxNotificationMessage &);
53 sipwxNotificationMessage &operator = (const sipwxNotificationMessage &);
54
55 char sipPyMethods[5];
56 };
57
sipwxNotificationMessage()58 sipwxNotificationMessage::sipwxNotificationMessage(): ::wxNotificationMessage(), sipPySelf(SIP_NULLPTR)
59 {
60 memset(sipPyMethods, 0, sizeof (sipPyMethods));
61 }
62
sipwxNotificationMessage(const::wxString & title,const::wxString & message,::wxWindow * parent,int flags)63 sipwxNotificationMessage::sipwxNotificationMessage(const ::wxString& title,const ::wxString& message, ::wxWindow*parent,int flags): ::wxNotificationMessage(title,message,parent,flags), sipPySelf(SIP_NULLPTR)
64 {
65 memset(sipPyMethods, 0, sizeof (sipPyMethods));
66 }
67
~sipwxNotificationMessage()68 sipwxNotificationMessage::~sipwxNotificationMessage()
69 {
70 sipInstanceDestroyedEx(&sipPySelf);
71 }
72
Show(int timeout)73 bool sipwxNotificationMessage::Show(int timeout)
74 {
75 sip_gilstate_t sipGILState;
76 PyObject *sipMeth;
77
78 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_Show);
79
80 if (!sipMeth)
81 return ::wxNotificationMessage::Show(timeout);
82
83 extern bool sipVH__adv_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
84
85 return sipVH__adv_10(sipGILState, 0, sipPySelf, sipMeth, timeout);
86 }
87
Close()88 bool sipwxNotificationMessage::Close()
89 {
90 sip_gilstate_t sipGILState;
91 PyObject *sipMeth;
92
93 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_Close);
94
95 if (!sipMeth)
96 return ::wxNotificationMessage::Close();
97
98 extern bool sipVH__adv_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
99
100 return sipVH__adv_3(sipGILState, 0, sipPySelf, sipMeth);
101 }
102
ProcessEvent(::wxEvent & event)103 bool sipwxNotificationMessage::ProcessEvent( ::wxEvent& event)
104 {
105 sip_gilstate_t sipGILState;
106 PyObject *sipMeth;
107
108 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
109
110 if (!sipMeth)
111 return ::wxNotificationMessage::ProcessEvent(event);
112
113 extern bool sipVH__adv_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
114
115 return sipVH__adv_13(sipGILState, 0, sipPySelf, sipMeth, event);
116 }
117
TryBefore(::wxEvent & event)118 bool sipwxNotificationMessage::TryBefore( ::wxEvent& event)
119 {
120 sip_gilstate_t sipGILState;
121 PyObject *sipMeth;
122
123 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
124
125 if (!sipMeth)
126 return ::wxNotificationMessage::TryBefore(event);
127
128 extern bool sipVH__adv_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
129
130 return sipVH__adv_13(sipGILState, 0, sipPySelf, sipMeth, event);
131 }
132
TryAfter(::wxEvent & event)133 bool sipwxNotificationMessage::TryAfter( ::wxEvent& event)
134 {
135 sip_gilstate_t sipGILState;
136 PyObject *sipMeth;
137
138 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
139
140 if (!sipMeth)
141 return ::wxNotificationMessage::TryAfter(event);
142
143 extern bool sipVH__adv_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
144
145 return sipVH__adv_13(sipGILState, 0, sipPySelf, sipMeth, event);
146 }
147
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)148 bool sipwxNotificationMessage::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
149 {
150 return (sipSelfWasArg ? ::wxEvtHandler::TryBefore(event) : TryBefore(event));
151 }
152
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)153 bool sipwxNotificationMessage::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
154 {
155 return (sipSelfWasArg ? ::wxEvtHandler::TryAfter(event) : TryAfter(event));
156 }
157
158
159 PyDoc_STRVAR(doc_wxNotificationMessage_TryBefore, "TryBefore(event) -> bool\n"
160 "\n"
161 "Method called by ProcessEvent() before examining this object event\n"
162 "tables.");
163
164 extern "C" {static PyObject *meth_wxNotificationMessage_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)165 static PyObject *meth_wxNotificationMessage_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
166 {
167 PyObject *sipParseErr = SIP_NULLPTR;
168 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
169
170 {
171 ::wxEvent* event;
172 sipwxNotificationMessage *sipCpp;
173
174 static const char *sipKwdList[] = {
175 sipName_event,
176 };
177
178 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNotificationMessage, &sipCpp, sipType_wxEvent, &event))
179 {
180 bool sipRes;
181
182 PyErr_Clear();
183
184 Py_BEGIN_ALLOW_THREADS
185 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
186 Py_END_ALLOW_THREADS
187
188 if (PyErr_Occurred())
189 return 0;
190
191 return PyBool_FromLong(sipRes);
192 }
193 }
194
195 /* Raise an exception if the arguments couldn't be parsed. */
196 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_TryBefore, SIP_NULLPTR);
197
198 return SIP_NULLPTR;
199 }
200
201
202 PyDoc_STRVAR(doc_wxNotificationMessage_TryAfter, "TryAfter(event) -> bool\n"
203 "\n"
204 "Method called by ProcessEvent() as last resort.");
205
206 extern "C" {static PyObject *meth_wxNotificationMessage_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)207 static PyObject *meth_wxNotificationMessage_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
208 {
209 PyObject *sipParseErr = SIP_NULLPTR;
210 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
211
212 {
213 ::wxEvent* event;
214 sipwxNotificationMessage *sipCpp;
215
216 static const char *sipKwdList[] = {
217 sipName_event,
218 };
219
220 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNotificationMessage, &sipCpp, sipType_wxEvent, &event))
221 {
222 bool sipRes;
223
224 PyErr_Clear();
225
226 Py_BEGIN_ALLOW_THREADS
227 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
228 Py_END_ALLOW_THREADS
229
230 if (PyErr_Occurred())
231 return 0;
232
233 return PyBool_FromLong(sipRes);
234 }
235 }
236
237 /* Raise an exception if the arguments couldn't be parsed. */
238 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_TryAfter, SIP_NULLPTR);
239
240 return SIP_NULLPTR;
241 }
242
243
244 PyDoc_STRVAR(doc_wxNotificationMessage_Close, "Close() -> bool\n"
245 "\n"
246 "Hides the notification.");
247
248 extern "C" {static PyObject *meth_wxNotificationMessage_Close(PyObject *, PyObject *);}
meth_wxNotificationMessage_Close(PyObject * sipSelf,PyObject * sipArgs)249 static PyObject *meth_wxNotificationMessage_Close(PyObject *sipSelf, PyObject *sipArgs)
250 {
251 PyObject *sipParseErr = SIP_NULLPTR;
252 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
253
254 {
255 ::wxNotificationMessage *sipCpp;
256
257 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNotificationMessage, &sipCpp))
258 {
259 bool sipRes;
260
261 PyErr_Clear();
262
263 Py_BEGIN_ALLOW_THREADS
264 sipRes = (sipSelfWasArg ? sipCpp-> ::wxNotificationMessage::Close() : sipCpp->Close());
265 Py_END_ALLOW_THREADS
266
267 if (PyErr_Occurred())
268 return 0;
269
270 return PyBool_FromLong(sipRes);
271 }
272 }
273
274 /* Raise an exception if the arguments couldn't be parsed. */
275 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_Close, SIP_NULLPTR);
276
277 return SIP_NULLPTR;
278 }
279
280
281 PyDoc_STRVAR(doc_wxNotificationMessage_SetFlags, "SetFlags(flags)\n"
282 "\n"
283 "This parameter can be currently used to specify the icon to show in\n"
284 "the notification.");
285
286 extern "C" {static PyObject *meth_wxNotificationMessage_SetFlags(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_SetFlags(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)287 static PyObject *meth_wxNotificationMessage_SetFlags(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
288 {
289 PyObject *sipParseErr = SIP_NULLPTR;
290
291 {
292 int flags;
293 ::wxNotificationMessage *sipCpp;
294
295 static const char *sipKwdList[] = {
296 sipName_flags,
297 };
298
299 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxNotificationMessage, &sipCpp, &flags))
300 {
301 PyErr_Clear();
302
303 Py_BEGIN_ALLOW_THREADS
304 sipCpp->SetFlags(flags);
305 Py_END_ALLOW_THREADS
306
307 if (PyErr_Occurred())
308 return 0;
309
310 Py_INCREF(Py_None);
311 return Py_None;
312 }
313 }
314
315 /* Raise an exception if the arguments couldn't be parsed. */
316 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_SetFlags, SIP_NULLPTR);
317
318 return SIP_NULLPTR;
319 }
320
321
322 PyDoc_STRVAR(doc_wxNotificationMessage_SetMessage, "SetMessage(message)\n"
323 "\n"
324 "Set the main text of the notification.");
325
326 extern "C" {static PyObject *meth_wxNotificationMessage_SetMessage(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_SetMessage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)327 static PyObject *meth_wxNotificationMessage_SetMessage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
328 {
329 PyObject *sipParseErr = SIP_NULLPTR;
330
331 {
332 const ::wxString* message;
333 int messageState = 0;
334 ::wxNotificationMessage *sipCpp;
335
336 static const char *sipKwdList[] = {
337 sipName_message,
338 };
339
340 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxNotificationMessage, &sipCpp, sipType_wxString,&message, &messageState))
341 {
342 PyErr_Clear();
343
344 Py_BEGIN_ALLOW_THREADS
345 sipCpp->SetMessage(*message);
346 Py_END_ALLOW_THREADS
347 sipReleaseType(const_cast< ::wxString *>(message),sipType_wxString,messageState);
348
349 if (PyErr_Occurred())
350 return 0;
351
352 Py_INCREF(Py_None);
353 return Py_None;
354 }
355 }
356
357 /* Raise an exception if the arguments couldn't be parsed. */
358 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_SetMessage, SIP_NULLPTR);
359
360 return SIP_NULLPTR;
361 }
362
363
364 PyDoc_STRVAR(doc_wxNotificationMessage_SetParent, "SetParent(parent)\n"
365 "\n"
366 "Set the parent for this notification: the notification will be\n"
367 "associated with the top level parent of this window or, if this method\n"
368 "is not called, with the main application window by default.");
369
370 extern "C" {static PyObject *meth_wxNotificationMessage_SetParent(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_SetParent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)371 static PyObject *meth_wxNotificationMessage_SetParent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
372 {
373 PyObject *sipParseErr = SIP_NULLPTR;
374
375 {
376 ::wxWindow* parent;
377 ::wxNotificationMessage *sipCpp;
378
379 static const char *sipKwdList[] = {
380 sipName_parent,
381 };
382
383 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxNotificationMessage, &sipCpp, sipType_wxWindow, &parent))
384 {
385 PyErr_Clear();
386
387 Py_BEGIN_ALLOW_THREADS
388 sipCpp->SetParent(parent);
389 Py_END_ALLOW_THREADS
390
391 if (PyErr_Occurred())
392 return 0;
393
394 Py_INCREF(Py_None);
395 return Py_None;
396 }
397 }
398
399 /* Raise an exception if the arguments couldn't be parsed. */
400 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_SetParent, SIP_NULLPTR);
401
402 return SIP_NULLPTR;
403 }
404
405
406 PyDoc_STRVAR(doc_wxNotificationMessage_SetTitle, "SetTitle(title)\n"
407 "\n"
408 "Set the title, it must be a concise string (not more than 64\n"
409 "characters), use SetMessage() to give the user more details.");
410
411 extern "C" {static PyObject *meth_wxNotificationMessage_SetTitle(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_SetTitle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)412 static PyObject *meth_wxNotificationMessage_SetTitle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
413 {
414 PyObject *sipParseErr = SIP_NULLPTR;
415
416 {
417 const ::wxString* title;
418 int titleState = 0;
419 ::wxNotificationMessage *sipCpp;
420
421 static const char *sipKwdList[] = {
422 sipName_title,
423 };
424
425 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxNotificationMessage, &sipCpp, sipType_wxString,&title, &titleState))
426 {
427 PyErr_Clear();
428
429 Py_BEGIN_ALLOW_THREADS
430 sipCpp->SetTitle(*title);
431 Py_END_ALLOW_THREADS
432 sipReleaseType(const_cast< ::wxString *>(title),sipType_wxString,titleState);
433
434 if (PyErr_Occurred())
435 return 0;
436
437 Py_INCREF(Py_None);
438 return Py_None;
439 }
440 }
441
442 /* Raise an exception if the arguments couldn't be parsed. */
443 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_SetTitle, SIP_NULLPTR);
444
445 return SIP_NULLPTR;
446 }
447
448
449 PyDoc_STRVAR(doc_wxNotificationMessage_Show, "Show(timeout=Timeout_Auto) -> bool\n"
450 "\n"
451 "Show the notification to the user and hides it after timeout seconds\n"
452 "are elapsed.");
453
454 extern "C" {static PyObject *meth_wxNotificationMessage_Show(PyObject *, PyObject *, PyObject *);}
meth_wxNotificationMessage_Show(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)455 static PyObject *meth_wxNotificationMessage_Show(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
456 {
457 PyObject *sipParseErr = SIP_NULLPTR;
458 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
459
460 {
461 int timeout = ::wxNotificationMessage::Timeout_Auto;
462 ::wxNotificationMessage *sipCpp;
463
464 static const char *sipKwdList[] = {
465 sipName_timeout,
466 };
467
468 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxNotificationMessage, &sipCpp, &timeout))
469 {
470 bool sipRes;
471
472 PyErr_Clear();
473
474 Py_BEGIN_ALLOW_THREADS
475 sipRes = (sipSelfWasArg ? sipCpp-> ::wxNotificationMessage::Show(timeout) : sipCpp->Show(timeout));
476 Py_END_ALLOW_THREADS
477
478 if (PyErr_Occurred())
479 return 0;
480
481 return PyBool_FromLong(sipRes);
482 }
483 }
484
485 /* Raise an exception if the arguments couldn't be parsed. */
486 sipNoMethod(sipParseErr, sipName_NotificationMessage, sipName_Show, SIP_NULLPTR);
487
488 return SIP_NULLPTR;
489 }
490
491
492 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
493 extern "C" {static void *cast_wxNotificationMessage(void *, const sipTypeDef *);}
cast_wxNotificationMessage(void * sipCppV,const sipTypeDef * targetType)494 static void *cast_wxNotificationMessage(void *sipCppV, const sipTypeDef *targetType)
495 {
496 ::wxNotificationMessage *sipCpp = reinterpret_cast< ::wxNotificationMessage *>(sipCppV);
497
498 if (targetType == sipType_wxEvtHandler)
499 return static_cast< ::wxEvtHandler *>(sipCpp);
500
501 if (targetType == sipType_wxObject)
502 return static_cast< ::wxObject *>(sipCpp);
503
504 if (targetType == sipType_wxTrackable)
505 return static_cast< ::wxTrackable *>(sipCpp);
506
507 return sipCppV;
508 }
509
510
511 /* Call the instance's destructor. */
512 extern "C" {static void release_wxNotificationMessage(void *, int);}
release_wxNotificationMessage(void * sipCppV,int sipState)513 static void release_wxNotificationMessage(void *sipCppV, int sipState)
514 {
515 Py_BEGIN_ALLOW_THREADS
516
517 if (sipState & SIP_DERIVED_CLASS)
518 delete reinterpret_cast<sipwxNotificationMessage *>(sipCppV);
519 else
520 delete reinterpret_cast< ::wxNotificationMessage *>(sipCppV);
521
522 Py_END_ALLOW_THREADS
523 }
524
525
526 extern "C" {static void dealloc_wxNotificationMessage(sipSimpleWrapper *);}
dealloc_wxNotificationMessage(sipSimpleWrapper * sipSelf)527 static void dealloc_wxNotificationMessage(sipSimpleWrapper *sipSelf)
528 {
529 if (sipIsDerivedClass(sipSelf))
530 reinterpret_cast<sipwxNotificationMessage *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
531
532 if (sipIsOwnedByPython(sipSelf))
533 {
534 release_wxNotificationMessage(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
535 }
536 }
537
538
539 extern "C" {static void *init_type_wxNotificationMessage(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxNotificationMessage(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)540 static void *init_type_wxNotificationMessage(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
541 {
542 sipwxNotificationMessage *sipCpp = SIP_NULLPTR;
543
544 {
545 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
546 {
547 PyErr_Clear();
548
549 Py_BEGIN_ALLOW_THREADS
550 sipCpp = new sipwxNotificationMessage();
551 Py_END_ALLOW_THREADS
552
553 if (PyErr_Occurred())
554 {
555 delete sipCpp;
556 return SIP_NULLPTR;
557 }
558
559 sipCpp->sipPySelf = sipSelf;
560
561 return sipCpp;
562 }
563 }
564
565 {
566 const ::wxString* title;
567 int titleState = 0;
568 const ::wxString& messagedef = wxEmptyString;
569 const ::wxString* message = &messagedef;
570 int messageState = 0;
571 ::wxWindow* parent = 0;
572 int flags = wxICON_INFORMATION;
573
574 static const char *sipKwdList[] = {
575 sipName_title,
576 sipName_message,
577 sipName_parent,
578 sipName_flags,
579 };
580
581 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1J8i", sipType_wxString,&title, &titleState, sipType_wxString,&message, &messageState, sipType_wxWindow, &parent, &flags))
582 {
583 PyErr_Clear();
584
585 Py_BEGIN_ALLOW_THREADS
586 sipCpp = new sipwxNotificationMessage(*title,*message,parent,flags);
587 Py_END_ALLOW_THREADS
588 sipReleaseType(const_cast< ::wxString *>(title),sipType_wxString,titleState);
589 sipReleaseType(const_cast< ::wxString *>(message),sipType_wxString,messageState);
590
591 if (PyErr_Occurred())
592 {
593 delete sipCpp;
594 return SIP_NULLPTR;
595 }
596
597 sipCpp->sipPySelf = sipSelf;
598
599 return sipCpp;
600 }
601 }
602
603 return SIP_NULLPTR;
604 }
605
606
607 /* Define this type's super-types. */
608 static sipEncodedTypeDef supers_wxNotificationMessage[] = {{21, 0, 1}};
609
610
611 static PyMethodDef methods_wxNotificationMessage[] = {
612 {SIP_MLNAME_CAST(sipName_Close), meth_wxNotificationMessage_Close, METH_VARARGS, SIP_MLDOC_CAST(doc_wxNotificationMessage_Close)},
613 {SIP_MLNAME_CAST(sipName_SetFlags), SIP_MLMETH_CAST(meth_wxNotificationMessage_SetFlags), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNotificationMessage_SetFlags)},
614 {SIP_MLNAME_CAST(sipName_SetMessage), SIP_MLMETH_CAST(meth_wxNotificationMessage_SetMessage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNotificationMessage_SetMessage)},
615 {SIP_MLNAME_CAST(sipName_SetParent), SIP_MLMETH_CAST(meth_wxNotificationMessage_SetParent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNotificationMessage_SetParent)},
616 {SIP_MLNAME_CAST(sipName_SetTitle), SIP_MLMETH_CAST(meth_wxNotificationMessage_SetTitle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNotificationMessage_SetTitle)},
617 {SIP_MLNAME_CAST(sipName_Show), SIP_MLMETH_CAST(meth_wxNotificationMessage_Show), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNotificationMessage_Show)},
618 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxNotificationMessage_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
619 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxNotificationMessage_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR}
620 };
621
622 static sipEnumMemberDef enummembers_wxNotificationMessage[] = {
623 {sipName_Timeout_Auto, static_cast<int>( ::wxNotificationMessage::Timeout_Auto), -1},
624 {sipName_Timeout_Never, static_cast<int>( ::wxNotificationMessage::Timeout_Never), -1},
625 };
626
627 PyDoc_STRVAR(doc_wxNotificationMessage, "NotificationMessage()\n"
628 "NotificationMessage(title, message=wx.EmptyString, parent=None, flags=wx.ICON_INFORMATION)\n"
629 "\n"
630 "This class allows showing the user a message non intrusively.");
631
632
633 sipClassTypeDef sipTypeDef__adv_wxNotificationMessage = {
634 {
635 -1,
636 SIP_NULLPTR,
637 SIP_NULLPTR,
638 SIP_TYPE_SCC|SIP_TYPE_CLASS,
639 sipNameNr_wxNotificationMessage,
640 {SIP_NULLPTR},
641 SIP_NULLPTR
642 },
643 {
644 sipNameNr_NotificationMessage,
645 {0, 0, 1},
646 8, methods_wxNotificationMessage,
647 2, enummembers_wxNotificationMessage,
648 0, SIP_NULLPTR,
649 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
650 },
651 doc_wxNotificationMessage,
652 -1,
653 -1,
654 supers_wxNotificationMessage,
655 SIP_NULLPTR,
656 init_type_wxNotificationMessage,
657 SIP_NULLPTR,
658 SIP_NULLPTR,
659 #if PY_MAJOR_VERSION >= 3
660 SIP_NULLPTR,
661 SIP_NULLPTR,
662 #else
663 SIP_NULLPTR,
664 SIP_NULLPTR,
665 SIP_NULLPTR,
666 SIP_NULLPTR,
667 #endif
668 dealloc_wxNotificationMessage,
669 SIP_NULLPTR,
670 SIP_NULLPTR,
671 SIP_NULLPTR,
672 release_wxNotificationMessage,
673 cast_wxNotificationMessage,
674 SIP_NULLPTR,
675 SIP_NULLPTR,
676 SIP_NULLPTR,
677 SIP_NULLPTR,
678 SIP_NULLPTR,
679 SIP_NULLPTR
680 };
681