Displaying 14 results from an estimated 14 matches for "cwxevthandl".
Did you mean:
cwxevthandler
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
...self, wxEVT_MENU_HIGHLIGHT);
-}
-
-static VALUE evt_menu_highlight_all(int argc, VALUE *argv, VALUE self)
-{
- return internal_evt_no_parameters(argc, argv, self, wxEVT_MENU_HIGHLIGHT_ALL);
-}
-
-
-// TODO: Add for ListEvent types? Is this needed?
-
-%}
-
-
-
-
-%init %{
- rb_define_method(cWxEvtHandler.klass, "connect", VALUEFUNC(connect_fnc), -1);
- rb_define_method(cWxEvtHandler.klass, "evt_menu", VALUEFUNC(evt_menu), -1);
- rb_define_method(cWxEvtHandler.klass, "evt_tool", VALUEFUNC(evt_menu), -1);
- rb_define_method(cWxEvtHandler.klass, "evt_menu_...
2006 Jul 25
6
Wizards
Hi
Please find attached a set of patches and swig files to implement
Wizards for wxruby. Also a brief sample.
Quick q - the C declarations of evt_xxx_xxx methods and their attaching
to Ruby classes seems to be duplicated across Events.i and EvtHandler.i
- is one of these the right place to be adding them? or both?
Thanks
alex
_______________________________________________
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...fdef __WXMSW__" if windows
-
-                out.puts <<REGISTER_FUNC
-        rb_define_method(cWxEvtHandler.klass, \"#{evt[0].downcase}\", VALUEFUNC(#{evt[0].downcase}),-1);
</del><ins>+ out.puts "#ifdef __WXMSW__" if evt.windows_only?
+ out.puts <<REGISTER_FUNC
+        rb_define_method(cWxEvtHa...
2007 Jun 23
0
[1061] trunk/wxruby2/swig/classes/EvtHandler.i: Remove a lot of no longer needed includes from EvtHandler.i
...="cx"> %include "include/wxEvtHandler.h"
</span><span class="cx">
</span><del>-
</del><span class="cx"> %{
</span><span class="cx">
</span><span class="cx"> extern swig_class cWxEvtHandler;
</span></span></pre>
</div>
</div>
</body>
</html>
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...rnal_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 cWxEvtHandler;
</span><ins>+extern void internal_connect(VALUE self, int firstId, int lastId,
+                      &...
2007 Jan 05
0
[826] trunk/wxruby2/swig: Move RubyStockObjects back to App.i to avoid lots of error msg on GTK
...    2007-01-05 21:11:50 UTC (rev 826)
</span><span class="lines">@@ -26,7 +26,9 @@
</span><span class="cx"> %{
</span><span class="cx">
</span><span class="cx"> extern swig_class cWxEvtHandler;
</span><ins>+extern "C" void Init_wxRubyStockObjects();
</ins><span class="cx">
</span><ins>+
</ins><span class="cx"> class wxRubyApp : public wxApp
</span><span class="cx"> {
</span><sp...
2007 Jun 28
0
[1092] trunk/wxruby2/swig/classes/App.i: Pass correctly typed Events into filter_event, if defined (bug 10797);
...sp  // else wrap the event and pass into that method
+        VALUE event_type_id = INT2NUM(event.GetEventType());
+        VALUE event_klass = rb_funcall(cWxEvtHandler.klass,
+                                ...
2006 Dec 26
0
[804] trunk/wxruby2/swig: Initialise stock colours (eg Wx::RED), pens and brushes when wxruby2 is
...; %}
</span><span class="cx">
</span><span class="cx"> %ignore GetAuto3D;
</span><span class="lines">@@ -29,11 +27,6 @@
</span><span class="cx">
</span><span class="cx"> extern swig_class cWxEvtHandler;
</span><span class="cx">
</span><del>-
-///////////////////////////////////////////////////
-extern "C" void Init_wxRubyStockObjects();
-extern "C" void Init_wxRubyEventTypes();
-
</del><span class="cx"> class wxRubyApp...
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...bjectEventFunction )&wxRbCallback::EventThunker;
+ self->Connect(firstId, lastId, eventType, function, userData);
+        return Qtrue;
+ }
+}
+
+
+%runtime{
+
</ins><span class="cx"> extern swig_class cWxEvtHandler;
</span><span class="cx"> static VALUE callbacks = Qnil;
</span><span class="cx">
</span><span class="lines">@@ -26,7 +48,6 @@
</span><span class="cx"> wxRbCallback(VALUE func) { m_func = func; }
</spa...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...nbsp2007-05-31 21:19:45 UTC (rev 1042)
</span><span class="lines">@@ -34,465 +34,31 @@
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> %{
</span><ins>+
+extern swig_class cWxEvtHandler;
</ins><span class="cx"> static VALUE callbacks = Qnil;
</span><del>-extern swig_class cWxEvent;
-extern swig_class cWxCalendarEvent;
-extern swig_class cWxCloseEvent;
-extern swig_class cWxCommandEvent;
-extern swig_class cWxTextUrlEvent;
-extern swig_class cWxI...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...uot;../common.i"
</span><span class="cx">
</span><span class="lines">@@ -32,6 +32,8 @@
</span><span class="cx"> %{
</span><span class="cx">
</span><span class="cx"> extern swig_class cWxEvtHandler;
</span><ins>+extern swig_class cWxWindow;
+extern swig_class cWxEvent;
</ins><span class="cx"> extern "C" void Init_wxRubyStockObjects();
</span><span class="cx">
</span><span class="cx">
</span><s...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...22:50:43 UTC (rev 1108)
+++ trunk/wxruby2/swig/classes/App.i        2007-07-05 18:45:10 UTC (rev 1109)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> extern swig_class cWxEvtHandler;
</span><span class="cx"> extern swig_class cWxWindow;
</span><span class="cx"> extern swig_class cWxEvent;
</span><ins>+extern void GC_SetWindowDeleted(void*);
</ins><span class="cx"> extern "C" void Init_wxR...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
.../ ''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, int firstId, int lastId,
-                         &a...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
..."C" {
-void Init_wxEvents2()
-{
-INIT_FUNC
- $events.each do | evt |
- next if evt.excluded?
-
- out.puts "#ifdef __WXMSW__" if evt.windows_only?
- out.puts <<REGISTER_FUNC
-        rb_define_method(cWxEvtHandler.klass, \"#{evt.name.downcase}\", VALUEFUNC(#{evt.name.downcase}),-1);
-REGISTER_FUNC
- out.puts "#endif //__WXMSW__" if evt.windows_only?
- end
-
- out.puts "}"
- out.puts "}"
-end
</del></span></pre>
</div>
</div>
</...