自己会用到的Wt 从2.99.1到3.0.0的新变化

来源:互联网 发布:sql模块跟踪 编辑:程序博客网 时间:2024/05/16 04:54


Release 3.0.0 (November 3, 2009)

 

Most build improvements are related to finding the boostlibraries. Previously, Wt used a custom script, since CMake versions <2.6 did not provide a good enough script for finding boost. Startingwith this release, when using CMake 2.6 or later, Wt will use thescript that comes with CMake. You can still fall back to the scriptthat comes with Wt, which is still used for older versions of CMake,by defining one of the BOOST_COMPILER or BOOST_VERSION variables.

 

此版本在安装时寻找 boost 库上有所改进,可以直接将 wt-3.0.0/build/CMakeCache.txt 中 WT_BOOST_DISCOVERY=FALSE,采用cmake2.6+ 寻找方式,方便!

 

 


Release 2.99.5 (September 1, 2009)

This release contains mostly bug fixes. The previous release (2.99.4)contains some critical bugs that cause mayhem on IE, and a regressionwith server push.


Release 2.99.4 (August 27, 2009)

!! This release contains bugs that render it unusable on IE !!

This release contains mostly bug fixes and back-end improvements. Themost exciting new feature is the addition of a new bootstrap method,which implements progressive enhancements (starting with a plain HTMLpage, and then upgrading it to an AJAX page if the browser hassupport), seealso thedocumentation.

 

B) Main new features in existing classes:

Ext::ToolBar
Added insert() methods.
可以根据需要插入某个Widget,即有利于构建一个父ToolBar,根据需要定义子ToolBar

 


Release 2.99.3 (July 24, 2009)

This release contains mostly bug fixes and small featureimprovements. The most notable change that might affect existingapplications is a simplified internal path API behavior.

 

C) API Changes:

change of WApplication::internalPathChanged() semantics.
The old behavior was that a single internal path change caused by the user (e.g. by moving forward/backword through his browser history) would cause repetitive invocations of internalPathChanged() with different arguments. The underlying idea was that this would make it easier to have the handling of internal path changes distributed over different objects. It caused however more problems than it solved. The new behavior is now that it is invoked exactly one time, and the argument is simply the new internal path.

internalPathChanged() 语法变化      
旧版行为如是:用户对内部路径的改变(如浏览器向前、向后)将引起不停地对internalPathChanged()的调用,因为每次参数都不同。这个方法虽然易于处理路径变化,但却带来不少问题。现在新的行为方式是该方法只被调用一次,释放出的参数是最终新的内部路径。

即,可以直接采用返回参数作为最终目标路径判断。。。方便!


Release 2.99.2 (May 29, 2009)

This release contains mostly build improvements, bug fixes, and API cleanups.

A) New classes:

Http/Client
Client is a utility class to bootstrap a new Wt application.

B) Main new features in existing classes:

Ext::ToolBar
Added an addStretch() method (contributed by David Galicia).
可以让工具条的内容自动扩展到(或许是根据长度平均分布)
WDialog
Support for non-modal dialogs and interactive moving.
好特性,会用到,如聊天框、用户信息框;可创建一个用户信息框,鼠标停留在用户名或用户id上可显示,并根据权限显示不同内容;
WFormWidget
New methods setReadOnly() and isReadOnly().
好特性,会用到;

C) API Changes:

WFileUpload::isUploaded() was deprecated
The name was not covering its actual behavior: instead of checking whether a file has been uploaded, it returns whether true when a call to upload() is not needed. You should replace any call to isUploaded() with the new method !canUpload() (note the inversion!.

WFileUpload::isUploaded()该方法仍保留,但不再推荐使用;
在 wt-2.99.1 中为:
                                         bool isUploaded() const { return fileUploadTarget_ != 0; }
在 wt-3.0.0 中变为两个:
                                         bool canUpload() const { return fileUploadTarget_ != 0; }
                                         bool isUploaded() const { return !canUpload(); }

可见,具体上,应该在使用 isUploaded() 的地方全部替换为 canUpload();当然,如果你在程序中真被这个错误命名误导了(实际中应该不会发生,因为这是个错误的行为),你可以用 !canUpload() 来替换 isUploaded()。

原创粉丝点击