search for: wxtreeitemid

Displaying 20 results from an estimated 22 matches for "wxtreeitemid".

2006 Dec 30
1
wxTreeItemId
...mId. Specifically, I''m getting ''null reference'' errors after a time - which I think means that the wrapper is tracking objects, but the underlying C++ object is deleted. Rather than trying to fix this. I''m wondering if it''s easier to do away with the wxTreeItemId class, and just use typemaps to convert these to ruby Integers (as in 0.6.0). The following seems to work for me: %typemap(in) wxTreeItemId& "$1 = new wxTreeItemId(NUM2INT($input));" %typemap(directorin) wxTreeItemId& "$input = LONG2NUM( (long)$1.m_pItem );" %typemap(o...
2007 Jan 05
0
[831] trunk/wxruby2: Use simple ruby Integers to represent TreeItemIds
...0,10 @@ </span><span class="cx"> #include <wx/treectrl.h> </span><span class="cx"> %} </span><span class="cx"> </span><del>- // ITEM DATA fixes - This is done so the API user never sees a </del><ins>+// wxTreeItemId fixes - these typemaps convert them to ruby Integers +%include "../shared/treeitemid_typemaps.i" + +// ITEM DATA fixes - This is done so the API user never sees a </ins><span class="cx"> // TreeItemData object - where in Wx C++ such an object </span><span cl...
2007 Mar 17
0
[888] branches/wxruby2/wxwidgets_282/swig/shared/treeitemid_typemaps.i: Fix compile warning for TreeItemId typemap (Artur Kuptel)
...;>@@ -1,10 +1,8 @@ </span><span class="cx"> // These typemaps are used by TreeCtrl and TreeEvent to convert wx tree </span><span class="cx"> // item ids into simple </span><span class="cx"> </span><del>-%typemap(in) wxTreeItemId& "$1 = new wxTreeItemId(NUM2LONG($input));" </del><ins>+%typemap(in) wxTreeItemId& "$1 = new wxTreeItemId((void*)NUM2LONG($input));" </ins><span class="cx"> %typemap(out) wxTreeItemId "$result = LONG2NUM( (long)$1.m_pItem );" &...
2007 Mar 29
0
[927] branches/wxruby2/wxwidgets_282/swig/classes: Changed the version of InsertItem that puts the item before current selection to InsertItemBefore
...p;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp//does not get confused between the 2 method signatures +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp//This behavior matches that used by wxPython. +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxTreeItemId insert_item_before(const wxTreeItemId& parent, + size_t index, + const wxString& text, + int image = -1, int selectedImage = -1, + wxTreeItemData *data = NULL) +&nbsp&nbsp&nbsp&am...
2006 Dec 05
0
[779] trunk/wxruby2: Added TreeCtrl#traverse method and documentation
...ata fixes </ins><span class="cx"> </span><ins>+ </ins><span class="cx"> // GC handling for item data objects </span><span class="cx"> %{ </span><del>- static void RecursivelyGCMarkFrom(wxTreeCtrl *tree_ctrl, wxTreeItemId base_id ) </del><ins>+ // general recursion over a treectrl, starting from a base_id + // the function rec_func will be called in turn for each tree item, + // rec_func should be a funtion that receives a treectrl pointer and an ItemId + static void RecurseOverTreeIds(wxTreeCtrl *t...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...</span><span class="cx"> #if !defined(_wxTreeCtrl_h_) </span><span class="lines">@@ -148,6 +148,7 @@ </span><span class="cx"> // is item text in bold font? </span><span class="cx"> bool IsBold(const wxTreeItemId& item) const; </span><span class="cx"> // does the layout include space for a button? </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspbool IsEmpty() const; </ins><span class="cx"> </span>...
2006 Dec 23
0
[797] trunk/wxruby2/swig/classes/TreeCtrl.i: Traverse method moved to wxSugar
...&nbsp&nbsp } </span><span class="cx"> } </span><span class="cx"> </span><ins>+ // Called on every tree item to do GC marking of itemdata </ins><span class="cx"> static void DoGCMarkItemData(void *ptr, const wxTreeItemId& item_id) </span><span class="cx"> { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxTreeCtrl* tree_ctrl = (wxTreeCtrl*) ptr; </span><span class="lines">@@ -90,15 +91,6 @@ <...
2011 Feb 12
8
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...ke, as an example: class VariableItem : public TreeItemBase { public: VariableItem(const llvm::Module* module, const llvm::GlobalVariable* var) : module_(module), var_(var) {} // Overrides int GetIcon() const; wxString GetCaption() const; void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); bool CanCreateChildren() const; void ShowDetails(DetailsView* detailsView); private: const llvm::Module* const module_; const llvm::GlobalVariable* const var_; }; -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm....
2006 Dec 24
0
[799] trunk/wxruby2: Fixed TreeItemId == method
...es">@@ -9,4 +9,12 @@ </span><span class="cx"> #include <wx/treectrl.h> </span><span class="cx"> %} </span><span class="cx"> </span><ins>+// returns the underlying opaque identifier as a ruby fixnum +%extend wxTreeItemId { + VALUE to_i() + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn INT2NUM( (int)self->m_pItem ); + } +} + </ins><span class="cx"> %include "include/wxTreeItemId.h" </span></span></pre> </div> </div&g...
2011 Feb 12
0
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...iableItem : public TreeItemBase { > public: > VariableItem(const llvm::Module* module, const llvm::GlobalVariable* var) > : module_(module), var_(var) {} > > // Overrides > > int GetIcon() const; > wxString GetCaption() const; > void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); > bool CanCreateChildren() const; > void ShowDetails(DetailsView* detailsView); > > private: > const llvm::Module* const module_; > const llvm::GlobalVariable* const var_; > }; > > > -- > -- Talin -------------- next part -------------- An HTML attachment...
2006 Aug 18
10
TreeCtrl update
...rstChild and GetNextChild to return an array of values to match the wxPython and wxPerl usage. I also noticed that wxTreeCtrl is inherited from wxControl on Windows and wxScrolledWindow on everything else so I #if defined the .i and .h file accordingly. I also added a .i and .h file for the class wxTreeItemId. The TreeCtrl files were changed so much that I am just uploading the whole files instead of the diffs. traverse_tree(tree_ctrl,tree_ctrl.get_root_item) do |node_id,cookie| puts "Name: #{tree_ctrl.get_item_text(node_id)}\t\tCookie: #{cookie}" end def traverse_tree(tree_ctrl,root_node...
2011 Feb 12
1
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...: public TreeItemBase { > public: > VariableItem(const llvm::Module* module, const llvm::GlobalVariable* var) > : module_(module), var_(var) {} > > // Overrides > > int GetIcon() const; > wxString GetCaption() const; > void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); > bool CanCreateChildren() const; > void ShowDetails(DetailsView* detailsView); > > private: > const llvm::Module* const module_; > const llvm::GlobalVariable* const var_; > }; > > > -- > -- Talin ______________________________________________...
2011 Feb 12
0
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...ic TreeItemBase { > public: > VariableItem(const llvm::Module* module, const llvm::GlobalVariable* var) > : module_(module), var_(var) {} > > // Overrides > > int GetIcon() const; > wxString GetCaption() const; > void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); > bool CanCreateChildren() const; > void ShowDetails(DetailsView* detailsView); > > private: > const llvm::Module* const module_; > const llvm::GlobalVariable* const var_; > }; > > -- > -- Talin > _______________________________________________...
2011 Feb 13
0
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...blic TreeItemBase { > public: > VariableItem(const llvm::Module* module, const llvm::GlobalVariable* var) > : module_(module), var_(var) {} > > // Overrides > > int GetIcon() const; > wxString GetCaption() const; > void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); > bool CanCreateChildren() const; > void ShowDetails(DetailsView* detailsView); > > private: > const llvm::Module* const module_; > const llvm::GlobalVariable* const var_; > }; > > > -- > -- Talin > -- -- Talin -------------- next part -----...
2007 Apr 13
0
[950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft
...9:13:30 UTC (rev 950) </span><span class="lines">@@ -23,6 +23,9 @@ </span><span class="cx"> wxDIRCTRL_EDIT_LABELS = 0x0100 </span><span class="cx"> }; </span><span class="cx"> </span><ins>+// wxTreeItemId conversion to Ruby Integers - GetRootId method needs this +%include "../shared/treeitemid_typemaps.i" + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "include/wxEvtHandler.h" </span&...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...mp;nbsp&nbsp&nbsp2007-03-17 18:39:40 UTC (rev 883) </span><span class="lines">@@ -365,8 +365,8 @@ </span><span class="cx"> // Only for internal use right now, but should probably be public </span><span class="cx"> wxTreeItemId GetNext(const wxTreeItemId& item) const; </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspbool HasChildren(const wxTreeItemId& item) const; </span><del>- // expand this item and all subitems recursively...
2007 Jun 05
0
[1046] trunk/wxruby2/swig/classes/TreeCtrl.i: Prevent crashes in TreeCtrl from premature deletion of associated ImageList
...007-06-05 20:05:22 UTC (rev 1045) +++ trunk/wxruby2/swig/classes/TreeCtrl.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-06-05 20:06:13 UTC (rev 1046) </span><span class="lines">@@ -13,6 +13,10 @@ </span><span class="cx"> // wxTreeItemId fixes - these typemaps convert them to ruby Integers </span><span class="cx"> %include "../shared/treeitemid_typemaps.i" </span><span class="cx"> </span><ins>+%ignore wxTreeCtrl::AssignImageList; +%ignore wxTreeCtrl::AssignButtonsIm...
2011 Feb 14
1
[LLVMdev] Introducing LLBrowse: A graphical browser for LLVM modules
...VariableItem(const llvm::Module* module, const llvm::GlobalVariable* >> var) >> : module_(module), var_(var) {} >> >> // Overrides >> >> int GetIcon() const; >> wxString GetCaption() const; >> void CreateChildren(wxTreeCtrl* tree, const wxTreeItemId& id); >> bool CanCreateChildren() const; >> void ShowDetails(DetailsView* detailsView); >> >> private: >> const llvm::Module* const module_; >> const llvm::GlobalVariable* const var_; >> }; >> >> >> -- >> -- Talin >&gt...
2005 May 03
10
Is wxRuby-SWIG version usable enough to package for download?
If wxRuby-SWIG is as usable as wxRuby 0.6.0, maybe it should be given a version number and packaged up for download. Given the nature of SWIG, having a lot more people use it would probably result in more code contributions to this project. Seems most of the changes are 2+ months old, so I''m guessing wxRuby-SWIG is fairly stable right now in terms of frequency of changes...
2007 Mar 09
0
[877] trunk/wxruby2/Changelog: Update with 0.0.39 changes; correct last version number
...) +- Added PasswordEntryDialog class (Alex Fenton) +- Fix segfault on exit on GTK (Alex Fenton) +- Added missing ''methods'' list in docs for numerous classes (Alex Fenton) +- Fix the inheritance chain for wxIcon, fixes the ''ok'' method on M (Alex Fenton) +- Typemap wxTreeItemId to a simple ruby Integer, not a full ruby class (Alex Fenton) +- Make wx raise an exception if Icon created from non-existent file (Alex Fenton) +- Fix a GC crasher when using nested sizers (Alex Fenton) +- Made NULL_XXX objects available from startup though (Alex Fenton) +- Moved init StockObject...