search for: wxsizer

Displaying 20 results from an estimated 23 matches for "wxsizer".

Did you mean: wxsize
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...irectors="1") wxBoxSizer </span><span class="cx"> GC_MANAGE_AS_OBJECT(wxBoxSizer); </span><span class="cx"> </span><ins>+ +// shared functions for GC marking +%include "../shared/sizers.i" +%markfunc wxBoxSizer "mark_wxSizer"; + + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "include/wxSizer.h" </span><span class="cx"> </span></span></pre></div> <a id="trun...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...t; </span><span class="cx"> </span><del>-// shared functions for GC marking </del><ins>+// shared functions </ins><span class="cx"> %include "../shared/sizers.i" </span><del>-%markfunc wxBoxSizer "mark_wxSizer"; </del><span class="cx"> </span><del>- </del><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "include/wxSizer.h" </span><span class="cx"> &...
2007 Jan 25
0
[854] trunk/wxruby2/swig/classes: Add support for GridBagSizer
...wx/gbsizer.h> +%} + +// ignore these for now - are they useful? +// require GBSizerItem to be wrapped +%ignore wxGridBagSizer::FindItemWithData; +%ignore wxGridBagSizer::FindItemAtPoint; +%ignore wxGridBagSizer::FindItemAtPosition; + +%import "include/wxObject.h" +%import "include/wxSizer.h" +%import "include/wxGridSizer.h" +%import "include/wxFlexGridSizer.h" + +%include "include/wxGridBagSizer.h" </ins></span></pre></div> <a id="trunkwxruby2swigclassesincludewxGBPositionh"></a> <div class="add...
2006 Nov 23
0
[749] trunk/wxruby2: Bring the documentation and actual method support into line for
...into line for partially deprecated Sizer#remove method</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2doctextilesizertxtl">trunk/wxruby2/doc/textile/sizer.txtl</a></li> <li><a href="#trunkwxruby2swigclassesincludewxSizerh">trunk/wxruby2/swig/classes/include/wxSizer.h</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2doctextilesizertxtl"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/...
2008 Jan 08
28
1.9.3 release, rakefile
Hi I''d like to put out a 1.9.3 release perhaps later this week/weekend. If you have a chance to test the build and samples esp with latest rubygems, please do. There are still some bugs on the list, and samples to do, but this should address all the build/install probs that have come up. And it would be good to get some testing and feedback on some of the new classes. A note on the
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...marked by in-scope variables by </span><span class="cx"> // Ruby. Otherwise, segfaults may result. Because Sizers are SWIG </span><span class="cx"> // directors, they must be preserved from GC. </span><del>-void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer) </del><ins>+void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) </ins><span class="cx"> { </span><span class="cx"> // First, mark this sizer </span><del>- rb_gc_mark( SWIG_RubyInstanceFor(wx_sizer)...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...ecause ONLY sizers -// that are known to belong to a still-alive window should be marked, -// not those picked up as marked by in-scope variables by -// Ruby. Otherwise, segfaults may result. Because Sizers are SWIG -// directors, they must be preserved from GC. -void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) -{ - // First, mark this sizer - rb_gc_mark( rb_sizer ); - - // Then loop over hte sizer''s content and mark each sub-sizer in turn - wxSizerItemList& children = wx_sizer->GetChildren(); - for ( wxwxSizerItemListNode *node = children.GetFirst(); -&a...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...ecause ONLY sizers +// that are known to belong to a still-alive window should be marked, +// not those picked up as marked by in-scope variables by +// Ruby. Otherwise, segfaults may result. Because Sizers are SWIG +// directors, they must be preserved from GC. +void GC_mark_SizerBelongingToWindow(wxSizer *wx_sizer, VALUE rb_sizer) +{ + // First, mark this sizer + rb_gc_mark( rb_sizer ); + + // Then loop over hte sizer''s content and mark each sub-sizer in turn + wxSizerItemList& children = wx_sizer->GetChildren(); + for ( wxwxSizerItemListNode *node = children.GetFirst(); +&a...
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)
...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/wxObject.h"...
2005 Jul 30
7
Can''t compile the cvs-tree
.../usr/lib/ruby/site_ruby/1.8 -I /usr/lib/ruby/site_ruby/1.8/i686-linux -I /usr/lib/ruby/site_ruby -I /usr/lib/ruby/1.8 -I /usr/lib/ruby/1.8/i686-linux -I . -o obj/Sizer.o src/Sizer.cpp In file included from src/Sizer.cpp:1092: src/Sizer.h:25: error: conflicting return type specified for `virtual wxSizerItem* SwigDirector_wxSizer::Insert(unsigned int, wxSizerItem*)'' /usr/include/wx-2.5/wx/sizer.h:324: error: overriding `virtual void wxSizer::Insert(unsigned int, wxSizerItem*)'' src/Sizer.cpp: In member function `virtual wxSizerItem* SwigDirector_wxSizer::Insert(unsigned int...
2006 Dec 30
0
[ wxruby-Bugs-7503 ] Segfaults on exception, related to sizer
...orrect sequencing of sizer item destruction. An example backtrace (OS X ppc): Program received signal EXC_BAD_ACCESS, Could not access memory. 0x0e40be00 in ?? () (gdb) whe #0 0x0e40be00 in ?? () Cannot access memory at address 0xe40be00 Cannot access memory at address 0xe40be00 #1 0x032cb3d0 in wxSizerItem::~wxSizerItem() () #2 0x032cbd54 in wxSizer::~wxSizer() () #3 0x031aeec8 in SwigDirector_wxStaticBoxSizer::~SwigDirector_wxStaticBoxSizer() () #4 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858 #5 0x000041d4 in ruby_finalize_1 () at eval.c:1418 #6 0x00004340 in ruby_cleanup (ex=...
2008 May 11
4
Choosing a Sizer
Following alex advices, i''ve used both "text/textctrl.rb" and "etc/threaded.rb" to build my first wxApp. I''ve changed the Sizer type mainly (from "Wx::BoxSizer" to "Wx::FlexGridSizer"). I didn''t find the way to let @log (Wx::TextCtrl) span 2 columns. At the time of writing it''s growing only vertically. And also how to get
2007 Jul 21
0
[1129] trunk/wxruby2/swig/classes/Window.i: Add DISOWN typemap for ToolTip so it isn''t double-deleted
...</del><ins>+// Any of these following kind of objects become owned by the window +// when passed into Wx, and so will be deleted automatically; using +// DISOWN resets their %freefunc to avoid deleting the object twice +%apply SWIGTYPE *DISOWN {wxCaret* caret}; +%apply SWIGTYPE *DISOWN {wxSizer* sizer}; +%apply SWIGTYPE *DISOWN {wxToolTip* tip}; </ins><span class="cx"> </span><del>-// Any sizers passed in to wx become owned by C++ -%apply SWIGTYPE *DISOWN {wxSizer* sizer}; - </del><span class="cx"> %apply int * INOUT { int * x_INOU...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...amp;nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Return the sizer that this window is a member of, if any, otherwise - . -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> const wxSizer * GetContainingSizer() const; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Returns the associated drop target, which may be NULL. -&nbsp&nbsp&nbsp&...
2006 Aug 26
7
Progress on crashing
I''m using my SpaceMonkeys game as a testbed to try to get rid of crashing problems. Earlier today, it would crash for me almost immediately, every time. Now, I was able to get about 50 turns into the game! I mentioned the first big change in a different email. The new change I just checked in was to add the DISOWN flag to Window#set_sizer. This is the first time (that I know of) that we
2007 Mar 19
0
[900] branches/wxruby2/wxwidgets_282/swig/classes: Initial commit of AUI core classes
...const wxPoint& pt, + const wxPoint& offset); + + virtual void ShowHint(const wxRect& rect); + virtual void HideHint(); + +protected: + + void UpdateHintWindowConfig(); + + void DoFrameLayout(); + + void LayoutAddPane(wxSizer* container, + wxAuiDockInfo& dock, + wxAuiPaneInfo& pane, + wxAuiDockUIPartArray& uiparts, + bool spacer_only); + + void LayoutAddDock(wxSizer* container, + wxAuiDockInfo&amp...
2007 Jan 23
0
[852] trunk/wxruby2/swig/classes/include/parents.rb: Fix MultiChoiceDialog name
...''wxNotebook'' => ''wxControl'', </span><span class="cx"> ''wxNotebookEvent'' => ''wxNotifyEvent'', </span><span class="cx"> ''wxNotebookSizer'' => ''wxSizer'', </span></span></pre> </div> </div> </body> </html>
2007 Jun 26
0
[1077] trunk/wxruby2/swig/classes/StaticBoxSizer.i: Avoid crash-on-exit with StatBoxSizer by removing some unnec director methods
...uot;>@@ -8,8 +8,15 @@ </span><span class="cx"> </span><span class="cx"> // shared functions for GC marking </span><span class="cx"> %include "../shared/sizers.i" </span><del>-%markfunc 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:...
2007 Mar 18
0
[897] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: DISOWN typemap to prevent crash on GC/exit when caret has been set (bug #9093)
...cx"> </span><ins>+// Caret set by set_caret becomes owned by C++ +%apply SWIGTYPE *DISOWN {wxCaret* caret}; + </ins><span class="cx"> // Any sizers passed in to wx become owned by C++ </span><span class="cx"> %apply SWIGTYPE *DISOWN {wxSizer* sizer}; </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...p&nbsp&nbsp * \brief Ends a modal dialog, passing a value to be returned from the -invocation. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \param int -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><ins>+ wxSizer* CreateButtonSizer(long flags); + wxSizer* CreateSeparatedButtonSizer(long flags); + wxStdDialogButtonSizer* CreateStdDialogButtonSizer(long flags); </ins><span class="cx"> virtual void EndModal(int retCode ) ; </span><del>-&nbsp&nbsp&nbsp&nbsp...