~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/contrib/stc/msw/stc_wrap.cpp

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2513
2513
#define SWIGTYPE_p_wxImageHandler swig_types[47]
2514
2514
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[48]
2515
2515
#define SWIGTYPE_p_wxInitDialogEvent swig_types[49]
2516
 
#define SWIGTYPE_p_wxJPEGHandler swig_types[50]
2517
 
#define SWIGTYPE_p_wxJoystickEvent swig_types[51]
2518
 
#define SWIGTYPE_p_wxKeyEvent swig_types[52]
2519
 
#define SWIGTYPE_p_wxLayoutConstraints swig_types[53]
2520
 
#define SWIGTYPE_p_wxMaximizeEvent swig_types[54]
2521
 
#define SWIGTYPE_p_wxMemoryBuffer swig_types[55]
2522
 
#define SWIGTYPE_p_wxMenu swig_types[56]
2523
 
#define SWIGTYPE_p_wxMenuBar swig_types[57]
2524
 
#define SWIGTYPE_p_wxMenuEvent swig_types[58]
2525
 
#define SWIGTYPE_p_wxMenuItem swig_types[59]
2526
 
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[60]
2527
 
#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[61]
2528
 
#define SWIGTYPE_p_wxMouseEvent swig_types[62]
2529
 
#define SWIGTYPE_p_wxMoveEvent swig_types[63]
2530
 
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[64]
2531
 
#define SWIGTYPE_p_wxNcPaintEvent swig_types[65]
2532
 
#define SWIGTYPE_p_wxNotifyEvent swig_types[66]
2533
 
#define SWIGTYPE_p_wxObject swig_types[67]
2534
 
#define SWIGTYPE_p_wxPCXHandler swig_types[68]
2535
 
#define SWIGTYPE_p_wxPNGHandler swig_types[69]
2536
 
#define SWIGTYPE_p_wxPNMHandler swig_types[70]
2537
 
#define SWIGTYPE_p_wxPaintEvent swig_types[71]
2538
 
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[72]
2539
 
#define SWIGTYPE_p_wxPaperSize swig_types[73]
2540
 
#define SWIGTYPE_p_wxPoint swig_types[74]
2541
 
#define SWIGTYPE_p_wxPowerEvent swig_types[75]
2542
 
#define SWIGTYPE_p_wxProcessEvent swig_types[76]
2543
 
#define SWIGTYPE_p_wxPyApp swig_types[77]
2544
 
#define SWIGTYPE_p_wxPyCommandEvent swig_types[78]
2545
 
#define SWIGTYPE_p_wxPyEvent swig_types[79]
2546
 
#define SWIGTYPE_p_wxPyEvtHandler swig_types[80]
2547
 
#define SWIGTYPE_p_wxPyImageHandler swig_types[81]
2548
 
#define SWIGTYPE_p_wxPyProcess swig_types[82]
2549
 
#define SWIGTYPE_p_wxPySizer swig_types[83]
2550
 
#define SWIGTYPE_p_wxPyTimer swig_types[84]
2551
 
#define SWIGTYPE_p_wxPyValidator swig_types[85]
2552
 
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[86]
2553
 
#define SWIGTYPE_p_wxRect swig_types[87]
2554
 
#define SWIGTYPE_p_wxScrollBar swig_types[88]
2555
 
#define SWIGTYPE_p_wxScrollEvent swig_types[89]
2556
 
#define SWIGTYPE_p_wxScrollWinEvent swig_types[90]
2557
 
#define SWIGTYPE_p_wxSetCursorEvent swig_types[91]
2558
 
#define SWIGTYPE_p_wxShowEvent swig_types[92]
2559
 
#define SWIGTYPE_p_wxSizeEvent swig_types[93]
2560
 
#define SWIGTYPE_p_wxSizer swig_types[94]
2561
 
#define SWIGTYPE_p_wxSizerItem swig_types[95]
2562
 
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[96]
2563
 
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[97]
2564
 
#define SWIGTYPE_p_wxStyledTextCtrl swig_types[98]
2565
 
#define SWIGTYPE_p_wxStyledTextEvent swig_types[99]
2566
 
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[100]
2567
 
#define SWIGTYPE_p_wxSystemOptions swig_types[101]
2568
 
#define SWIGTYPE_p_wxTGAHandler swig_types[102]
2569
 
#define SWIGTYPE_p_wxTIFFHandler swig_types[103]
2570
 
#define SWIGTYPE_p_wxTimerEvent swig_types[104]
2571
 
#define SWIGTYPE_p_wxToolTip swig_types[105]
2572
 
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[106]
2573
 
#define SWIGTYPE_p_wxValidator swig_types[107]
2574
 
#define SWIGTYPE_p_wxWindow swig_types[108]
2575
 
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[109]
2576
 
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[110]
2577
 
#define SWIGTYPE_p_wxXPMHandler swig_types[111]
2578
 
static swig_type_info *swig_types[113];
2579
 
static swig_module_info swig_module = {swig_types, 112, 0, 0, 0, 0};
 
2516
#define SWIGTYPE_p_wxIntPtr swig_types[50]
 
2517
#define SWIGTYPE_p_wxJPEGHandler swig_types[51]
 
2518
#define SWIGTYPE_p_wxJoystickEvent swig_types[52]
 
2519
#define SWIGTYPE_p_wxKeyEvent swig_types[53]
 
2520
#define SWIGTYPE_p_wxLayoutConstraints swig_types[54]
 
2521
#define SWIGTYPE_p_wxMaximizeEvent swig_types[55]
 
2522
#define SWIGTYPE_p_wxMemoryBuffer swig_types[56]
 
2523
#define SWIGTYPE_p_wxMenu swig_types[57]
 
2524
#define SWIGTYPE_p_wxMenuBar swig_types[58]
 
2525
#define SWIGTYPE_p_wxMenuEvent swig_types[59]
 
2526
#define SWIGTYPE_p_wxMenuItem swig_types[60]
 
2527
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[61]
 
2528
#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[62]
 
2529
#define SWIGTYPE_p_wxMouseEvent swig_types[63]
 
2530
#define SWIGTYPE_p_wxMoveEvent swig_types[64]
 
2531
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[65]
 
2532
#define SWIGTYPE_p_wxNcPaintEvent swig_types[66]
 
2533
#define SWIGTYPE_p_wxNotifyEvent swig_types[67]
 
2534
#define SWIGTYPE_p_wxObject swig_types[68]
 
2535
#define SWIGTYPE_p_wxPCXHandler swig_types[69]
 
2536
#define SWIGTYPE_p_wxPNGHandler swig_types[70]
 
2537
#define SWIGTYPE_p_wxPNMHandler swig_types[71]
 
2538
#define SWIGTYPE_p_wxPaintEvent swig_types[72]
 
2539
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[73]
 
2540
#define SWIGTYPE_p_wxPaperSize swig_types[74]
 
2541
#define SWIGTYPE_p_wxPoint swig_types[75]
 
2542
#define SWIGTYPE_p_wxPowerEvent swig_types[76]
 
2543
#define SWIGTYPE_p_wxProcessEvent swig_types[77]
 
2544
#define SWIGTYPE_p_wxPyApp swig_types[78]
 
2545
#define SWIGTYPE_p_wxPyCommandEvent swig_types[79]
 
2546
#define SWIGTYPE_p_wxPyEvent swig_types[80]
 
2547
#define SWIGTYPE_p_wxPyEvtHandler swig_types[81]
 
2548
#define SWIGTYPE_p_wxPyImageHandler swig_types[82]
 
2549
#define SWIGTYPE_p_wxPyProcess swig_types[83]
 
2550
#define SWIGTYPE_p_wxPySizer swig_types[84]
 
2551
#define SWIGTYPE_p_wxPyTimer swig_types[85]
 
2552
#define SWIGTYPE_p_wxPyValidator swig_types[86]
 
2553
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[87]
 
2554
#define SWIGTYPE_p_wxRect swig_types[88]
 
2555
#define SWIGTYPE_p_wxScrollBar swig_types[89]
 
2556
#define SWIGTYPE_p_wxScrollEvent swig_types[90]
 
2557
#define SWIGTYPE_p_wxScrollWinEvent swig_types[91]
 
2558
#define SWIGTYPE_p_wxSetCursorEvent swig_types[92]
 
2559
#define SWIGTYPE_p_wxShowEvent swig_types[93]
 
2560
#define SWIGTYPE_p_wxSizeEvent swig_types[94]
 
2561
#define SWIGTYPE_p_wxSizer swig_types[95]
 
2562
#define SWIGTYPE_p_wxSizerItem swig_types[96]
 
2563
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[97]
 
2564
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[98]
 
2565
#define SWIGTYPE_p_wxStyledTextCtrl swig_types[99]
 
2566
#define SWIGTYPE_p_wxStyledTextEvent swig_types[100]
 
2567
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[101]
 
2568
#define SWIGTYPE_p_wxSystemOptions swig_types[102]
 
2569
#define SWIGTYPE_p_wxTGAHandler swig_types[103]
 
2570
#define SWIGTYPE_p_wxTIFFHandler swig_types[104]
 
2571
#define SWIGTYPE_p_wxTimerEvent swig_types[105]
 
2572
#define SWIGTYPE_p_wxToolTip swig_types[106]
 
2573
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[107]
 
2574
#define SWIGTYPE_p_wxValidator swig_types[108]
 
2575
#define SWIGTYPE_p_wxWindow swig_types[109]
 
2576
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[110]
 
2577
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[111]
 
2578
#define SWIGTYPE_p_wxXPMHandler swig_types[112]
 
2579
static swig_type_info *swig_types[114];
 
2580
static swig_module_info swig_module = {swig_types, 113, 0, 0, 0, 0};
2580
2581
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2581
2582
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2582
2583
 
2815
2816
 
2816
2817
 
2817
2818
 
 
2819
 
 
2820
SWIGINTERN int 
 
2821
SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
 
2822
{
 
2823
    long v = 0;
 
2824
    int res = SWIG_AsVal_long(obj, &v);
 
2825
    if (SWIG_IsOK(res)) {
 
2826
        if ( v < 0) {
 
2827
            return SWIG_ValueError;
 
2828
        }
 
2829
        else if (val)
 
2830
            *val = (unsigned long)v;
 
2831
    }
 
2832
    return res;
 
2833
}
 
2834
 
2818
2835
#ifdef __cplusplus
2819
2836
extern "C" {
2820
2837
#endif
18816
18833
  PyObject *resultobj = 0;
18817
18834
  wxStyledTextCtrl *arg1 = (wxStyledTextCtrl *) 0 ;
18818
18835
  int arg2 ;
18819
 
  long arg3 = (long) 0 ;
18820
 
  long arg4 = (long) 0 ;
18821
 
  long result;
 
18836
  wxUIntPtr arg3 = (wxUIntPtr) 0 ;
 
18837
  wxIntPtr arg4 = (wxIntPtr) 0 ;
 
18838
  wxIntPtr result;
18822
18839
  void *argp1 = 0 ;
18823
18840
  int res1 = 0 ;
18824
18841
  int val2 ;
18825
18842
  int ecode2 = 0 ;
18826
 
  long val3 ;
 
18843
  unsigned long val3 ;
18827
18844
  int ecode3 = 0 ;
18828
 
  long val4 ;
18829
 
  int ecode4 = 0 ;
 
18845
  void *argp4 ;
 
18846
  int res4 = 0 ;
18830
18847
  PyObject * obj0 = 0 ;
18831
18848
  PyObject * obj1 = 0 ;
18832
18849
  PyObject * obj2 = 0 ;
18847
18864
  } 
18848
18865
  arg2 = static_cast< int >(val2);
18849
18866
  if (obj2) {
18850
 
    ecode3 = SWIG_AsVal_long(obj2, &val3);
 
18867
    ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3);
18851
18868
    if (!SWIG_IsOK(ecode3)) {
18852
 
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StyledTextCtrl_SendMsg" "', expected argument " "3"" of type '" "long""'");
 
18869
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StyledTextCtrl_SendMsg" "', expected argument " "3"" of type '" "wxUIntPtr""'");
18853
18870
    } 
18854
 
    arg3 = static_cast< long >(val3);
 
18871
    arg3 = static_cast< wxUIntPtr >(val3);
18855
18872
  }
18856
18873
  if (obj3) {
18857
 
    ecode4 = SWIG_AsVal_long(obj3, &val4);
18858
 
    if (!SWIG_IsOK(ecode4)) {
18859
 
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "StyledTextCtrl_SendMsg" "', expected argument " "4"" of type '" "long""'");
18860
 
    } 
18861
 
    arg4 = static_cast< long >(val4);
 
18874
    {
 
18875
      res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxIntPtr,  0  | 0);
 
18876
      if (!SWIG_IsOK(res4)) {
 
18877
        SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StyledTextCtrl_SendMsg" "', expected argument " "4"" of type '" "wxIntPtr""'"); 
 
18878
      }  
 
18879
      if (!argp4) {
 
18880
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StyledTextCtrl_SendMsg" "', expected argument " "4"" of type '" "wxIntPtr""'");
 
18881
      } else {
 
18882
        wxIntPtr * temp = reinterpret_cast< wxIntPtr * >(argp4);
 
18883
        arg4 = *temp;
 
18884
        if (SWIG_IsNewObj(res4)) delete temp;
 
18885
      }
 
18886
    }
18862
18887
  }
18863
18888
  {
18864
18889
    PyThreadState* __tstate = wxPyBeginAllowThreads();
18865
 
    result = (long)(arg1)->SendMsg(arg2,arg3,arg4);
 
18890
    result = (arg1)->SendMsg(arg2,arg3,arg4);
18866
18891
    wxPyEndAllowThreads(__tstate);
18867
18892
    if (PyErr_Occurred()) SWIG_fail;
18868
18893
  }
18869
 
  resultobj = SWIG_From_long(static_cast< long >(result));
 
18894
  resultobj = SWIG_NewPointerObj((new wxIntPtr(static_cast< const wxIntPtr& >(result))), SWIGTYPE_p_wxIntPtr, SWIG_POINTER_OWN |  0 );
18870
18895
  return resultobj;
18871
18896
fail:
18872
18897
  return NULL;
22294
22319
static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
22295
22320
static swig_type_info _swigt__p_wxPyProcess = {"_p_wxPyProcess", 0, 0, 0, 0, 0};
22296
22321
static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
 
22322
static swig_type_info _swigt__p_wxIntPtr = {"_p_wxIntPtr", "wxIntPtr *", 0, 0, (void*)0, 0};
22297
22323
static swig_type_info _swigt__p_wxMemoryBuffer = {"_p_wxMemoryBuffer", "wxMemoryBuffer *", 0, 0, (void*)0, 0};
22298
22324
static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
22299
22325
static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
22391
22417
  &_swigt__p_wxImageHandler,
22392
22418
  &_swigt__p_wxIndividualLayoutConstraint,
22393
22419
  &_swigt__p_wxInitDialogEvent,
 
22420
  &_swigt__p_wxIntPtr,
22394
22421
  &_swigt__p_wxJPEGHandler,
22395
22422
  &_swigt__p_wxJoystickEvent,
22396
22423
  &_swigt__p_wxKeyEvent,
22522
22549
static swig_cast_info _swigc__p_wxPyProcess[] = {{&_swigt__p_wxPyProcess, 0, 0, 0},{0, 0, 0, 0}};
22523
22550
static swig_cast_info _swigc__p_wxEvtHandler[] = {  {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxEvtHandler, 0, 0, 0},  {&_swigt__p_wxStyledTextCtrl, _p_wxStyledTextCtrlTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxPyEvtHandler, _p_wxPyEvtHandlerTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxPyTimer, _p_wxPyTimerTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},  {&_swigt__p_wxPyProcess, _p_wxPyProcessTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
22524
22551
static swig_cast_info _swigc__p_wxFont[] = {  {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
 
22552
static swig_cast_info _swigc__p_wxIntPtr[] = {  {&_swigt__p_wxIntPtr, 0, 0, 0},{0, 0, 0, 0}};
22525
22553
static swig_cast_info _swigc__p_wxMemoryBuffer[] = {  {&_swigt__p_wxMemoryBuffer, 0, 0, 0},{0, 0, 0, 0}};
22526
22554
static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
22527
22555
static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
22619
22647
  _swigc__p_wxImageHandler,
22620
22648
  _swigc__p_wxIndividualLayoutConstraint,
22621
22649
  _swigc__p_wxInitDialogEvent,
 
22650
  _swigc__p_wxIntPtr,
22622
22651
  _swigc__p_wxJPEGHandler,
22623
22652
  _swigc__p_wxJoystickEvent,
22624
22653
  _swigc__p_wxKeyEvent,