search for: mwxruby2

Displaying 16 results from an estimated 16 matches for "mwxruby2".

Did you mean: wxruby2
2005 Aug 07
4
Reswigged link error
After reswigging I get link problems: Functions.obj : error LNK2001: unresolved external symbol _mWxruby2 Mac.obj : error LNK2001: unresolved external symbol _mWxruby2 Events.obj : error LNK2001: unresolved external symbol _mWxruby2 ... Which is intriguing since it seems to be defined in wx.cpp
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
...</span><ins>+// BusyInfo is an exception to the general rule in typemap.i - it +// accepts a wxWindow* parent argument which may be null - but it does +// not inherit from TopLevelWindow - so special typemap for this class. +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2005 Jul 26
10
Patch for wxRuby2
...ange Xrc to XmlResource in rakewx.rb. - For backwards compatability with wxRuby 0.6 I added the subclass methods to XmlResource. - Changed line 5 of wx.i from wxruby2 to wx, could not get wxruby2 to work. I also changed line 13 in fixmodule.rb to mWx and line 11 in fixmainmodule.rb to mWx from mWxruby2. Also changed mWx in functions.i and XmlResource.i - Added the xrc example program (again) - Added typemap to finally get wxItemKind working correctly, gets rid of my fixedswigcode.rb hack. - Added the wxMenuItem class. - Added a type check for wxDateTime so CalendarCtrl now works properly with r...
2007 Jun 27
0
[1088] trunk/wxruby2/swig/Functions.i: Added a return statement where needed to fix compile on Win32
...UTC (rev 1088) </span><span class="lines">@@ -64,7 +64,7 @@ </span><span class="cx"> </span><span class="cx"> static VALUE get_app(VALUE self) </span><span class="cx"> { </span><del>- rb_const_get(mWxruby2, rb_intern("THE_APP")); </del><ins>+ return rb_const_get(mWxruby2, rb_intern("THE_APP")); </ins><span class="cx"> } </span><span class="cx"> </span><span class="cx"> static VALUE </span></sp...
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
...&nbsp&nbsp&nbsp&nbsp&nbsp// so there is no point trying to mark them, and doing so may cause +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// errors. +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE the_app = rb_const_get(mWxruby2, rb_intern("THE_APP")); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( DATA_PTR(the_app) == 0 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2006 Dec 20
0
[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)
...an class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE ruby_class = rb_iv_get(mWxruby2, classNameString.mb_str()+2); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturnVal = Data_Wrap_Struct(ruby_class,0,0,obj); </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&...
2007 Jul 21
0
[1136] trunk/wxruby2/swig/classes/App.i: Note when the Wx::App is exiting and avoid doing GC if in process of
...t;@@ -105,9 +103,9 @@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// errors. </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE the_app = rb_const_get(mWxruby2, rb_intern("THE_APP")); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( DATA_PTR(the_app) == 0 ) </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { -&nbsp&amp...
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return Qnil; </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp r_class = rb_iv_get(mWxruby2, class_name.mb_str() + 2); </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp -&nbsp&nbsp&nbsp&nbsp&nbsp&nbs...
2006 Oct 21
2
common.i patch
The latest cvs version of SWIG breaks a few things. I have patched common.i to fix most of it. There will be some other things later that should be compatible with all versions. Can someone test to see if this compiles with the old version? Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: common.i.patch Url:
2007 Jul 21
0
[1128] trunk/wxruby2/swig/common.i: Make GC_IsWindowDeleted function globally available
...pan class="cx"> // released under the MIT-style wxruby2 license </span><span class="cx"> </span><span class="lines">@@ -34,6 +35,7 @@ </span><span class="cx"> </span><span class="cx"> extern VALUE mWxruby2; // The global Wxruby2 module </span><span class="cx"> extern swig_class cWxTopLevelWindow; // used for wxWindow typemap in typemap.i </span><ins>+extern bool GC_IsWindowDeleted(void *ptr); </ins><span class="cx"> </span><span class=...
2006 Oct 23
0
[710] trunk/wxruby2/swig/common.i: Added extern keyword to Gc functions and moved common header includes to %runtime
...n void GcMarkDeleted(void *); +extern bool GcIsDeleted(void *); +extern void GcMapPtrToValue(void *ptr, VALUE val); +extern VALUE GcGetValueFromPtr(void *ptr); +extern void GcFreefunc(void *); </ins><span class="cx"> </span><span class="cx"> extern VALUE mWxruby2; </span><span class="cx"> %} </span></span></pre> </div> </div> </body> </html>
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...ent argument in this file display +// dialogs, so the parent argument can be nil (which is not permitted in +// the normal typemap defined in typemap.i). So override the standard +// typemap and just check that the App has been started. +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 May 21
0
[1025] trunk/wxruby2/swig: Use Wx::THE_APP constant as global reference to App (as per WxWidgets);
...</span><span class="cx"> </span><span class="cx"> static VALUE get_app(VALUE self) </span><span class="cx"> { </span><del>- VALUE ret = wxRubyApp::app_ptr; - - return ret; </del><ins>+ rb_const_get(mWxruby2, rb_intern("THE_APP")); </ins><span class="cx"> } </span><span class="cx"> </span><span class="cx"> static VALUE </span></span></pre></div> <a id="trunkwxruby2swigrenamerrb"></a&g...
2007 Jul 04
0
[1099] trunk/wxruby2/swig/classes/XmlResource.i: Permit Dialogs and Frames with no parents to be created via XRC; add comments
...ource +// LoadDialog and LoadFrame methods. So we disable that part of the +// checking for all methods (including those which would ideally retain +// it - eg LoadPanel - b/c no way to apply a typemap based on method +// name in SWIG?) +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...t;cx"> </span><del>-extern void GcMarkDeleted(void *); -extern bool GcIsDeleted(void *); -extern void GcMapPtrToValue(void *ptr, VALUE val); -extern VALUE GcGetValueFromPtr(void *ptr); -extern void GcFreefunc(void *); - </del><span class="cx"> extern VALUE mWxruby2; </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> %include "typedefs.i" </span><span class="cx"> %include "typemap.i" </span><del>- -# -# Protect cer...
2005 Aug 04
9
wxruby2 retooling
I finally gave up on swig 1.3.22, since it seems to be causing too many problems. Ubuntu breezy will have 1.3.24, so I''m retargeting wxruby2 to swig 1.3.24+. At the moment, I have 1.3.25 on my system, since that''s the current release. I''m finding all kinds of problems with the post-processors we have that clean up the .cpp files that swig creates. The