nobody at rubyforge.org
2006-Oct-17 17:15 UTC
[Wxruby-development] [679] trunk/wxruby2/doc/textile/previewframe.txtl: Changed the initialize() method to init() so it matches the API also added a remark alerting the user to this.
<!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>[679] trunk/wxruby2/doc/textile/previewframe.txtl: Changed the
initialize() method to init() so it matches the API also added a remark alerting
the user to this.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>679</dd>
<dt>Author</dt> <dd>seanlong</dd>
<dt>Date</dt> <dd>2006-10-17 13:15:41 -0400 (Tue, 17 Oct
2006)</dd>
</dl>
<h3>Log Message</h3>
<pre>Changed the initialize() method to init() so it matches the API also
added a remark alerting the user to this.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#trunkwxruby2doctextilepreviewframetxtl">trunk/wxruby2/doc/textile/previewframe.txtl</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2doctextilepreviewframetxtl"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/doc/textile/previewframe.txtl (678 => 679)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/doc/textile/previewframe.txtl        2006-10-17
16:59:59 UTC (rev 678)
+++
trunk/wxruby2/doc/textile/previewframe.txtl        2006-10-17
17:15:41 UTC (rev 679)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> *
"PreviewFrame.new":#PreviewFrame_new
</span><span class="cx"> *
"PreviewFrame#create_control_bar":#PreviewFrame_createcontrolbar
</span><span class="cx"> *
"PreviewFrame#create_canvas":#PreviewFrame_createcanvas
</span><del>-*
"PreviewFrame#initialize":#PreviewFrame_initialize
</del><ins>+* "PreviewFrame#init":#PreviewFrame_init
</ins><span class="cx"> *
"PreviewFrame#on_close_window":#PreviewFrame_onclosewindow
</span><span class="cx">
</span><span class="cx"> </div>
</span><span class="lines">@@ -61,17 +61,22 @@
</span><span class="cx"> Creates a PreviewCanvas. Override
this function to allow
</span><span class="cx"> a user-defined preview canvas
object to be created.
</span><span class="cx">
</span><del>-h3(#PreviewFrame_initialize). PreviewFrame#initialize
</del><ins>+h3(#PreviewFrame_init). PreviewFrame#init
</ins><span class="cx">
</span><del>- *initialize*()
</del><ins>+ *init*()
</ins><span class="cx">
</span><span class="cx"> Creates the preview canvas and
control bar, and calls
</span><del>-Window::MakeModal(true) to disable other top-level
windows
</del><ins>+Window::make_modal(true) to disable other top-level
windows
</ins><span class="cx"> in the application.
</span><span class="cx">
</span><span class="cx"> This function should be called by
the application prior to
</span><span class="cx"> showing the frame.
</span><span class="cx">
</span><ins>+h4. Remarks
+
+This method is called *initialize*() in the C++ implementation of wxWidgets in
wxRuby
+this had to be changed to *init*() because of the conflict with Ruby''s
built in *initialize*().
+
</ins><span class="cx"> h3(#PreviewFrame_onclosewindow).
PreviewFrame#on_close_window
</span><span class="cx">
</span><span class="cx">
*on_close_window*(%(arg-type)CloseEvent% event)
</span></span></pre>
</div>
</div>
</body>
</html>
Apparently Analagous Threads
- [859] trunk/wxruby2/doc/textile/docchildframe.txtl: Added ''methods'' section; removed C++ members
- [858] trunk/wxruby2/doc/textile/docmdichildframe.txtl: Added ''methods'' section; removed C++ members
- [677] trunk/wxruby2/doc/textile/index.txtl: Removed line from printing framework section stating that printing is not in wxRuby.
- [1120] trunk/wxruby2/lib/wx/classes/previewframe.rb: GC protection for Preview associated with PreviewFrame, fixing crashes
- [1121] trunk/wxruby2/swig/classes/PreviewFrame.i: Avoid double-free error on PrintPreview once attached to a PreviewFrame
