search for: internal_connect

Displaying 9 results from an estimated 9 matches for "internal_connect".

2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...##################################### </del><span class="cx"> </span><del>- - </del><span class="cx"> %{ </span><ins>+ +// TODO - there is considerable duplication between the public ruby +// ''connect'' method and internal_connect - in fact all the evt_xxx +// methods could now be implemented in ruby via ''connect'' +// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> extern swig_class cWxEvtHandle...
2007 May 31
0
[1039] trunk/wxruby2/swig/Events.i: Remove some debugging output
...;span class="cx"> int idEnd = NUM2INT(argv[1]); </span><del>- //printf("evt_with_id(%d) %s\n", id, rb_block_given_p() ? "with block" : ""); </del><span class="cx"> </span><span class="cx"> internal_connect(self, idStart, idEnd, eventType); </span><span class="cx"> return Qnil; </span><span class="lines">@@ -310,8 +307,6 @@ </span><span class="cx"> { </span><span class="cx"> if (argc != 0) </span><...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...t;<span class="lines">@@ -541,783 +541,6 @@ </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> </span><del>-#if 0 -%{ - static VALUE callbacks = Qnil; -%} - -%{ -static void internal_connect(VALUE self, int firstId, int lastId, - wxEventType eventType) -{ - - wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; - SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1); - - VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0); - rb_globa...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...G; -%constant const int wxEVT_COMMAND_AUINOTEBOOK_END_DRAG; -%constant const int wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION; -%constant const int wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND; - - -%{ - -// TODO - there is considerable duplication between the public ruby -// ''connect'' method and internal_connect - in fact all the evt_xxx -// methods could now be implemented in ruby via ''connect'' -// Internal method that links a ruby Proc (the block passed to evt_xxx) -// to the WxWidgets C++ event handler method. -extern swig_class cWxEvtHandler; -extern void internal_connect(VALUE self,...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...CLASSINFO(wxSashEvent))) </span><span class="cx"> cEvent = cWxSashEvent.klass; </span><span class="cx"> #ifdef WXSCINTILLA </span><span class="lines">@@ -411,7 +429,6 @@ </span><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span><del>- </del><span class="cx"> wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; &...
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
...sp&nbsp&nbsp&nbsp&nbsp&nbspputs("Called in Events"); </ins><span class="cx"> //printf("evt_no_parameters() %s\n", rb_block_given_p() ? "with block" : ""); </span><span class="cx"> internal_connect(self, -1, -1, eventType); </span><span class="cx"> return Qnil; </span></span></pre> </div> </div> </body> </html>
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...quot;cx"> </span><del>-// Internal method that links a ruby Proc (the block passed to evt_xxx) -// to the WxWidgets C++ event handler method. </del><ins>+%{ +// This is used by the evt_xxx methods from swig/Events.i </ins><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><del>- wxEventType eventType) </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2007 May 31
0
[1040] trunk/wxruby2/swig/Events.i: Add List and Splitter constants, also EVT_SIZING and EVT_MOVING
...<span class="cx"> int id = NUM2INT(argv[0]); </span><del>- //printf("evt_with_id(%d) %s\n", id, rb_block_given_p() ? "with block" : ""); </del><span class="cx"> </span><span class="cx"> internal_connect(self, id, id, eventType); </span><span class="cx"> return Qnil; </span></span></pre> </div> </div> </body> </html>
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...pan class="cx"> }; </span><span class="cx"> </span><del>- </del><ins>+// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span></span></pre></div> <a id="trunkwxruby2swigfixeventsrb"></a> <div clas...