nobody at rubyforge.org
2007-Apr-13 19:47 UTC
[Wxruby-development] [962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog, Panel, Frame].
<!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>[962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog,Panel,Frame].</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>962</dd> <dt>Author</dt> <dd>seanlong</dd> <dt>Date</dt> <dd>2007-04-13 15:47:28 -0400 (Fri, 13 Apr 2007)</dd> </dl> <h3>Log Message</h3> <pre>Fixed the documentation for load_*_subclass, where * is [Dialog,Panel,Frame]. Also changed the load_dialog_subclass example to Ruby.</pre> <h3>Modified Paths</h3> <ul> <li><a href="#brancheswxruby2wxwidgets_282doctextilexmlresourcetxtl">branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="brancheswxruby2wxwidgets_282doctextilexmlresourcetxtl"></a> <div class="modfile"><h4>Modified: branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl (961 => 962)</h4> <pre class="diff"><span> <span class="info">--- branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl        2007-04-13 19:21:31 UTC (rev 961) +++ branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl        2007-04-13 19:47:28 UTC (rev 962) </span><span class="lines">@@ -38,11 +38,14 @@ </span><span class="cx"> * "XmlResource#load":#XmlResource_load </span><span class="cx"> * "XmlResource#load_bitmap":#XmlResource_loadbitmap </span><span class="cx"> * "XmlResource#load_dialog":#XmlResource_loaddialog </span><ins>+* "XmlResource#load_dialog_subclass":#XmlResource_loaddialogsubclass </ins><span class="cx"> * "XmlResource#load_frame":#XmlResource_loadframe </span><ins>+* "XmlResource#load_frame_subclass":#XmlResource_loadframesubclass </ins><span class="cx"> * "XmlResource#load_icon":#XmlResource_loadicon </span><span class="cx"> * "XmlResource#load_menu":#XmlResource_loadmenu </span><span class="cx"> * "XmlResource#load_menu_bar":#XmlResource_loadmenubar </span><span class="cx"> * "XmlResource#load_panel":#XmlResource_loadpanel </span><ins>+* "XmlResource#load_panel_subclass":#XmlResource_loadpanelsubclass </ins><span class="cx"> * "XmlResource#load_tool_bar":#XmlResource_loadtoolbar </span><span class="cx"> * "XmlResource#set":#XmlResource_set </span><span class="cx"> * "XmlResource#set_flags":#XmlResource_setflags </span><span class="lines">@@ -177,8 +180,10 @@ </span><span class="cx"> </span><span class="cx"> Loads a dialog. _dlg_ points to a parent window (if any). </span><span class="cx"> </span><del>- Boolean *load_dialog*(%(arg-type)Dialog% dlg, %(arg-type)Window% parent, %(arg-type)String% name) </del><ins>+h3(#XmlResource_loaddialogsubclass). XmlResource#load_dialog_subclass </ins><span class="cx"> </span><ins>+ Boolean *load_dialog_subclass*(%(arg-type)Dialog% dlg, %(arg-type)Window% parent, %(arg-type)String% name) + </ins><span class="cx"> Loads a dialog. _dlg_ points to parent window (if any). </span><span class="cx"> </span><span class="cx"> This form is used to finish creation of an already existing instance (the main reason </span><span class="lines">@@ -187,19 +192,25 @@ </span><span class="cx"> Example: </span><span class="cx"> </span><span class="cx"> </span><del>- MyDialog dlg; - TheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog"); - dlg->ShowModal(); </del><ins>+ dlg = MyDialog.new + the_xml_resource.load_dialog_subclass(dlg, main_frame, "my_dialog") + dlg.show_modal </ins><span class="cx"> </span><span class="cx"> </span><span class="cx"> </span><span class="cx"> h3(#XmlResource_loadframe). XmlResource#load_frame </span><span class="cx"> </span><del>- Boolean *load_frame*(%(arg-type)Frame% frame, %(arg-type)Window% parent, %(arg-type)String% name) </del><ins>+ "Frame":frame.html *load_frame*(%(arg-type)Window% parent, %(arg-type)String% name) </ins><span class="cx"> </span><span class="cx"> Loads a frame. </span><span class="cx"> </span><ins>+h3(#XmlResource_loadframesubclass). XmlResource#load_frame_subclass </ins><span class="cx"> </span><ins>+ Boolean *load_frame_subclass*(%(arg-type)Frame% frame, %(arg-type)Window% parent, %(arg-type)String% name) + +Loads a frame. This form is used to finish creation of an already existing instance. + + </ins><span class="cx"> h3(#XmlResource_loadicon). XmlResource#load_icon </span><span class="cx"> </span><span class="cx"> "Icon":icon.html *load_icon*(%(arg-type)String% name) </span><span class="lines">@@ -231,8 +242,10 @@ </span><span class="cx"> </span><span class="cx"> Loads a panel. _panel_ points to parent window (if any). </span><span class="cx"> </span><del>- Boolean *load_panel*(%(arg-type)Panel% panel, %(arg-type)Window% parent, %(arg-type)String% name) </del><ins>+h3(#XmlResource_loadpanelsubclass). XmlResource#load_panel_subclass </ins><span class="cx"> </span><ins>+ Boolean *load_panel_subclass*(%(arg-type)Panel% panel, %(arg-type)Window% parent, %(arg-type)String% name) + </ins><span class="cx"> Loads a panel. _panel_ points to parent window (if any). This form </span><span class="cx"> is used to finish creation of an already existing instance. </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
Apparently Analagous Threads
- [965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
- [ wxruby-Bugs-16279 ] undefined methods ''load_panel_subclass'' for Wx::XmlResource
- 'Are you sure?' custom dialog not exiting cleanly
- [1099] trunk/wxruby2/swig/classes/XmlResource.i: Permit Dialogs and Frames with no parents to be created via XRC; add comments
- loading menu using XmlResource