nobody at rubyforge.org
2007-Apr-13 19:18 UTC
[Wxruby-development] [958] branches/wxruby2/wxwidgets_282: Additions to UpdateUIEvent API 2.6->2.8
<!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>[958] branches/wxruby2/wxwidgets_282: Additions to UpdateUIEvent
API 2.6->2.8</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>958</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-13 15:18:41 -0400 (Fri, 13 Apr
2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>Additions to UpdateUIEvent API 2.6->2.8</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#brancheswxruby2wxwidgets_282doctextileupdateuieventtxtl">branches/wxruby2/wxwidgets_282/doc/textile/updateuievent.txtl</a></li>
<li><a
href="#brancheswxruby2wxwidgets_282swigclassesincludewxUpdateUIEventh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxUpdateUIEvent.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a
id="brancheswxruby2wxwidgets_282doctextileupdateuieventtxtl"></a>
<div class="modfile"><h4>Modified:
branches/wxruby2/wxwidgets_282/doc/textile/updateuievent.txtl (957 =>
958)</h4>
<pre class="diff"><span>
<span class="info">---
branches/wxruby2/wxwidgets_282/doc/textile/updateuievent.txtl        2007-04-13
19:18:18 UTC (rev 957)
+++
branches/wxruby2/wxwidgets_282/doc/textile/updateuievent.txtl        2007-04-13
19:18:41 UTC (rev 958)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> h2. Remarks
</span><span class="cx">
</span><span class="cx"> Without update UI events, an
application has to work hard to check/uncheck, enable/disable,
</span><del>-and set the text for elements such as menu items and
toolbar buttons.
</del><ins>+show/hide, and set the text for elements such as menu
items and toolbar buttons.
</ins><span class="cx"> The code for doing this has to be
mixed up with the code that is invoked when
</span><span class="cx"> an action is invoked for a menu
item or button.
</span><span class="cx">
</span><span class="lines">@@ -79,10 +79,13 @@
</span><span class="cx"> *
"UpdateUIEvent#can_update":#UpdateUIEvent_canupdate
</span><span class="cx"> *
"UpdateUIEvent#check":#UpdateUIEvent_check
</span><span class="cx"> *
"UpdateUIEvent#enable":#UpdateUIEvent_enable
</span><ins>+* "UpdateUIEvent#show":#UpdateUIEvent_show
</ins><span class="cx"> *
"UpdateUIEvent#get_checked":#UpdateUIEvent_getchecked
</span><span class="cx"> *
"UpdateUIEvent#get_enabled":#UpdateUIEvent_getenabled
</span><ins>+*
"UpdateUIEvent#get_shown":#UpdateUIEvent_getshown
</ins><span class="cx"> *
"UpdateUIEvent#get_set_checked":#UpdateUIEvent_getsetchecked
</span><span class="cx"> *
"UpdateUIEvent#get_set_enabled":#UpdateUIEvent_getsetenabled
</span><ins>+*
"UpdateUIEvent#get_set_shown":#UpdateUIEvent_getsetshown
</ins><span class="cx"> *
"UpdateUIEvent#get_set_text":#UpdateUIEvent_getsettext
</span><span class="cx"> *
"UpdateUIEvent#get_text":#UpdateUIEvent_gettext
</span><span class="cx"> *
"UpdateUIEvent#get_mode":#UpdateUIEvent_getmode
</span><span class="lines">@@ -136,6 +139,12 @@
</span><span class="cx">
</span><span class="cx"> Enable or disable the UI element.
</span><span class="cx">
</span><ins>+h3(#UpdateUIEvent_show). UpdateUIEvent#show
+
+ *show*(%(arg-type)Boolean% show)
+
+Show or hide the UI element.
+
</ins><span class="cx"> h3(#UpdateUIEvent_getchecked).
UpdateUIEvent#get_checked
</span><span class="cx">
</span><span class="cx"> Boolean *get_checked*()
</span><span class="lines">@@ -148,6 +157,12 @@
</span><span class="cx">
</span><span class="cx"> Returns true if the UI element
should be enabled.
</span><span class="cx">
</span><ins>+h3(#UpdateUIEvent_getshown). UpdateUIEvent#get_shown
+
+ Boolean *get_shown*()
+
+Returns true if the UI element should be shown.
+
</ins><span class="cx"> h3(#UpdateUIEvent_getsetchecked).
UpdateUIEvent#get_set_checked
</span><span class="cx">
</span><span class="cx"> Boolean *get_set_checked*()
</span><span class="lines">@@ -160,6 +175,12 @@
</span><span class="cx">
</span><span class="cx"> Returns true if the application
has called
"UpdateUIEvent#enable":updateuievent.html#UpdateUIEvent_enable. For
Widgets internal use only.
</span><span class="cx">
</span><ins>+h3(#UpdateUIEvent_getsetshown).
UpdateUIEvent#get_set_shown
+
+ Boolean *get_set_shown*()
+
+Returns true if the application has called
"UpdateUIEvent#show":updateuievent.html#UpdateUIEvent_show. For
Widgets internal use only.
+
</ins><span class="cx"> h3(#UpdateUIEvent_getsettext).
UpdateUIEvent#get_set_text
</span><span class="cx">
</span><span class="cx"> Boolean *get_set_text*()
</span></span></pre></div>
<a
id="brancheswxruby2wxwidgets_282swigclassesincludewxUpdateUIEventh"></a>
<div class="modfile"><h4>Modified:
branches/wxruby2/wxwidgets_282/swig/classes/include/wxUpdateUIEvent.h (957 =>
958)</h4>
<pre class="diff"><span>
<span class="info">---
branches/wxruby2/wxwidgets_282/swig/classes/include/wxUpdateUIEvent.h        2007-04-13
19:18:18 UTC (rev 957)
+++
branches/wxruby2/wxwidgets_282/swig/classes/include/wxUpdateUIEvent.h        2007-04-13
19:18:41 UTC (rev 958)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-// Copyright 2004-2005 by Kevin Smith
</del><ins>+// Copyright 2004-2007 by Kevin Smith
</ins><span class="cx"> // released under the MIT-style
wxruby2 license
</span><span class="cx">
</span><span class="cx"> #if !defined(_wxUpdateUIEvent_h_)
</span><span class="lines">@@ -15,8 +15,15 @@
</span><span class="cx"> bool GetSetChecked() const;
</span><span class="cx"> bool GetSetEnabled() const;
</span><span class="cx"> bool GetSetText() const;
</span><ins>+ bool GetSetShown() const;
+ bool GetShown() const;
+ static long GetUpdateInterval();
</ins><span class="cx"> wxString GetText() const;
</span><del>- void SetText(const wxString& text ) ;
</del><ins>+ static void ResetUpdateTime();
+ static void SetMode(wxUpdateUIMode mode);
+ void SetText(const wxString& text );
+ static void SetUpdateInterval(long updateInterval);
+ void Show(bool show);
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
Possibly Parallel Threads
- [1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
- [969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
- [971] branches/wxruby2/wxwidgets_282/swig/classes: Added method to turn off ''Check Spelling as You Type'' on OS X 10.4.x and above.
- [ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error
- [1054] trunk/wxruby2: Add missing EraseEvent and mapping for EVT_ERASE_BACKGROUND, fix unknown
