Displaying 15 results from an estimated 15 matches for "nodirector".
2007 Jun 26
0
[1077] trunk/wxruby2/swig/classes/StaticBoxSizer.i: Avoid crash-on-exit with StatBoxSizer by removing some unnec director methods
...wxBoxSizer "mark_wxSizer";
</del><ins>+%markfunc wxBoxSizer "mark_wxSBSizer";
</ins><span class="cx">
</span><ins>+// Must ensure that the C++ detach method is called, else the associated
+// StaticBox will be double-freed
+%feature(nodirector) wxStaticBoxSizer::Detach;
+%feature(nodirector) wxStaticBoxSizer::Remove;
+%feature(nodirector) wxStaticBoxSizer::Clear;
+
+
</ins><span class="cx"> %import "include/wxObject.h"
</span><span class="cx"> %import "include/wxSizer.h"
<...
2007 Jul 18
0
[1117] trunk/wxruby2/swig/classes/App.i: No director for GetTopWindow, remove Unlink in OnExit to avoid exception
...pan><span class="lines">@@ -19,9 +19,9 @@
</span><span class="cx"> // Redefined below
</span><span class="cx"> %ignore MainLoop;
</span><span class="cx"> %ignore FilterEvent;
</span><del>-%feature("nodirector") FilterEvent;
</del><ins>+%feature("nodirector") FilterEvent; // director-like custom method below
+%feature("nodirector") GetTopWindow; // avoid exception on exit
</ins><span class="cx">
</span><del>-
</del><span cla...
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex,
I was getting the following crashes when editing cells in a grid:
./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for
"_p_wxEvent":String (NoMethodError)
from ./init.rb:1072
but only after the first App GC mark phase.
So I changed all the GridCell*Editor.i files from GC_MANAGE to
GC_MANAGE_AS_EVENT. Which stopped the crashing. My question
2007 Jan 08
0
[844] trunk/wxruby2/swig/classes: Added IconBundle class for multi-resolution icons, cleaned comment cruft
...41 UTC (rev 844)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+# Copyright 2004-2007 by Kevin Smith
+# released under the MIT-style wxruby2 license
+
+%include "../common.i"
+
+%module(directors="1") wxIconBundle
+
+%feature("nodirector") wxIconBundle;
+%feature("nodirector") ~wxIconBundle;
+
+
+%include "include/wxIconBundle.h"
</ins></span></pre></div>
<a id="trunkwxruby2swigclassesincludewxIconBundleh"></a>
<div class="modfile"><h4>Modi...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...n class="lines">@@ -6,13 +6,13 @@
</span><span class="cx"> %module(directors="1") wxSizer
</span><span class="cx"> GC_MANAGE_AS_OBJECT(wxSizer);
</span><span class="cx">
</span><ins>+%feature("nodirector") wxSizer::CalcMin;
</ins><span class="cx"> %ignore wxSizer::IsShown;
</span><span class="cx">
</span><del>-%feature("nodirector") wxSizer::CalcMin;
</del><ins>+// shared functions for GC marking
+%include ".....
2007 Jun 28
0
[1097] trunk/wxruby2/swig/classes/ClassInfo.i: Remove wxClassInfo class because it doesn''t seem at all useful in Ruby
...;/span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-// Copyright 2004-2007 by Kevin Smith
-// released under the MIT-like wxRuby license
-
-%include "../common.i"
-
-%module(directors="1") wxClassInfo
-GC_MANAGE(wxClassInfo);
-
-%feature("nodirector") wxClassInfo;
-
-%ignore wxClassInfo::wxClassInfo;
-
-# deprecated:
-%ignore wxClassInfo::InitializeClasses;
-
-
-
-%include "include/wxClassInfo.h"
</del></span></pre>
</div>
</div>
</body>
</html>
2007 Jul 12
0
[1110] trunk/wxruby2/swig/classes/App.i: Remove director method from App#filter_event to fix meth routing error on Linux
...pan><span class="lines">@@ -19,7 +19,9 @@
</span><span class="cx"> // Redefined below
</span><span class="cx"> %ignore MainLoop;
</span><span class="cx"> %ignore FilterEvent;
</span><ins>+%feature("nodirector") FilterEvent;
</ins><span class="cx">
</span><ins>+
</ins><span class="cx"> %rename(wx_initialize) Initialize;
</span><span class="cx">
</span><span class="cx"> #/////////////////////////////...
2007 Jan 05
0
[828] trunk/wxruby2/swig/classes/Sizer.i: Ensure that nested Sizers are disowned and not GC''d (fixes segfault at exit)
...;/span><span class="cx">
</span><span class="cx"> %include "../common.i"
</span><span class="lines">@@ -9,6 +9,9 @@
</span><span class="cx">
</span><span class="cx"> %feature("nodirector") wxSizer::CalcMin;
</span><span class="cx">
</span><ins>+// Any nested sizers passed to Add() in are owned by C++, not GC''d by Ruby
+%apply SWIGTYPE *DISOWN { wxSizer* sizer };
+
</ins><span class="cx"> %import "include/wx...
2007 May 05
0
[1016] trunk/wxruby2/swig/classes/StatusBar.i: Remove directors from StatusBar''s methods as don''t seem to need them, (Bug:6809)
...t;>
</span><del>-%{
-#include <wx/mdi.h>
-%}
</del><ins>+// StatusBar has numerous methods (eg GetFieldRect, G/SetStatusText,
+// SetFieldsCount) that are marked ''virtual'', but can''t be
+// usefully re-implemented in Ruby.
+%feature("nodirector");
</ins><span class="cx">
</span><ins>+// For GetFieldsRect
</ins><span class="cx"> %typemap(in,numinputs=0) (wxRect& rect)
</span><span class="cx"> {
</span><span class="cx"> $1 = new w...
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...span><span class="cx"> // be stored so not tracked.
</span><span class="cx"> %define GC_MANAGE_AS_EVENT(kls)
</span><span class="cx"> %feature("freefunc") kls "GcNullFreeFunc";
</span><ins>+%feature("nodirector") kls;
</ins><span class="cx"> %enddef
</span><span class="cx">
</span><span class="cx"> // Other descendants of Wx::Object - eg Colour, Pen, Bitmap - that Wx
</span></span></pre></div>
<a id="t...
2007 Sep 26
7
development status, 1.9.2
Hi all
Just a quick update on recent SVN activity:
* added Sound and CollapsiblePane classes
* added the XRC tool to wxSugar
* fixed some XRC bugs in Window
* added syntax sugar for event handlers and list-like controls
* added some missing methods in Sizer
Sean - I''m away for about 10 days from this weekend, and I''m thinking of
doing a 1.9.2 release in the next day or two.
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
...t;cx">
</span><span class="cx"> %module(directors="1") wxDC
</span><span class="cx">
</span><del>-// avoid directors for pure virtuals
-// for some reason, ignoring just this one avoids errors for the rest!?
-%feature("nodirector") wxDC::GetCharHeight;
-
-// Not sure why these are ignored
-%ignore wxDC::CacheEnabled;
-%ignore wxDC::ClearCache;
-%ignore wxDC::EnableCache;
</del><ins>+// raises ''void value is not ignored as it should be'' compile error
</ins><span class="cx"...
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
..."lines">@@ -0,0 +1,68 @@
</span><ins>+# Copyright 2004-2006 by Kevin Smith
+# released under the MIT-style wxruby2 license
+
+%include "../common.i"
+
+%module(directors="1") wxAcceleratorTable
+
+%{
+#include <wx/accel.h>
+%}
+
+%feature("nodirector") wxAcceleratorTable;
+
+// This form is supported on windows only
+%ignore wxAcceleratorTable::wxAcceleratorTable(const wxString& resource);
+// Default constructor
+%ignore wxAcceleratorTable::wxAcceleratorTable();
+// This ctor is probably not needed
+%ignore wxAcceleratorTable::wxAccel...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...span><span class="cx"> %module(directors="1") wxSizer
</span><del>-GC_MANAGE_AS_OBJECT(wxSizer);
</del><ins>+GC_MANAGE_AS_SIZER(wxSizer);
</ins><span class="cx">
</span><span class="cx"> %feature("nodirector") wxSizer::CalcMin;
</span><span class="cx"> %ignore wxSizer::IsShown;
</span><span class="cx">
</span><del>-// shared functions for GC marking
</del><ins>+// shared functions
</ins><span class="cx"> %i...
2009 Sep 03
24
wxRuby-2.0.1 release ?
Hi,
What about releasing a new version shortly ?
This is a long-awaited request from several users especially for
recent ruby-1.9.1 versions on MinGW.
Cheers.
Chauk-Mean.