nobody at rubyforge.org
2006-Dec-03 12:06 UTC
[Wxruby-development] [773] trunk/wxsugar/lib/wx_sugar/all.rb: Updated overview, deprecated itemdata
<!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>[773] trunk/wxsugar/lib/wx_sugar/all.rb: Updated overview, deprecated itemdata</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>773</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-03 07:06:02 -0500 (Sun, 03 Dec 2006)</dd> </dl> <h3>Log Message</h3> <pre>Updated overview, deprecated itemdata</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxsugarlibwx_sugarallrb">trunk/wxsugar/lib/wx_sugar/all.rb</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxsugarlibwx_sugarallrb"></a> <div class="modfile"><h4>Modified: trunk/wxsugar/lib/wx_sugar/all.rb (772 => 773)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxsugar/lib/wx_sugar/all.rb        2006-12-03 12:05:20 UTC (rev 772) +++ trunk/wxsugar/lib/wx_sugar/all.rb        2006-12-03 12:06:02 UTC (rev 773) </span><span class="lines">@@ -16,10 +16,13 @@ </span><span class="cx"> # </span><span class="cx"> # == Using WxSugar </span><span class="cx"> # </span><del>-# The extensions can currently be used with either WxRuby (0.6.0) or -# WxRuby2 (the SWIG version). To use all of the extensions, simple write </del><ins>+# The extensions can currently be used with WxRuby2 or the old WxRuby +# (0.6.0). WxRuby2 is strongly recommended, and support for the old +# series may be dropped in the future. +# +# The simplest way to use WxSugar is to load all the behaviours. You +# should load the wx library first: </ins><span class="cx"> # </span><del>-# # EITHER ... New development </del><span class="cx"> # require ''wx'' </span><span class="cx"> # # OR ... old non-SWIG beta veresion </span><span class="cx"> # require ''wxruby'' </span><span class="lines">@@ -27,31 +30,43 @@ </span><span class="cx"> # require ''wx_sugar/all'' </span><span class="cx"> # ... </span><span class="cx"> # </span><del>-# If you only want to load specific behaviours, just +require+ the -# desired extensions only </del><ins>+# If you only want to load specific WxSugar behaviours, just +require+ +# the desired extensions only </ins><span class="cx"> # </span><span class="cx"> # require ''wx_sugar/keyword_constructors'' </span><span class="cx"> # require ''wx_sugar/acccessors'' </span><span class="cx"> # </span><span class="cx"> # == Overview of extensions </span><ins>+# +# The following are the WxSugar behaviours that are available. In +# general you require one of these extensions, it modifies the behaviour +# of all relevant Wx classes, and affects all new instances. </ins><span class="cx"> # </span><del>-# [accessors.rb] </del><ins>+# [accessors] </ins><span class="cx"> # Provide ruby-style getters, setters and question-mark methods </span><del>-# [delayed_constructors.rb] -# For use with +layout+, limited independent interest -# [event_connector.rb] </del><ins>+# [delayed_constructors] +# Required by +layout+, of limited independent interest +# [event_connector] </ins><span class="cx"> # Neater syntax for connecting event listeners </span><del>-# [itemdata.rb] -# Associate ruby objects with items in controls *NEEDS UPDATE* -# [keyword_constructors.rb] </del><ins>+# [keyword_constructors] </ins><span class="cx"> # Use keyword-style hash arguments to construct widgets </span><del>-# [layout.rb] -# Easy interface to using WxWidgets Sizers -# [menu.rb] </del><ins>+# [layout] +# Easy interface to using WxWidgets Sizers to arrange controls +# [menu] </ins><span class="cx"> # Create and update menus without a mess of system ids </span><ins>+# [wx_classes] +# Useful ruby methods added to individual Wx classes. +# +# === Deprecated extensions +# +# This module is deprecated and will soon be removed. +# +# [itemdata.rb] +# Linking ruby objects with wx controls; use the +# get/set_item_data methods in core wxruby2 instead. </ins><span class="cx"> </span><span class="cx"> </span><del>-%w[ accessors delayed_constructors event_connector itemdata </del><ins>+%w[ accessors delayed_constructors event_connector </ins><span class="cx"> keyword_constructors layout menu wx_classes ].each do | ext_feature | </span><span class="cx"> require ''wx_sugar/'' + ext_feature </span><span class="cx"> end </span></span></pre> </div> </div> </body> </html>
Seemingly Similar Threads
- [912] trunk/wxsugar/lib: Overview documentation moved to lib/wx_sugar.rb
- [945] trunk/wxsugar/lib/wx_sugar.rb: Add note about enumerable_controls, reorder list of extensions
- [771] trunk/wxsugar/lib/wx_sugar/keyword_constructors.rb: Fix typo in error message
- [836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
- A little bit of sugar