nobody at rubyforge.org
2007-Apr-13 19:13 UTC
[Wxruby-development] [950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:'':'';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; } #msg ul, pre { overflow: auto; } #header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #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>[950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>950</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-13 15:13:30 -0400 (Fri, 13 Apr 2007)</dd> </dl> <h3>Log Message</h3> <pre>Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft</pre> <h3>Modified Paths</h3> <ul> <li><a href="#brancheswxruby2wxwidgets_282doctextilegenericdirctrltxtl">branches/wxruby2/wxwidgets_282/doc/textile/genericdirctrl.txtl</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesGenericDirCtrli">branches/wxruby2/wxwidgets_282/swig/classes/GenericDirCtrl.i</a></li> <li><a href="#brancheswxruby2wxwidgets_282swigclassesincludewxGenericDirCtrlh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxGenericDirCtrl.h</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="brancheswxruby2wxwidgets_282doctextilegenericdirctrltxtl"></a> <div class="modfile"><h4>Modified: branches/wxruby2/wxwidgets_282/doc/textile/genericdirctrl.txtl (949 => 950)</h4> <pre class="diff"><span> <span class="info">--- branches/wxruby2/wxwidgets_282/doc/textile/genericdirctrl.txtl        2007-04-13 19:12:30 UTC (rev 949) +++ branches/wxruby2/wxwidgets_282/doc/textile/genericdirctrl.txtl        2007-04-13 19:13:30 UTC (rev 950) </span><span class="lines">@@ -39,6 +39,7 @@ </span><span class="cx"> * "GenericDirCtrl#init":#GenericDirCtrl_init </span><span class="cx"> * "GenericDirCtrl#collapse_tree":#GenericDirCtrl_collapsetree </span><span class="cx"> * "GenericDirCtrl#expand_path":#GenericDirCtrl_expandpath </span><ins>+* "GenericDirCtrl#collapse_path":#GenericDirCtrl_collapsepath </ins><span class="cx"> * "GenericDirCtrl#get_default_path":#GenericDirCtrl_getdefaultpath </span><span class="cx"> * "GenericDirCtrl#get_path":#GenericDirCtrl_getpath </span><span class="cx"> * "GenericDirCtrl#get_file_path":#GenericDirCtrl_getfilepath </span><span class="lines">@@ -52,6 +53,7 @@ </span><span class="cx"> * "GenericDirCtrl#set_filter":#GenericDirCtrl_setfilter </span><span class="cx"> * "GenericDirCtrl#set_filter_index":#GenericDirCtrl_setfilterindex </span><span class="cx"> * "GenericDirCtrl#set_path":#GenericDirCtrl_setpath </span><ins>+* "GenericDirCtrl#show_hidden":#GenericDirCtrl_showhidden </ins><span class="cx"> </span><span class="cx"> </div> </span><span class="cx"> </span><span class="lines">@@ -119,6 +121,12 @@ </span><span class="cx"> </span><span class="cx"> Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control. </span><span class="cx"> </span><ins>+h3(#GenericDirCtrl_collapsepath). GenericDirCtrl#collapse_path + + Boolean *collapse_path*(%(arg-type)String% path) + +Collapse the given path. + </ins><span class="cx"> h3(#GenericDirCtrl_getdefaultpath). GenericDirCtrl#get_default_path </span><span class="cx"> </span><span class="cx"> String *get_default_path*() </span><span class="lines">@@ -200,3 +208,12 @@ </span><span class="cx"> </span><span class="cx"> Sets the current path. </span><span class="cx"> </span><ins>+h3(#GenericDirCtrl_ShowHidden). GenericDirCtrl#show_hidden + + *show_hidden*(%(arg-type)Boolean% show) + +h4. Parameters + +* _show_ If true, hidden folders and files will be displayed by the +control. If false, they will not be displayed. + </ins></span></pre></div> <a id="brancheswxruby2wxwidgets_282swigclassesGenericDirCtrli"></a> <div class="modfile"><h4>Modified: branches/wxruby2/wxwidgets_282/swig/classes/GenericDirCtrl.i (949 => 950)</h4> <pre class="diff"><span> <span class="info">--- branches/wxruby2/wxwidgets_282/swig/classes/GenericDirCtrl.i        2007-04-13 19:12:30 UTC (rev 949) +++ branches/wxruby2/wxwidgets_282/swig/classes/GenericDirCtrl.i        2007-04-13 19: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><span class="cx"> %import "include/wxWindow.h" </span></span></pre></div> <a id="brancheswxruby2wxwidgets_282swigclassesincludewxGenericDirCtrlh"></a> <div class="modfile"><h4>Modified: branches/wxruby2/wxwidgets_282/swig/classes/include/wxGenericDirCtrl.h (949 => 950)</h4> <pre class="diff"><span> <span class="info">--- branches/wxruby2/wxwidgets_282/swig/classes/include/wxGenericDirCtrl.h        2007-04-13 19:12:30 UTC (rev 949) +++ branches/wxruby2/wxwidgets_282/swig/classes/include/wxGenericDirCtrl.h        2007-04-13 19:13:30 UTC (rev 950) </span><span class="lines">@@ -1,128 +1,35 @@ </span><del>-// wxGenericDirCtrl.h -// This file was automatically generated -// by extractxml.rb, part of the wxRuby project -// Do not make changes directly to this file! </del><ins>+// Copyright 2004-2007 by Kevin Smith +// released under the MIT-style wxruby2 license </ins><span class="cx"> </span><span class="cx"> #if !defined(_wxGenericDirCtrl_h_) </span><span class="cx"> #define _wxGenericDirCtrl_h_ </span><ins>+ + </ins><span class="cx"> class wxGenericDirCtrl : public wxControl </span><span class="cx"> { </span><span class="cx"> public: </span><del>-        /** -         * \brief Default constructor. -        */ - </del><span class="cx"> wxGenericDirCtrl() ; </span><del>-        /** -         * \brief Main constructor. -         * \param wxWindow* -         * \param const wxWindowID -         * \param const wxString& -         * \param const wxPoint& -         * \param const wxSize& -         * \param long -         * \param const wxString& -         * \param int -         * \param const wxString& -        */ - </del><span class="cx"> wxGenericDirCtrl(wxWindow* parent , const wxWindowID id = -1, const wxString& dir = wxDirDialogDefaultFolderStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, const wxString& filter = wxEmptyString, int defaultFilter = 0, const wxString& name = wxTreeCtrlNameStr) ; </span><del>-        /** -         * \brief Destructor. -        */ - </del><span class="cx"> virtual ~wxGenericDirCtrl() ; </span><del>-        /** -         * \brief Create function for two-step construction. See for details. -         * \param wxWindow* -         * \param const wxWindowID -         * \param const wxString& -         * \param const wxPoint& -         * \param const wxSize& -         * \param long -         * \param const wxString& -         * \param int -         * \param const wxString& -        */ - </del><span class="cx"> bool Create(wxWindow* parent , const wxWindowID id = -1, const wxString& dir = wxDirDialogDefaultFolderStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, const wxString& filter = wxEmptyString, int defaultFilter = 0, const wxString& name = wxTreeCtrlNameStr) ; </span><del>-        /** -         * \brief Initializes variables. -        */ </del><ins>+ void Init(); </ins><span class="cx"> </span><del>- void Init() ; -        /** -         * \brief Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control. -         * \param const wxString& -        */ - </del><ins>+ bool CollapsePath(const wxString& path); + void CollapseTree(); </ins><span class="cx"> bool ExpandPath(const wxString& path ) ; </span><del>-        /** -         * \brief Gets the default path. -        */ - </del><span class="cx"> wxString GetDefaultPath() const; </span><del>-        /** -         * \brief Gets the currently-selected directory or filename. -        */ - </del><span class="cx"> wxString GetPath() const; </span><del>-        /** -         * \brief Gets selected filename path only (else empty string). - -This function doesn''t count a directory as a selection. -        */ - </del><span class="cx"> wxString GetFilePath() const; </span><del>-        /** -         * \brief Returns the filter string. -        */ - </del><span class="cx"> wxString GetFilter() const; </span><del>-        /** -         * \brief Returns the current filter index (zero-based). -        */ - </del><span class="cx"> int GetFilterIndex() const; </span><del>-        /** -         * \brief Returns a pointer to the filter list control (if present). -        */ - </del><span class="cx"> wxDirFilterListCtrl* GetFilterListCtrl() const; </span><del>-        /** -         * \brief Returns the root id for the tree control. -        */ - </del><span class="cx"> wxTreeItemId GetRootId() ; </span><del>-        /** -         * \brief Returns a pointer to the tree control. -        */ - </del><span class="cx"> wxTreeCtrl* GetTreeCtrl() const; </span><del>-        /** -         * \brief Sets the default path. -         * \param const wxString& -        */ - </del><span class="cx"> void SetDefaultPath(const wxString& path ) ; </span><del>-        /** -         * \brief Sets the filter string. -         * \param const wxString& -        */ - </del><span class="cx"> void SetFilter(const wxString& filter ) ; </span><del>-        /** -         * \brief Sets the current filter index (zero-based). -         * \param int -        */ - </del><span class="cx"> void SetFilterIndex(int n ) ; </span><del>-        /** -         * \brief Sets the current path. -         * \param const wxString& -        */ - </del><span class="cx"> void SetPath(const wxString& path ) ; </span><ins>+ void ShowHidden(bool show); </ins><span class="cx"> }; </span><span class="cx"> </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
Reasonably Related Threads
- [926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
- [977] branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add missing DoPrepareDC method, remove comment cruft
- [949] branches/wxruby2/wxwidgets_282: Changes in Gauge API 2.6->2.8, remove comment cruft in header
- [954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
- [883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8