search for: the_app

Displaying 13 results from an estimated 13 matches for "the_app".

Did you mean: the_acl
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
...splay:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1022</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-05-21 14:36:03 -0400 (Mon, 21 May 2007)</dd> &l...
2007 May 21
0
[1025] trunk/wxruby2/swig: Use Wx::THE_APP constant as global reference to App (as per WxWidgets);
...ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1025] trunk/wxruby2/swig: Use Wx::THE_APP constant as global reference to App (as per WxWidgets);</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1025</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-05-...
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
...ass="lines">@@ -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&am...
2007 Oct 23
3
CheckListBox : delete method bug !
...e). I''m running on Windows 2000. require "wx" ###################################### # Copy/Paste of wxRuby 1.9.2 additions class Wx::App def self.run(&block) app_klass = Class.new(self) app_klass.class_eval do define_method(:on_init, &block) end the_app = app_klass.new the_app.main_loop end end class Wx::CommandEvent alias :get_index :get_int end # End of Copy/Paste of wxRuby 1.9.2 additions ############################################# class Wx::CheckListBox # if the following method is defined, some items cannot be checked ! def de...
2007 Jun 27
0
[1088] trunk/wxruby2/swig/Functions.i: Added a return statement where needed to fix compile on Win32
...gt;<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></span></pre> </d...
2008 Sep 12
7
embedding wxruby?
Hello, is it possible to code a wxWidgets GUI in C++ and pass the whole wxApp or just single windows to embedded Ruby code? This would be very nice to provide a scriptable plugin system. Greetings, Niklas _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
...// 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&nbsp&nbsp&nbsp&...
2007 Sep 27
10
Adding more sugar to wxSugar
Hi all, New wxRuby event handling offers the choice between using blocks or methods seamlessly and easily. This is great respectively for simple app and more complex app. Nevertheless, currently the creation of an application, a frame, or a dialog is very tedious for simple app : - you need to create a subclass of Wx::App, Wx::Frame ... - you need to put the initialization code in the initialize
2010 Sep 09
1
Wx::Grid and motion events, bug?
...= MyApp.new x.main_loop - -------------------------------------------------------------- If I hover the mouse above the grid, nothing happens, but if I put in a panel control instead of a grid, it works. Surprisingly, if I changed the line @grid.evt_motion{|e| p "!"; $stdout.flush} to THE_APP.evt_motion{|e| p "!"; $stdout.flush} I get motion events for everything but the grid. As soon as the cursor enters the grid control, no output arrives anymore. What''s going on here? Is that a bug? I''m working on Ubuntu Lucid. Here''s the uname -a: Linux ikarus...
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...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&nbsp&nbsp&nbsp&...
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
...oadFrame 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&nbsp&nbsp&nbsp&...
2007 May 22
0
[1028] trunk/wxruby2/swig/classes/App.i: Fix some GC-mark crashes when SWIG trackings return an unexpected object
...<span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn Qnil; </span><span class="cx"> } </span><span class="cx"> </span><ins>+ // Implements GC protection. Always called because Wx::THE_APP is a + // so always checked in GC mark phase. </ins><span class="cx"> static void mark_wxRubyApp(void *ptr) </span><span class="cx"> { </span><span class="cx"> </span><span class="lines">@@ -99,9 +104,12...
2007 May 21
0
[1027] trunk/wxruby2/doc/textile/app.txtl: Ruby-specific Wx::App documentation
...use the macro IMPLEMENT_APP(appClass) in your application implementation -file to tell Widgets how to create an instance of your application class. </del><ins>+Any wxRuby program will have a single instance of Wx::App, which can be +accessed once the app has started by the constant @Wx::THE_APP@, or by +the module method @Wx::get_app()@. </ins><span class="cx"> </span><del>-Use DECLARE_APP(appClass) in a header file if you want the GetApp function (which returns -a reference to your application object) to be visible to other files. - </del><span...