ReleaseNotes.html 158 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296
  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  6. <style type="text/css">
  7. dt { font-weight: bold; }
  8. h3 { text-decoration: underline; }
  9. dd { margin-top: 10px; margin-bottom: 10px; }
  10. dd p { margin-top: 0px; }
  11. dd div { margin: 10px 0px; }
  12. </style>
  13. <title>Wt Release notes</title>
  14. </head>
  15. <body>
  16. <h1>Wt Release notes</h1>
  17. This file lists important notes on migrating existing applications to
  18. newer version of Wt. It lists changes in the library that may break
  19. the way you build Wt, the way you configure Wt or the Wt API and
  20. behaviour.
  21. <h2>Release 3.3.7 (February ?, 2017)</h2>
  22. <p>
  23. This release fixes many bugs, but also introduces some new features:
  24. </p>
  25. <dl>
  26. <dt>
  27. <a href="classWt_1_1WFileDropWidget.html">WFileDropWidget</a>
  28. </dt>
  29. <dd>
  30. The WFileDropWidget is a new widget that allows you to upload a file or multiple files by dragging them onto an area.
  31. </dd>
  32. <dt>
  33. Scroll visibility
  34. </dt>
  35. <dd>
  36. Some applications require you to know whether a widget is currently visible within the viewport, or whether it is
  37. scrolled out of view, e.g. to load more content as you scroll down the page. You can now enable scroll visibility
  38. detection with
  39. <a href="classWt_1_1WWidget.html#a5d403e0390841df77a23445b28044d5d">WWidget::setScrollVisibilityEnabled(bool)</a>,
  40. and react to changes in visibility with
  41. <a href="classWt_1_1WWidget.html#aa5ce605dd465e06f3e3c2dbce2a4098e">WWidget::scrollVisibilityChanged()</a>.
  42. A new scrollvisibility feature example has been added to demonstrate this infinite scrolling application.
  43. </dd>
  44. <dt>
  45. Touch events
  46. </dt>
  47. <dd>
  48. Although Wt already supported touch interactions in the charting library, touch events were previously
  49. not exposed by Wt. Now,
  50. we've added <a href="classWt_1_1WTouchEvent.html">WTouchEvent</a>, and the touchStarted, touchEnded, and touchMoved
  51. events have been added to
  52. <a href="classWt_1_1WInteractWidget.html">WInteractWidget</a>.
  53. Also, <a href="classWt_1_1WInteractWidget.html#a556c14d02388720b1d95b2149be2e867">draggable widgets</a> can now also
  54. be dragged after a long press, and you can select a range using a double touch in
  55. <a href="classWt_1_1WTableView.html">WTableView</a> and <a href="classWt_1_1WTreeView.html">WTreeView</a>.
  56. </dd>
  57. <dt>
  58. Combined session tracking mode
  59. </dt>
  60. <dd>
  61. <p>
  62. The default session tracking method for Wt is URL rewriting, using JavaScript to hide the session id from
  63. the address bar. Alternatively, cookies can be used with the Auto option, falling back to URL rewriting when
  64. cookies are not available. However, the cookie-based method did not allow for multiple sessions within the
  65. same browser.
  66. </p>
  67. <p>
  68. In order to make the URL rewriting method with requirement 6.5.10 of the PCI Data Security Standard, while not
  69. sacrificing the ability to have multiple sessions, a new Combined session tracking strategy has been added.
  70. Wt already makes it difficult to steal a session when the session id is discovered, but resources are not as
  71. protected. The Combined session tracking strategy uses URL rewriting in combination with a cookie that is shared
  72. between sessions as an extra measure against session hijacking. This is the most secure strategy, but it will
  73. deny access if cookie support is not available.
  74. </p>
  75. </dd>
  76. <dt>
  77. Wraparound for <a href="classWt_1_1WSpinBox.html">WSpinBox</a> and <a href="classWt_1_1WTimeEdit.html">WTimeEdit</a>
  78. </dt>
  79. <dd>
  80. WSpinBox will now wrap around from its maximum to its minimum if you <a href="classWt_1_1WSpinBox.html#a08413e777fefab00e36dc8d6c492bda5">enable wraparound</a>. WTimeEdit will take advantage of this feature by default.
  81. </dd>
  82. <dt>
  83. Some minor extra features:
  84. </dt>
  85. <dd>
  86. <ul>
  87. <li>
  88. It's now possible to retrieve a vector of all request headers with <a href="classWt_1_1Http_1_1Request.html#a0afe45bf93bb77270a85c75ca67cd521">Wt::Http::Request::headers()</a> in <a href="classWt_1_1WResource.html#a3a740f8cc29e2e6e4e58defc9c88b8b6">handleRequest</a> when implementing a WResource. It is still recommended, and more efficient, to use <a href="classWt_1_1Http_1_1Request.html#ade2596aa6802a63e21460094ea30a4d9">headerValue</a>, but retrieving a vector of all headers could be useful for debugging purposes.
  89. </li>
  90. <li>
  91. In an effort to reduce the amount of JavaScript generated by the charting API, the
  92. <a href="classWt_1_1WPainter.html#abccad19493d7461ca08c9e50ad7326f1">WPainter::drawStencilAlongPath()</a>
  93. method was added to WPainter.
  94. </li>
  95. <li>
  96. Previously, WDialogs were movable by default. It's now possible to disable this with
  97. <a href="classWt_1_1WDialog.html#afbccf557a0343591f3087c9a0a9b7051">WDialog::setMovable()</a>.
  98. </li>
  99. </ul>
  100. </dd>
  101. </dl>
  102. <h2>Release 3.3.6 (July 13, 2016)</h2>
  103. <p>
  104. This release has a focus on bug fixes and some new features:
  105. </p>
  106. <dl>
  107. <dt>
  108. Support for WebSocket compression in wthttp
  109. </dt>
  110. <dd>
  111. WebSocket traffic is now compressed, if possible.
  112. </dd>
  113. <dt>
  114. Time entry improvements
  115. </dt>
  116. <dd>
  117. <a href="classWt_1_1WTimeEdit.html">WTimeEdit</a> now supports AM/PM in its format,
  118. <a href="classWt_1_1WTimeValidator.html">WTimeValidator</a> now allows to select a minimum
  119. and maximum time and supports multiple formats,
  120. <a href="classWt_1_1WTimePicker.html">WTimePicker</a> can now work up to
  121. millisecond precision, and is now rendered with spinboxes.
  122. </dd>
  123. <dt>
  124. Skia version updated
  125. </dt>
  126. <dd>
  127. The Skia backend for <a href="classWt_1_1WRasterImage.html">WRasterImage</a> is now compatible with more recent versions of Skia. If you need
  128. to support an older version of Skia, use <tt>-DWT_SKIA_OLD=ON</tt>. The Skia version of the Windows builds
  129. has been updated from 394c7bb to 834d9e1.
  130. </dd>
  131. <dt>
  132. Wt::Dbo
  133. </dt>
  134. <dd>
  135. <ul>
  136. <li>
  137. It's now possible to mark foreign keys as literal with a &ldquo;&gt;&rdquo; prefix, so Wt::Dbo can better map to
  138. an existing schema. Note that for consistency, this also means that the schema generated for ManyToMany relationships
  139. has been changed to include the id column names if a joinId has been specified. If you specify a joinId for ManyToMany
  140. relationships, you'll have to change it to include a &ldquo;&gt;&rdquo; before it in order to keep the same database schema.
  141. </li>
  142. <li>
  143. The <tt>size</tt> argument of <a href="group__dbo.html#gac089020eff000d9e2c4ef72cf715bd21">belongsTo()</a> has been
  144. removed, since it served no actual purpose.
  145. </li>
  146. </li>
  147. </dd>
  148. <dt>
  149. Scroll position
  150. </dt>
  151. <dd>
  152. It's now possible to retrieve the scroll position of a
  153. <a href="classWt_1_1WContainerWidget.html">WContainerWidget</a>
  154. with
  155. <a href="classWt_1_1WContainerWidget.html#a0a7ce553b2b5107412a3bed8700355cb">scrollTop()</a>
  156. and
  157. <a href="classWt_1_1WContainerWidget.html#a9a60d382fcd1490081087ce4f3649864">scrollLeft()</a>.
  158. </dd>
  159. <dt>
  160. Invalidation of stateless slots
  161. </dt>
  162. <dd>
  163. <a href="classWt_1_1WObject.html#a6dde4ce1e833a9966709daf3c0dedc9f">WObject::isNotStateless()</a>
  164. has been added, so functions called from functions that are marked as stateless can unmark
  165. it as stateless, reverting to plain server-side dynamic UI updates.
  166. </dd>
  167. <dt>
  168. <a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">Auth::Dbo::UserDatabase</a>
  169. </dt>
  170. <dd>
  171. The <a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">Dbo UserDatabase</a> implementation now
  172. compares e-mail addresses case insensitively. The <a href="classWt_1_1Auth_1_1AuthService.html">AuthService</a>
  173. can be passed in the constructor, so the <a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">UserDatabase</a>
  174. knows whether the IdentityPolicy is EmailAddressIdentity.
  175. </dd>
  176. <dt>
  177. Charting library
  178. </dt>
  179. <dd>
  180. There have been many bug fixes and improvements to the charting library and the interactive features
  181. introduced in Wt 3.3.5:
  182. <ul>
  183. <li>Series <a href="classWt_1_1Chart_1_1WCartesianChart.html#ad05997dbc2d59862e38272985abda9a9">can be selected</a>
  184. on a <a href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a>.
  185. LineSeries <a href="classWt_1_1Chart_1_1WCartesianChart.html#a6078b67f146e686bd482d846dfe463cb">can be manipulated</a>.</li>
  186. <li><a href="classWt_1_1Chart_1_1WAxis.html#a16d188d56c2b62b7b3f2ddb6fa96d7cc">WAxis::setZoom()</a> and
  187. <a href="classWt_1_1Chart_1_1WAxis.html#a2f6a11d9d47036f8806c5a8412dfd24c">WAxis::setPan()</a>
  188. have been deprecated in favor of the easier to use
  189. <a href="classWt_1_1Chart_1_1WAxis.html#a0be187399e7cb4877f2c5e3837eba6ea">WAxis::setZoomRange()</a>.
  190. You can listen to changes in zoom range with the
  191. <a href="classWt_1_1Chart_1_1WAxis.html#a7e432917f0f23f18db3a043397a81904">WAxis::zoomRangeChanged()</a> signal.</li>
  192. <li>Series set as hidden will still be shown on a <a href="classWt_1_1Chart_1_1WAxisSliderWidget.html">WAxisSliderWidget</a>.
  193. The typical application for this is to show a coarse model on the slider widget, and a more detailed one on the chart.</li>
  194. <li>
  195. In order to provide better performance for charts containing a lot of data, the charting library has been
  196. overhauled to use <a href="classWt_1_1Chart_1_1WAbstractChartModel.html">WAbstractChartModel</a>s,
  197. instead of <a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>s, avoiding the use of
  198. boost::any. The <a href="classWt_1_1Chart_1_1WStandardChartProxyModel.html">WStandardChartProxyModel</a>
  199. wraps a <a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> so that those can still be used with charts.
  200. Note that this changes the return type of the
  201. <a href="classWt_1_1Chart_1_1WAbstractChart.html#a477522bb1720fb20006c81be455b3366">WAbstractChart::model()</a> method.
  202. </li>
  203. <li>A chart's axes can now be <a href="classWt_1_1Chart_1_1WAxis.html#a2bb7c8ec67ed2ff0b57953ea40cd87ef">inverted</a>.
  204. <li>Stacked series: negative values are now stacked separately from positive values.</li>
  205. <li><a href="classWt_1_1Chart_1_1CurveLabel.html">Curve labels</a> can now be drawn on charts, so that curves,
  206. or certain points on curves, can be labeled.</li>
  207. <li><a href="classWt_1_1Chart_1_1WAxis.html#afca24479982f10759be69703de5f4cd4">WAxis::getLabelTicks()</a>
  208. has been modified with an argument
  209. <a href="structWt_1_1Chart_1_1AxisConfig.html">AxisConfig</a>, so that different axis ticks can be drawn depending
  210. on the side that the axis is dawn on, or the zoom level it is drawn at. This is a breaking change if you override getLabelTicks.
  211. <a href="classWt_1_1Chart_1_1WAxis.html#a71928aabf753854274d753e266aabfc2">WAxis::setLabelTransform()</a>
  212. as a simpler method to change the tick
  213. labels depending on the side the axis is drawn on.</li>
  214. <li><a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> is no longer a simple value class. The interface of
  215. <a href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a> has been modified to reflect that: the old
  216. interface that copies WDataSeries over has been deprecated in favor of an interface that takes pointers to
  217. <a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a>.</li>
  218. <li>It's now possible to <a href="classWt_1_1Chart_1_1WDataSeries.html#ae668a1a90ccf668e426fc2d9e370bf2c">specify a different model</a>
  219. for each <a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a>.</li>
  220. <li><a href="classWt_1_1Chart_1_1WPieChart.html#a0ff69f626136fa56e7de27f6a10d770d">Chart::WPieChart::createLabelWidget()</a>
  221. has been added, making it possible to replace the labels of a
  222. <a href="classWt_1_1Chart_1_1WPieChart.html">WPieChart</a>
  223. with widgets.</li>
  224. <li>Tooltips on charts can now be deferred, which can improve performance of interactive charts, and if you have a lot of tooltips.</li>
  225. </ul>
  226. </dd>
  227. </dl>
  228. <hr />
  229. <h2>Release 3.3.5 (Dec 31, 2015)</h2>
  230. <p>
  231. This release has a focus on bug fixes but also one or two new features:
  232. </p>
  233. <dl>
  234. <dt>
  235. <a href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a>
  236. </dt>
  237. <dd>
  238. WCartesianChart has several new features that allow interaction with the
  239. chart without server roundtrips. These features include zoom, pan,
  240. crosshair and follow curve functionality.
  241. This is only available if the chart is drawn
  242. on an HTML canvas. This is the default rendering method on modern browsers.
  243. When enabled, the crosshair will follow mouse movement,
  244. and show in the top right corner the coordinate
  245. (according to X axis and the first Y axis) corresponding to this position.
  246. </dd>
  247. <dt>
  248. <a href="classWt_1_1Chart_1_1WAxisSliderWidget.html">Chart::WAxisSliderWidget</a>
  249. </dt>
  250. <dd>
  251. WAxisSliderWidget lets you easily focus on a particular range by selecting an XAxis. It will create a sliding widget where you can change the size of the focused region by dragging the blue handles, and change the position by dragging the selected area. When using touch, the size of this area can also be changed using a pinch movement.
  252. </dd>
  253. <dt>
  254. <a href="classWt_1_1WPainter.html">WPainter</a>, <a href="classWt_1_1WJavaScriptHandle.html">WJavascriptHandle</a>, <a href="classWt_1_1WCanvasPaintDevice.html">WCanvasPaintDevice</a>
  255. </dt>
  256. <dd>
  257. The above functionality was implemented by making client-side interaction possible for a scene rendered
  258. on WCanvasPaintDevice. For this purpose, for several primitives used to draw on a canvas, we provide
  259. a JavaScript handle and complementary API to manipulate these objects in JavaScript code. In this way you
  260. can keep the bulk of the painting code in C++, and allow manipulation from within JavaScript.
  261. Such JavaScript handlers have been made available for <a href="classWt_1_1WTransform.html">WTransform</a>, <a href="classWt_1_1WPen.html">WPen</a>, <a href="classWt_1_1WBrush.html">WBrush</a>, <a href="classWt_1_1WPointF.html">WPointF</a>, <a href="classWt_1_1WRectF.html">WRectF</a> and <a href="classWt_1_1WPainterPath.html">WPainterPath</a>.
  262. </dd>
  263. <dt> <a href="classWt_1_1WAnchor.html">WAnchor</a> target (such as this window, or new window) moved to <a href="classWt_1_1WLink.html#afda591cd277562d5c8ea723733290790">WLink</a></dt>
  264. <dd>As WLink is used in several places (including for example inside item data models), the target can now be specified in more places in the same consisten way. However, since until now a WAnchor was the owner of the TargetType, this may break existing code which calls WAnchor::setTarget() before WAnchor::setLink(), as the latter overrides the target.
  265. </dd>
  266. <dt>A new <a href="namespaceWt.html#a6c93a6e97016801a310275457e43f333">TargetDownload</a> target was added for links.</dt>
  267. <dd>Until now it was recommended to use TargetNewWindow as otherwise this would interfere with the rendering of the current page (since browsers are unaware of the content-type and content-disposition of the target link until after it unloaded the current page. The new TargetDownload option is implemented using the new HTML5 download attribute or, if not supported, by targetting a hidden iFrame contained in the page.
  268. </dd>
  269. <dt>The included SQLite version was updated</dt>
  270. <dd>
  271. The SQLite version bundled with Wt::Dbo has been updated to version 3.8.10.1. The changelog can be found <a href="https://www.sqlite.org/news.html">here</a>
  272. </dd>
  273. <dt>Support for seconds editing in <a href="classWt_1_1WTimePicker.html#a4d19d3ad8bdf0a9a3e35d84f3d298994">WTimePicker</a></dt>
  274. <dd>WTimePicker was missing the seconds, we've also added the setSecondStep() method.
  275. </dd>
  276. <dt><a href="classWt_1_1WCheckBox.html#a2d741874682e9a683d40527b03615d32">WCheckBox::setPartialStateSelectable()</a></dt>
  277. <dd>Before it was only possible to set the partial state of the WCheckbox when creating the Widget.
  278. We've added a method WCheckBox::setPartialStateSelectable(bool) which will allow the user to select indeterminate state. This is false by default;
  279. </dd>
  280. <dt>New client side connection monitor</dt>
  281. <dd>The <a href="classWt_1_1WApplication.html#ab6ae1117e316f1a7b31449aaeb83c9cf">WApplication::setConnectionMonitor()</a> method will let the user register a Javascript object that will be notified on connection changes (connection, disconnection, websockets enabled/disabled..)
  282. The monitor will trigger the onChange method of the provided Javascript object</dd>
  283. <dt>Support for custom HTML tags for a widgets</dt>
  284. <dd>We've added <a href="classWt_1_1WWebWidget.html#adf6034e0e715138cae479eae6e324ce6">WWebWidget::setHtmlTagName()</a> that will change the current html tag instead of using the one chosen by Wt by default. This allows the user to create widgets that are not provided by Wt, such as for example semantic tags.
  285. </dd>
  286. <dt>Wt::Dbo: allow to forward declare related classes</dt>
  287. <dd>It is now possible to forward declare all classes that are being referenced in a <a href="group__dbo.html#gaa3de862f9544c4d30b8cbcac4b50feba">belongsTo()</a>, <a href="group__dbo.html#ga00a060d5f4764f673948989f21837548">hasOne()</a> or <a href="group__dbo.html#ga570b71f937c991b000b9db01b327a363">hasMany()</a> relation, helping to reduce the compile time pain of Wt::Dbo.</dd>
  288. </dl>
  289. <hr>
  290. <h2>Release 3.3.4 (Mar 25, 2015)</h2>
  291. <p>
  292. This release has a focus on bug fixes but also one or two new features,
  293. of which the following are the most notable:
  294. </p>
  295. <dl>
  296. <dt>
  297. Support for dedicated session processes with wthttp connector.
  298. </dt>
  299. <dd>
  300. Until now, only the FastCGI connector allowed the use of dedicated
  301. processes for individual sessions, by spawning a new process for
  302. each new session. This functionality has also been added to the
  303. wthttp connector. In this implementation, the manager process will
  304. act as a reverse proxy to the dedicated session processes.
  305. This has as major benefit that there is no longer a choice between
  306. dedicated session processes on the one hand (supported by FastCGI)
  307. and support for WebSockets on the other hand (supported by the
  308. built-in httpd). In fact, there remains little reason to prefer
  309. FastCGI over the built-in httpd: in those situations where you
  310. want a proper http server as a front-end, you can still use
  311. HAproxy or NGINX (or Apache, if you must) as a reverse proxy to
  312. wthttp.
  313. </dd>
  314. <dt>
  315. <a href="classWt_1_1WIdentityProxyModel.html">WIdentityProxyModel</a>
  316. </dt>
  317. <dd>
  318. This new proxy model simply forwards the structure of the source
  319. model, without any transformation, and can be used for
  320. implementing proxy models that reimplement data(), but retain all
  321. other characteristics of the source model.
  322. </dd>
  323. <dt>
  324. <a href="classWt_1_1Chart_1_1WAbstractChart.html#ac895fb1d1437f51629b49246eda66e3d">Chart::WAbstractChart::setAutoLayoutEnabled()</a>
  325. </dt>
  326. <dd>
  327. Until now, you were responsible for configuring the padding around
  328. the chart area to accomodate for axis labels, titles, and
  329. legend. While this is still the default behaviour, we added an
  330. option to let the chart derive the required padding (using
  331. approximate font-metrics available server-side).
  332. </dd>
  333. <dt>
  334. <a href="classWt_1_1Chart_1_1WCartesianChart.html#a1c97590b1bd4ee9324822967d6e72333">Chart::WCartesianChart::setAxis()</a>
  335. </dt>
  336. <dd>
  337. Whereas previously a chart axis was a "value class", it is now a
  338. proper polyymorphic class, and you can provide your own
  339. implementation. In this way you can customize things like for
  340. example label strings.
  341. </dd>
  342. <dt>
  343. Several new features in the 3D charts library.
  344. </dt>
  345. <dd>
  346. <ul>
  347. <li><a href="classWt_1_1Chart_1_1WAbstractDataSeries3D.html#a0ac582c98fe58f36e0d60f11b5627656">
  348. setPointSprite()</a>: ability to define sprites for drawing
  349. a data series</li>
  350. <li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#a8f99da2ab56c80de400c90992c35f882">pickSurface()</a>:
  351. find out which points on a surface are under a given pixel</li>
  352. <li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#afc0509b2dff1fa8dbb970266de21f7db">pickBar()</a>:
  353. find out which points on a bar on are under a given pixel.</li>
  354. <li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#a09c065c802ff9b21d3c2a543e48f58b2">
  355. setIsoLevels()</a>:
  356. draw iso lines (on the ground plane of the chart) corresponding
  357. to selected z values.</li>
  358. <li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#ad74945761f9bfcc2ced42487468c5480">
  359. setClippingLinesEnabled()</a>:
  360. ability to clip and optionally draw clipping planes
  361. </li>
  362. <li>
  363. <a href="classWt_1_1Chart_1_1WCartesian3DChart.html#a8adb0ca981382e3e1435fe8e7fcf1d6e">
  364. setIntersectionsEnabled()</a>:
  365. ability to draw surface-surface intersection lines.
  366. </li>
  367. </ul>
  368. </dd>
  369. </dl>
  370. <hr>
  371. <h2>Release 3.3.3 (May 27, 2014)</h2>
  372. <p>
  373. This release has a focus on bug fixes but also one or two new features:
  374. </p>
  375. <dl>
  376. <dt>
  377. Improved Meta header support.
  378. </dt>
  379. <dd>
  380. Because WApplication meta header API was restricted to only work
  381. in certain circumstances, we have now added the ability to define
  382. meta headers (with the option to apply them to specific user agents)
  383. also in the configuration file.
  384. </dd>
  385. <dt>
  386. <a href="classWt_1_1WWidget.html#ab4086c221a56e81dd067be47303b5862">WWidget::setDeferredToolTip()</a>
  387. </dt>
  388. <dd>
  389. This function is an alternative to setToolTip(), useful when a
  390. tooltip text is not trivial to fetch or create. Using this
  391. function, the tool tip (HTML) text can now be loaded on-demand
  392. instead of needing to be preset on (each) widget. This also works
  393. for tooltips set from a WAbstractItemModel using the
  394. new <a href="group__modelview.html#ga1d77c4de293aebfacbdde124de06b8b0">ItemHasDeferredTooltip</a>
  395. item flag.
  396. </dd>
  397. <dt>
  398. <a href="classWt_1_1WLineEdit.html#ae599502e317ed79d5a1a54dae12d3d10">WLineEdit::setInputMask()</a>
  399. </dt>
  400. <dd>
  401. Support for input masks was added, which guides the user to enter
  402. data in the correct format.
  403. </dd>
  404. </dl>
  405. <hr>
  406. <h2>Release 3.3.2 (March 12, 2014)</h2>
  407. <p>
  408. This release has a focus on bug fixes and a few larger new developments.
  409. </p>
  410. <h3>A) New classes:</h3>
  411. <dl>
  412. <dt>
  413. <a href="classWt_1_1Chart_1_1WCartesian3DChart.html">3D Charts
  414. (Chart::WCartesian3DChart, ...)</a>
  415. </dt>
  416. <dd>
  417. A 3D charting library was added, based on
  418. <a href="classWt_1_1WGLWidget.html">WGLWidget</a>, and integrated
  419. with the existing 2D charting framework.
  420. </dd>
  421. <dt>
  422. <a href="classWt_1_1Dbo_1_1JsonSerializer.html">Dbo::JsonSerializer</a>
  423. </dt>
  424. <dd>
  425. This is a utility which serializes Dbo objects (including
  426. relations) to JSon, leveraging the same persist() function used
  427. for serialization to the database.
  428. </dd>
  429. </dl>
  430. <h3>B) Main improvements:</h3>
  431. <dl>
  432. <dt>
  433. <a href="classWt_1_1WBootstrapTheme.html">WBootstrapTheme</a>
  434. </dt>
  435. <dd>
  436. Support for bootstrap version 3 was added, so now you have the
  437. choice between botstrap version 2 or 3. Needless to say, you
  438. should probably target version 3 for new development work if you
  439. can live with its restricted browser support.
  440. </dd>
  441. <dt>
  442. <a href="classWt_1_1WGLWidget.html">WGLWidget</a>
  443. </dt>
  444. <dd>
  445. Next to the existing client-side WebGL-based implementation, a
  446. server-side OpenGL-based implementation was added for fallback
  447. scenarios where WebGL is not available, or when scene complexity
  448. is so big that a server-side solution is simply better performing
  449. because of lower bandwidth needed.
  450. </dd>
  451. <dt>
  452. <a href="classWt_1_1WRasterImage.html">WRasterImage</a>
  453. </dt>
  454. <dd>
  455. Next to the GraphicsMagick-based implementation, a skia-based
  456. implementation has been added (which provides much higher
  457. performance most notably on Windows platforms).
  458. </dd>
  459. <dt>
  460. <a href="classWt_1_1WString.html">WString</a>
  461. </dt>
  462. <dd>
  463. Until now, Wt defaults to the C++ global locale for conversion
  464. between a string literal (std::string, const char *) and
  465. WString. In practice, UTF-8 is an (increasingly) better choice
  466. since UTF-8 is a pragmatic encoding covering the entire Unicode
  467. range, and the encoding used by the library throughout. We've now
  468. added a setDefaultEncoding() function which can be used to
  469. configure the default encoding as UTF-8.
  470. </dd>
  471. <dt>
  472. wthttp HTTP/WebSockets front-end server
  473. </dt>
  474. <dd>
  475. We've given the http front-end a much needed overhaul, making it
  476. deal better with long-lived connections typical for WebSockets
  477. applications, and fix some nasty issues at the same time.
  478. We also took the opportunity to optimize its performance by
  479. reducing the number of system calls for writing request
  480. responses, and by avoiding memory allocations during request parsing.
  481. </dd>
  482. </dl>
  483. <h3>C) Non-backwards compatible changes</h3>
  484. <dl>
  485. <dt>
  486. <a href="classWt_1_1WDatePicker.html">WDatePicker</a>,
  487. <a href="classWt_1_1WDateEdit.html">WDateEdit</a>
  488. </dt>
  489. <dd>
  490. The date pickers will now default to interpreting a single click
  491. as a date selection and also closing the calendar.
  492. </dd>
  493. </dl>
  494. <hr>
  495. <h2>Release 3.3.1 (October, 16 2013)</h2>
  496. <p>
  497. This release has a focus on bug fixes and other cleanups after the big
  498. changes that went into 3.3.0.
  499. </p>
  500. <h3>A) New classes:</h3>
  501. <dl>
  502. <dt>
  503. <a href="classWt_1_1WLocalDateTime.html">WLocalDateTime</a>
  504. </dt>
  505. <dd>
  506. So far, the library only provided date/time classes that dealt with
  507. UTC time (or that at least is the intended use). In this release
  508. we have added functionality to also deal with date's in a specific
  509. time zone, which includes this new type as well as improvements in
  510. WDateTime to convert to local date time, and time zone information
  511. in WEnvironment and WLocale.
  512. </dd>
  513. </dl>
  514. <h3>B) Main improvements:</h3>
  515. <dl>
  516. <dt>
  517. <a href="classWt_1_1WComboBox.html">WComboBox</a>
  518. </dt>
  519. <dd>
  520. The combo box now interprets LevelRole data to display headers
  521. (using HTML &lt;optgroup&lt; elements). Another improvement is
  522. that now the combobox saves its single selection while the model
  523. is updated.
  524. </dd>
  525. <dt>
  526. <a href="classWt_1_1WDialog.html">WDialog</a>
  527. </dt>
  528. <dd>
  529. Modal dialogs can now be created and destroyed in any order
  530. without confusing the 'silk screen'. We now also consistently
  531. interpret an enter press in the dialog to invoke the default
  532. button added to the dialog footer (if there is one).
  533. </dd>
  534. <dt>
  535. <a href="classWt_1_1WMessageBox.html">WMessageBox</a>
  536. </dt>
  537. <dd>
  538. Several improvements include the ability to indicate what buttons
  539. are the default and escape buttons with setDefaultButton() or
  540. button->setDefault() and setEscapeButton(), and the (long overdue)
  541. implementation of icons!
  542. </dd>
  543. <dt>
  544. <a href="classWt_1_1WTextEdit.html">WTextEdit</a>
  545. </dt>
  546. <dd>
  547. We've added support for TinyMCE 4.
  548. </dd>
  549. <dt>
  550. <a href="classWt_1_1Signal.html">Signal</a>
  551. </dt>
  552. <dd>
  553. For boost versions 1.52 or later, we now support the
  554. Boost.Signals2 library for the signals implementation.
  555. </dd>
  556. <dt>
  557. <a href="namespaceWt_1_1Render.html">Render library</a>
  558. </dt>
  559. <dd>
  560. We've added a CSS style sheet parser which will parse and apply
  561. style rules in &lt;style&gt; blocks (or loaded through the API),
  562. and expanded CSS support to much improvemed table rendering
  563. (including border-collapse border model and repeated table
  564. headers), relative/absolute positioning, and page-break-before/after
  565. support.
  566. </dd>
  567. <dt>
  568. <a href="classWt_1_1Auth_1_1AbstractUserDatabase.html">Auth::AbstractUserDatabase</a>
  569. </dt>
  570. <dd>
  571. A setIdentity() method was added to modify an existing identity
  572. (e.g. username) and updateAuthToken() was added to update an
  573. existing token (e.g. keeping the expiration time but changing the
  574. hash).
  575. </dd>
  576. <dt>
  577. <a href="classWt_1_1Dbo_1_1Query.html">Dbo::Query</a>
  578. </dt>
  579. <dd>
  580. Added a reset() function which resets previous bound arguments.
  581. </dd>
  582. <dt>
  583. <a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>
  584. </dt>
  585. <dd>
  586. The model now implements toRawIndex() and fromRawIndex() methods to
  587. allow selection to persist across layout changes (e.g. resorting).
  588. </dd>
  589. <dt>
  590. <a href="group__json.html">Wt::Json (JSON library)</a>
  591. </dt>
  592. <dd>
  593. We've added serialization functions to complement the parsing API.
  594. </dd>
  595. <dt>
  596. <a href="group__mail.html">Wt::Mail (SMTP library)</a>
  597. </dt>
  598. <dd>
  599. We've added attachment support, and optional indication of the local
  600. sender date.
  601. </dd>
  602. </dl>
  603. <h3>C) Non-backwards compatible changes</h3>
  604. <dl>
  605. <dt>
  606. <a href="classWt_1_1WDate.html">WDate</a>,
  607. <a href="classWt_1_1WDateTime.html">WDateTime</a>
  608. <a href="classWt_1_1WTime.html">WTime</a>
  609. </dt>
  610. <dd>
  611. We've deprecated the exceptions (Invalid[Date][Time]Exception)
  612. that were thrown by these classes when one attempted to compute or
  613. use an 'invalid' value. These exceptions are no longer thrown.
  614. Instead, we now documented what value
  615. (usually 'null') is returned when one attempts to do operations on
  616. such a date/time class, which makes the behaviour more consistent
  617. with how Qt's equivalent classes behave.
  618. </dd>
  619. <dt>
  620. <a href="classWt_1_1WMessageBox.html">WMessageBox</a></dt>
  621. <dd>
  622. The buttons() method has been renamed to standardButtons(), and
  623. buttons() now return the actual list of added buttons.
  624. </dd>
  625. </dl>
  626. <hr>
  627. <h2>Release 3.3.0 (April, 8 2013)</h2>
  628. <p>
  629. This release focusses on a reorganization of Wt's theme
  630. infrastructure, with the objective of
  631. supporting <a href="http://twitter.github.com/bootstrap/">Twitter's
  632. Bootstrap CSS framework</a> as a new theme. At the same time we've
  633. added a number of widgets for which Twitter Bootstrap provides
  634. styling.
  635. </p>
  636. <p>It is our intention to support the Bootstrap theme (or more
  637. specifically, the Bootstrap class names) alongside the themes we
  638. already supported (which are based on our own class names). Ignoring
  639. what Bootstrap brings, you should be able to upgrade to this release
  640. without too much trouble, although you may need to adapt some CSS
  641. stylesheets as we did reorganize a number of things which were
  642. required for Bootstrap and were a good idea for our own CSS
  643. stlesheets too.</p>
  644. <h3>A) New classes:</h3>
  645. <dl>
  646. <dt>
  647. <a href="classWt_1_1WTheme.html">WTheme</a>,
  648. <a href="classWt_1_1WCssTheme.html">WCssTheme</a>,
  649. <a href="classWt_1_1WBootstrapTheme.html">WBootstrapTheme</a>,
  650. </dt>
  651. <dd>
  652. Theme support classes for Wt. The role of a theme is to:
  653. <ul>
  654. <li>Load the CSS stylesheets for a new session</li>
  655. <li>Annotate newly created widgets with appropriate style
  656. classes</li>
  657. </ul>
  658. </dd>
  659. <dt>
  660. <a href="classWt_1_1WDateEdit.html">WDateEdit</a>
  661. </dt>
  662. <dd>
  663. Functionally almost the same as a WDatePicker, this class
  664. specializes WLineEdit and is thus a WFormWidget, making it much
  665. easier to use in WTemplateFormView.
  666. </dd>
  667. <dt>
  668. <a href="classWt_1_1WLocale.html">WLocale</a>
  669. </dt>
  670. <dd>
  671. This class supports localization for number formatting and
  672. extends the simple localization support we had in the previous
  673. versions of Wt (which as only effect had the selection of
  674. a different language for the resource bundles). It's main
  675. added value of native C++ support for localization is that it
  676. also affects client-side handling and parsing of number values,
  677. i.e. in <a href="classWt_1_1WIntValidator.html">WIntValidator</a> and
  678. <a href="classWt_1_1WDoubleValidato.htmlr">WDoubleValidator</a>.
  679. </dd>
  680. <dt>
  681. <a href="classWt_1_1WNavigationBar.html">WNavigationBar</a>
  682. </dt>
  683. <dd>
  684. A navigation bar styles a menu as a typical top-level bar
  685. (currently only styled in the Bootstrap Theme).
  686. </dd>
  687. <dt>
  688. <a href="classWt_1_1WPopupWidget.html">WPopupWidget</a>
  689. </dt>
  690. <dd>
  691. A base class to simplify the creation of popup widgets that
  692. typically assist in editing or provide circumstancial information
  693. for another widget.
  694. </dd>
  695. <dt>
  696. <a href="classWt_1_1WSplitButton.html">WSplitButton</a>
  697. </dt>
  698. <dd>
  699. A split button, which combines a button and a popup menu
  700. (currently only styled in the Bootstrap Theme).
  701. </dd>
  702. <dt>
  703. <a href="classWt_1_1WToolBar.html">WToolBar</a>
  704. </dt>
  705. <dd>
  706. A button tool bar (currently only styled in the Bootstrap Theme)
  707. </dd>
  708. <dt>
  709. <a href="classWt_1_1Dbo_1_1backend_1_1MySQL.html">Dbo::MySQL</a>
  710. </dt>
  711. <dd>
  712. A MariaDB/MySQL backend for Wt::Dbo. This is based on the work
  713. from Paul Harrisson who maintained this backend so far outside the
  714. Wt distribution. The backend has been designed for MariaDB, but
  715. should work fine for MySQL as well.
  716. </dd>
  717. </dl>
  718. <h3>B) Main improvements:</h3>
  719. <dl>
  720. <dt>
  721. <a href="classWt_1_1Mail_1_1Message.html">Mail::Message</a>
  722. </dt>
  723. <dd>
  724. Added API support for additional SMTP headers.
  725. </dd>
  726. <dt>
  727. <a href="classWt_1_1WDatePicker.html">WDatePicker</a>,
  728. <a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a>
  729. </dt>
  730. <dd>
  731. The setGlobalPopup() functionality has been deprecated and does no
  732. longer have any effect, since a new improved algorithm is being
  733. used to anchor the popup to the DOM which no longer requires this
  734. workaround.
  735. </dd>
  736. <dt>
  737. <a href="classWt_1_1WDialog.html">WDialog</a>
  738. </dt>
  739. <dd>
  740. Addition of a footer() method that returns a container for dialog
  741. footer elements, typically buttons.
  742. </dd>
  743. <dt>
  744. <a href="classWt_1_1WFormModel.html">WFormModel</a>
  745. </dt>
  746. <dd>
  747. Addition of a validator() function that returns the validator for
  748. a field set using setValidator(),
  749. </dd>
  750. <dt>
  751. <a href="classWt_1_1WGLWidget.html">WGLWidget</a>
  752. </dt>
  753. <dd>
  754. Support for binary transfers which avoids serialization and
  755. deserialization of floats to text.
  756. </dd>
  757. <dt>
  758. <a href="classWt_1_1WPushButton.html">WPushButton</a>
  759. </dt>
  760. <dd>
  761. A push button can now act as a toggle button, using setCheckable()
  762. and related API (currently only styled in the Bootstrap Theme) and
  763. can be linked to a popup menu using setMenu().
  764. </dd>
  765. <dt>
  766. <a href="classWt_1_1WStackedWidget.html">WStackedWidget</a>
  767. </dt>
  768. <dd>
  769. When switching between current widgets, the stacked widget will
  770. now record and restore the current scroll position, providing a
  771. much improved user experience when using the stacked widget for
  772. the 'main' contents of an application.
  773. </dd>
  774. <dt>
  775. <a href="classWt_1_1WStringListModel.html">WStringListModel</a>
  776. </dt>
  777. <dd>
  778. Full support was added for storing data of all roles, lifting the
  779. requirement to use another model such as WStandardItemModel for
  780. simple MVC widgets like WComboBox or WSuggestionPopup simply to be
  781. able to store UserRole data.
  782. </dd>
  783. <dt>
  784. <a href="classWt_1_1WTemplate.html">WTemplate</a>
  785. </dt>
  786. <dd>
  787. Added a new standard function (Functions::block) which allows the
  788. definition and use of a macro block inside a placeholder, which is
  789. in particular useful for forms which have repetitive formatting
  790. for each field.
  791. </dd>
  792. <dt>
  793. <a href="classWt_1_1WTemplateFormView.html">WTemplateFormView</a>
  794. </dt>
  795. <dd>
  796. Several API improvements: A new setFormWidget() allows the
  797. definition of the form widget for editing a field which
  798. is a more useful alternative compared to reimplement
  799. createFormWidget(). It also allows the optional
  800. definition of functions to update the view/model values, which
  801. avoids the need for specializing updateViewField() and
  802. updateModelField() these latter two functions have been deprecated
  803. in favour of two new functions updateViewValue() and
  804. updateModelValue() which only update the value but not other
  805. aspects such as visibility, validation state, or messages.
  806. </dd>
  807. <dt>
  808. Built-in httpd improvements
  809. </dt>
  810. <dd>
  811. A redundant copy operation of the response generated and sent by
  812. Wt has been removed, using scatter-gather I/O implemented by
  813. boost::asio instead.
  814. </dd>
  815. </dl>
  816. <h3>C) Non-backwards compatible changes</h3>
  817. <dl>
  818. <dt>
  819. <a href="classWt_1_1WMenuItem.html">WMenuItem</a>
  820. </dt>
  821. <dd>
  822. While in previous version of Wt, this class was only a data class
  823. that held the information related to an item, in 3.3.0 we modified
  824. this so that this class represents the widget itself. If you were
  825. redefining protected methods to customize the widget
  826. (i.e. createItemWidget() and updateItemWidget()), then this will no
  827. longer work as expected. The new system should be easier to
  828. customize (since you can simply specialize WMenuItem itself).
  829. In addition, we've simplified the rendering of a menu item so that
  830. a redundant layer of spans (or div's) has been removed. It makes
  831. the menu more consistent with the way CSS designers expect a menu
  832. to rendered, and this was done (you can guess the theme of this
  833. release by now ?) to be compatible with bootstrap's CSS styles.
  834. </dd>
  835. <dt>
  836. <a href="classWt_1_1WApplication.html">WApplication::locale()</a>
  837. </dt>
  838. <dd>
  839. This now returns a WLocale object instead of the string
  840. designation of the locale (which you can query by calling name())
  841. on the locale object.
  842. </dd>
  843. <dt>
  844. <a href="classWt_1_1WCalendar.html">WCalendar</a>
  845. </dt>
  846. <dd>
  847. The markup for this class has changed, and thus customized CSS
  848. will need to be updated.
  849. </dd>
  850. <dt>
  851. <a href="classWt_1_1WMenuItem.html">WPopupMenuItem</a>
  852. </dt>
  853. <dd>
  854. The popup menu item class has been merged with WMenuItem (and
  855. WPopupMenu is now a specialized WMenu). This should not have
  856. noticable API changes, except for the changes in markup and CSS
  857. documented above.
  858. </dd>
  859. <dt>
  860. <a href="classWt_1_1WTreeNode.html">WTreeNode</a>,
  861. <a href="classWt_1_1WTreeTable.html">WTreeTable</a>
  862. <a href="classWt_1_1WTreeView.html">WTreeView</a>
  863. </dt>
  864. <dd>
  865. The markup for tree rendering has been changed (to using nested
  866. unordered list instead of nested tables), and thus customized CSS
  867. will need to be updated. The only API consequence is that
  868. WTreeNode::labelArea() is no longer returning a WTableCell but
  869. instead a WContainerWidget.
  870. </dd>
  871. <dt>
  872. <a href="classWt_1_1WTreeView.html">WTreeView</a>,
  873. <a href="classWt_1_1WTableView.html">WTableView</a>
  874. </dt>
  875. <dd>
  876. Event handling (clicked(), doubleClicked(), ... ) has been
  877. generalized: events that are not generated on an item (but for
  878. example in empty space below the items) will now also
  879. generate these events, but then with an invalid model index.
  880. You may thus need to adapt current code to check whether the model
  881. index that is returned is valid.
  882. </dd>
  883. </dl>
  884. <hr>
  885. <h2>Release 3.2.3 (November, 1 2012)</h2>
  886. <p>
  887. This release contains mostly bug fixes and one new feature: a payment
  888. processing API.
  889. </p>
  890. <h3>A) New namespaces:</h3>
  891. <dl>
  892. <dt>
  893. <a href="group__payment.html">Wt::Payment (payment handling)</a>
  894. </dt>
  895. <dd>
  896. This namespace contains services and back-end classes for dealing
  897. with online payment brokers. At the moment there is support for
  898. PayPal's Express Checkout service.
  899. </dd>
  900. </dl>
  901. <h3>B) Main improvements:</h3>
  902. <dl>
  903. <dt>
  904. Layout improvements.
  905. </dt>
  906. <dd>
  907. <p>
  908. If you had massive trouble migrating to 3.2.2 because of the
  909. layout rewrite, then you'll appreciate the efforts we've made to
  910. make the layout algorithms in 3.2.3 much more robust and
  911. consistent.
  912. </p>
  913. </dd>
  914. <dt>
  915. <a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>:
  916. added a mechanism for stable row data.
  917. </dt>
  918. <dd>
  919. <p>
  920. A common nuisance when working with the QueryModel (which
  921. retrieves data from the database as needed), is that concurrent
  922. database modifications such as insertions of new data, may
  923. interfere with the model's mapping of rows to objects (this is
  924. in fact a common problem with most ORM's indeed). This mapping
  925. may be important, especially when you want to process the user's
  926. selection of one or more rows selected by the user, in e.g. a
  927. table view. We've added a mechanism to assure that one can
  928. request the model for data at a given row, which is guaranteed
  929. to be the same row that has been previously retrieved, using the
  930. stableResultRow() method. It works by default for simple queries
  931. (returning data from one table), but can be easily customized
  932. for more complex queries.
  933. </p>
  934. </dd>
  935. <dt>
  936. <a href="namespaceWt_1_1Render.html">Render library:</a>
  937. improved support for %-based block sizes and table rendering
  938. </dt>
  939. <dd>
  940. <p>
  941. Support was added for %-based sizes for block widths and table
  942. cell widths. In addition, table rendering in Wt::Render has been
  943. improved to support repeating headers (&lt;thead&gt; sections)
  944. for multi-page tables, and explicit page breaks (using the css
  945. page-break-after/before properties).
  946. </p>
  947. </dd>
  948. </dl>
  949. <h3>C) Non-backwards compatible changes</h3>
  950. <dl>
  951. <dt>
  952. <a href="classWt_1_1Dbo_1_1backend_1_1Sqlite3.html">Dbo::backend::Sqlite3</a>
  953. </dt>
  954. <dd>
  955. <p>We've changed the implementation of the storage ISO8601AsText
  956. format for time stamps (datetime). In the new, corrected,
  957. implementation, we generate dates using 'T' as the separator
  958. between date and time (as mandated by ISO8601), while the old
  959. behaviour used a space ('&nbsp;') instead as the
  960. separator. Sqlite3 supports either format equally. This may
  961. however break some applications which use queries for an exact
  962. date (or a date comparison), as the results may be affected.
  963. </p>
  964. <p> The old behaviour is still available as PseudoISO8601AsText,
  965. which can be configured using
  966. <tt>connection.setDateTimeStorage(Wt::Dbo::SqlDateTime,
  967. Wt::Dbo::backend::Sqlite3::PseudoISO8601AsText)</tt>
  968. </p>
  969. </dd>
  970. </dl>
  971. <hr>
  972. <h2>Release 3.2.2 (July, 23 2012)</h2>
  973. <p>
  974. This release contains mostly bug and feature improvements, but
  975. also a rewrite of the layout managers in Wt (WBoxLayout and
  976. WGridLayout), and this comes with some changes in (in most cases
  977. previously undefined) behaviour.
  978. </p>
  979. <h3>A) New classes:</h3>
  980. <dl>
  981. <dt>
  982. <a href="classWt_1_1WSslInfo.html">WSslInfo</a>
  983. </dt>
  984. <dd>
  985. Class containing information on a client-side certificate that may
  986. have been configured for a SSL connection, and which can be used
  987. for authentication (accessible from
  988. <a href="classWt_1_1WEnvironment.html">WEnvironment</a>).
  989. </dd>
  990. <dt>
  991. <a href="classWt_1_1Dbo_1_1weak__ptr.html">Wt::Dbo::weak_ptr</a>
  992. </dt>
  993. <dd>
  994. A weak variant of Wt::Dbo::ptr which is used to implement
  995. One-to-One relations (see also
  996. <a
  997. href="group__dbo.html#ga00a060d5f4764f673948989f21837548">Wt::Dbo::hasOne()
  998. </a>).
  999. </dd>
  1000. </dl>
  1001. <h3>B) Main improvements:</h3>
  1002. <dl>
  1003. <dt>
  1004. Rewrite of <a href="classWt_1_1WLayout.html">WBoxLayout, WGridLayout</a>
  1005. </dt>
  1006. <dd>
  1007. <p>
  1008. The layout managers have been reimplement, to address various
  1009. issues with the old implementation, including API (in particular the wonked
  1010. side-effects of AlignTop | AlignJustify) inconsistencies and bugs.
  1011. </p>
  1012. <p>The new implementation no longer uses tables when JavaScript
  1013. is available, but instead using JavaScript-based layout with
  1014. absolute positioning. The table-based implementation is still kept
  1015. for plain HTML sessions (and progressive bootstrap). The code now
  1016. uses exactly the same layout logic for both horizontal and
  1017. vertical layout (but giving precedence to horizontal layout) and
  1018. should be much more consistent (and perhaps also more
  1019. performant). However, because of the many complexities and
  1020. problems with the old code (inconsistent behaviour), you may see
  1021. issues while upgrading. Please see the "Non-backwards compatible
  1022. changes" below for hints on how to deal with this.</p>
  1023. </dd>
  1024. <dt>
  1025. <a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>
  1026. </dt>
  1027. <dd>
  1028. <p>
  1029. A drag &amp; drop mime-type can now be specified on a per-item
  1030. basis using a new <a
  1031. href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068">ItemDataRole</a>,
  1032. and the mime-type for the entire selection is computed
  1033. from these individual mime-types.
  1034. </p>
  1035. </dd>
  1036. <dt>
  1037. <a href="classWt_1_1WInteractWidget.html">WInteractWidget</a>
  1038. </dt>
  1039. <dd>
  1040. A new method <a href="classWt_1_1WInteractWidget.html#a60423e777cffa89e6d1373fd25754099">setMouseOverDelay()</a> allows to specify a delay for
  1041. generating the mouseWentOver() event.
  1042. </dd>
  1043. <dt>
  1044. <a href="classWt_1_1Auth_1_1AbstractUserDatabase.html">Auth::AbstractUserDatabase</a>
  1045. </dt>
  1046. <dd>
  1047. A new method <a href="classWt_1_1Auth_1_1AbstractUserDatabase.html#a5067e569748cfad8c3356735a33aa10f">deleteUser()</a> was added, which deletes a user and all
  1048. related authentication information.
  1049. </dd>
  1050. <dt>
  1051. <a href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a>
  1052. </dt>
  1053. <dd>
  1054. A new method <a href="classWt_1_1Chart_1_1WCartesianChart.html#aa6c394c4d9a801d088b7b02c3fd66b28">setAxisPadding()</a> was added, which configures the
  1055. amount of adding between the chart area and the axes.
  1056. </dd>
  1057. <dt>
  1058. <a href="classWt_1_1Chart_1_1WDataSeries.html">Chart::WDataSeries</a>
  1059. </dt>
  1060. <dd>
  1061. A new method <a href="classWt_1_1Chart_1_1WDataSeries.html#ab0dbcd9bcbc0f39a042eb36aa930def4">setCustomMarker()</a> was added which allows the use of a
  1062. user-defined path for the markers. A new role
  1063. MarkserScaleFactorRole was added which allows overriding the
  1064. marker size based on item model data.
  1065. </dd>
  1066. </dl>
  1067. <h3>C) Non-backwards compatible changes</h3>
  1068. <dl>
  1069. <dt>
  1070. <a href="classWt_1_1WLayout.html">WBoxLayout, WGridLayout</a>
  1071. </dt>
  1072. <dd>
  1073. While migrating old code to this version, here are some tips:
  1074. <ol>
  1075. <li><p>Alignment flags</p>
  1076. <p>Previously, specifying an alignment for a widget in a
  1077. layout, or for the layout when set to a container, had a double
  1078. meaning. Not only would it implement the given alignment but also
  1079. revert to passively letting HTML layout decide the layout of the
  1080. contents, and adjust the parent (layout respectively container)
  1081. accordingly. This had all kinds of side effects such as not
  1082. propagating the size of layout-size-aware widgets and quirks in
  1083. the vertical alignment.</p>
  1084. <p><a href="classWt_1_1WContainerWidget.html#aff9884c8efdf90974077e96bcb1701db">WContainerWidget::setLayout(layout, alignment)</a> has been
  1085. deprecated and will be removed from a future release. This call
  1086. was almost always used to let the parent container resize to fit
  1087. the size of the contained children, instead of fitting children
  1088. in the parent container. This behaviour is now
  1089. automatically deduced based on an (empty) size of the parent
  1090. container. In case this heuristic does not work, then setting a
  1091. non-0 maximum size on the container using <a href="classWt_1_1WWebWidget.html#a9b83805a5b8090d296ae4b5939fc9d11">setMaximumSize()</a> will
  1092. act as a trigger, with the added benefit that the parent will only
  1093. be allowed to resize up to a specified maximum size.</p>
  1094. <p>An alignment specified in
  1095. <a href="classWt_1_1WBoxLayout.html#a7c1ec58e25d0b7add93f5f4342844db6">W(Box/Grid)Layout::addWidget(widget, stretch, alignment)</a> now
  1096. purely affects the alignment but has no other side effects. The
  1097. perferred and minimum sizes of a child widget or layout is now
  1098. always taken into account.</p>
  1099. </li>
  1100. <li><p>Child item sizes</p>
  1101. <p>The layout algorithm is now implemented entirely in
  1102. JavaScript, and is more gentle when dealing with a combination
  1103. of cells (or columns/rows) that have a stretch factor and others
  1104. that don't. Previously, a minimum (or fixed) size would be used
  1105. to layout items that do not have a stretch factor. This had for
  1106. example as a consequence that a WText would be narrowed down to its
  1107. minimum width by using word wrapping throughout. Now, the
  1108. preferred size is used for a child item, and shrinking to a minimum
  1109. size only if necessary.</p>
  1110. <li><p>Progressive bootstrap</p>
  1111. A layout in the first page of an application rendered using
  1112. progressive bootstrap will no longer fully upgrade to a full
  1113. JavaScript version, but will result in a hybrid (between
  1114. table-based and JavaScript-based). If it doesn't work out as you'ld
  1115. expect, then you should reconsider the use of progressive bootstrap,
  1116. or the use of a layout manager in your first page.
  1117. </li>
  1118. </ol>
  1119. </dd>
  1120. </dl>
  1121. <hr>
  1122. <h2>Release 3.2.1 (March 16, 2012)</h2>
  1123. <p>
  1124. This release contains mostly bug and feature improvements.
  1125. </p>
  1126. <h3>A) New classes:</h3>
  1127. <dl>
  1128. <dt>
  1129. <a href="classWt_1_1WFormModel.html">WFormModel</a>
  1130. </dt>
  1131. <dd>
  1132. A model class for forms. These models are used in Wt::Auth as the
  1133. basis for RegistrationModel and AuthModel, and allow a more
  1134. straight-forward customization of the underlying behavior of these
  1135. forms.
  1136. </dd>
  1137. <dt>
  1138. <a href="classWt_1_1WReadOnlyProxyModel.html">WReadOnlyProxyModel</a>
  1139. </dt>
  1140. <dd>
  1141. A proxy model class which allows to share a source model
  1142. read-only between multiple sessions.
  1143. </dd>
  1144. <dt>
  1145. <a href="classWt_1_1WTemplateFormView.html">WTemplateFormView</a>
  1146. </dt>
  1147. <dd>
  1148. A WTemplate-based standard view implementation that works in conjunction
  1149. with WFormModel.
  1150. </dd>
  1151. <dt>
  1152. <a href="classWt_1_1Auth_1_1AuthModel.html">Auth::AuthModel</a>
  1153. </dt>
  1154. <dd>
  1155. A model that implements authentication logic.
  1156. </dd>
  1157. <dt>
  1158. <a href="classWt_1_1Auth_1_1FacebookService.html">Auth::FacebookService</a>
  1159. </dt>
  1160. <dd>
  1161. An OAuth-2.0 based authentication service implementation for
  1162. Facebook.
  1163. </dd>
  1164. <dt>
  1165. <a href="namespaceWt_1_1Utils.html">Wt::Utils</a>
  1166. </dt>
  1167. <dd>
  1168. This namespace contains a number of utility functions that we
  1169. found useful in projects using Wt. They relate mostly to
  1170. lower-level encoding and decoding functions: base64-, hex-, html-,
  1171. and url-encoding/decoding.
  1172. </dd>
  1173. </dl>
  1174. <h3>B) Main improvements:</h3>
  1175. <dl>
  1176. <dt>
  1177. <a href="classWt_1_1WApplication.html">WApplication</a>
  1178. </dt>
  1179. <dd>
  1180. A new method, WApplication::bind(), is useful in combination with
  1181. WServer::post() to avoid posting to a method of a deleted object,
  1182. leveraging the same life-time tracking as with signal connections.
  1183. </dd>
  1184. <dt>
  1185. <a href="namespaceWt_1_1Render.html">Render library</a>
  1186. </dt>
  1187. <dd>
  1188. A large number of performance improvements, especially for table
  1189. layout and rendering.
  1190. </dd>
  1191. <dt>
  1192. <a href="classWt_1_1Chart_1_1WAxis.html">Chart::WAxis</a>
  1193. </dt>
  1194. <dd>
  1195. DateScale and DateTimeScale axes have improved auto-configuration of
  1196. limits and timesteps, now taking into account the resolution.
  1197. </dd>
  1198. <dt>
  1199. <a href="classWt_1_1Dbo_1_1Transaction.html">Dbo::Transaction</a>
  1200. </dt>
  1201. <dd>
  1202. We've modified the default transaction outcome: a transaction will
  1203. now automatically commit(), unless the transaction is being
  1204. destroyed (goes out of scope) because an exception is being
  1205. thrown, in which case the transaction will rollback(). Previously,
  1206. an uncomitted transaction would always rollback() on destruction.
  1207. </dd>
  1208. <dt>
  1209. <a href="classWt_1_1Dbo_1_1ptr.html">Dbo::ptr</a>
  1210. </dt>
  1211. <dd>
  1212. Added a session() method, returning the session with which the
  1213. session has been associated.
  1214. </dd>
  1215. <dt>
  1216. Shipped SHA-1 implementation.
  1217. </dt>
  1218. <dd>
  1219. We now ship a SHA-1 implementation with Wt and this thus relaxes
  1220. the need for OpenSSL to implement WebSockets and
  1221. Auth::SHA1HashFunction.
  1222. </dd>
  1223. </dl>
  1224. <h3>C) Non-backwards compatible changes</h3>
  1225. <dl>
  1226. <dt>
  1227. <a href="classWt_1_1WTextEdit.html">WTextEdit</a>
  1228. </dt>
  1229. <dd>
  1230. Due to backwards incompatiblity of IE9, we now require the latest
  1231. version of TinyMCE (3.5b1 or later).
  1232. </dd>
  1233. <dt>
  1234. <a href="classWt_1_1Auth_1_1AuthWidget.html">Auth::AuthWidget</a>
  1235. </dt>
  1236. <dd>
  1237. A number of API methods that configure and access the configuration
  1238. were moved to the new Auth::AuthModel class which can be accessed from
  1239. the widget using model().
  1240. </dd>
  1241. <dt>
  1242. <a href="classWt_1_1Auth_1_1AbstractPasswordService_1_1AbstractStrengthValidator.html">Auth::AbstractPasswordService::AbstractStrengthValidator</a>
  1243. </dt>
  1244. <dd>
  1245. The API was simplified to be less unorthodox: validate() now
  1246. returns a Result that contains all the information for it.
  1247. </dd>
  1248. <dt>
  1249. <a href="classWt_1_1Http_1_1Client.html">Http::Client</a>
  1250. </dt>
  1251. <dd>
  1252. We've changed the signature of the parseUrl() utility function to
  1253. parse the URL into a URL structure instead of a collection of
  1254. string parameters.
  1255. </dd>
  1256. </dl>
  1257. <hr>
  1258. <h2>Release 3.2.0 (November 29, 2011)</h2>
  1259. <p>
  1260. This release contains a number of new modules, as well as the usual
  1261. batch of <a href="http://redmine.emweb.be/versions/show/13">bug
  1262. fixes</a> and small feature improvements.
  1263. </p>
  1264. <p>
  1265. In this release we also change the WValidator API in a way that it
  1266. is likely to break existing applications.
  1267. </p>
  1268. <h3>A) New namespaces:</h3>
  1269. <dl>
  1270. <dt>
  1271. <a href="group__json.html">Wt::Json (JSON handling)</a>
  1272. </dt>
  1273. <dd>
  1274. This namespace contains classes (Object, Value, Array) which map
  1275. the JSON types in C++. It also contains a parser to deserialize
  1276. JSON. A writer to serialize to JSON hasn't been added yet.
  1277. </dd>
  1278. <dt>
  1279. <a href="group__mail.html">Wt::Mail (SMTP protocol)</a>
  1280. </dt>
  1281. <dd>
  1282. This namespace contains a Client to send mail messages. It is
  1283. currently offering only limited functionality w.r.t. SMTP protocol
  1284. handling, but contains enough functionality to send standards
  1285. compliant plain-text/HTML mails, with full support for unicode.
  1286. </dd>
  1287. <dt>
  1288. <a href="group__auth.html">Wt::Auth (Authentication)</a>
  1289. </dt>
  1290. <dd>
  1291. <div>This namespace contains model and view classes for
  1292. authentication. It implements password authentication using best
  1293. practices, email verifiation, remember-me tokens, and provisions
  1294. support for federated login with an implementation of OAuth 2.0
  1295. for authentication using third party identity providers.</div>
  1296. <div>We expect that the API may still evolve, especially with
  1297. respect to OAuth 2.0 (which is a draft protocol), and its use
  1298. for OpenID Connect, which is the main use case for OAuth within
  1299. the authentication module.</div>
  1300. </dd>
  1301. </dl>
  1302. <h3>B) New classes:</h3>
  1303. <dl>
  1304. <dt>
  1305. <a href="classWt_1_1WException.html">WException</a>
  1306. </dt>
  1307. <dd>
  1308. We have cleaned up the use of exceptions within Wt. We have
  1309. converted numerous cases where an exception used to be thrown to
  1310. error logging, if the exception was thrown to indicate an API
  1311. problem. When the API problem is not resulting in a corrupt state,
  1312. we now log the error instead of terminating the session. All other
  1313. cases now use an exception that implements WException. This does
  1314. not affect situations where a std::exception was advertised in the
  1315. API.
  1316. </dd>
  1317. <dt>
  1318. <a href="classWt_1_1WIOService.html">WIOService</a>
  1319. </dt>
  1320. <dd>
  1321. <div>
  1322. Previously, boost::asio was used only in the built-in httpd as a
  1323. portable asynchronous I/O reactor implementation. We have now
  1324. moved this into the Wt library itself, where it is now used
  1325. instead of a dedicated thread pool for dispatching requests (and
  1326. other server events), and where it is also used for asynchronous
  1327. I/O by e.g. the Http::Client.
  1328. </div>
  1329. <div>
  1330. The WIOService specializes a boost::asio::service, and integrates
  1331. the thread pool that runs the service.
  1332. </div>
  1333. </dd>
  1334. <dt>
  1335. <a href="classWt_1_1WStringStream.html">WStringStream</a>
  1336. </dt>
  1337. <dd>
  1338. This is a utility class that we have used since long in Wt. It is
  1339. a more efficient replacement for std::stringstream, with mostly a
  1340. compatible API (at least for our purposes). For our purposes it is
  1341. typically a factor of two or more faster.
  1342. </dd>
  1343. <dt>
  1344. <a href="classWt_1_1Http_1_1Client.html">Http::Client</a>,
  1345. <a href="classWt_1_1Http_1_1Message.html">Http::Message</a>
  1346. </dt>
  1347. <dd>
  1348. <div>We have added an implementation of a Http(s) client. The client
  1349. is intended for consuming web services in Wt, and handles GET or
  1350. POST requests. It is not suitable (yet) for large responses, since
  1351. it buffers the entire response internally.</div>
  1352. <div>The client uses asynchronous I/O, using the WIOService that is
  1353. found in the current WServer instance.</div>
  1354. </dd>
  1355. <dt>
  1356. <a href="classWt_1_1Dbo_1_1backend_1_1Firebird.html">Dbo::Firebird</a>
  1357. </dt>
  1358. <dd>
  1359. <div>Lukasz Matuszewski contributed a Firebird backend
  1360. implementation, thanks !</div>
  1361. </dd>
  1362. </dl>
  1363. <h3>C) Main improvements:</h3>
  1364. <dl>
  1365. <dt>
  1366. <a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>
  1367. </dt>
  1368. <dd>
  1369. Added a setHeaderWordWrap() method which configures header text
  1370. word wrapping, and changed setHeaderAlignemnt() so that it now
  1371. allows to change both the horizontal and vertical alignment. This
  1372. replaces the previously interwoven API for both features using the
  1373. multiLine parameter in setHeaderHeight(), which has been
  1374. deprecated. The rendering of the header items has been
  1375. reimplemented, simplified, and cleaned up in the process, avoiding
  1376. rendering problems on IE browsers.
  1377. </dd>
  1378. <dt>
  1379. <a href="classWt_1_1WApplication.html">WApplication</a>
  1380. </dt>
  1381. <dd>
  1382. Two new methods, deferRendering() and resumeRendering() can be
  1383. used to defer the rendering phase in response to the current
  1384. event-loop request. This is useful for situations where you are
  1385. waiting for an asynchronous operation to complete, but want to
  1386. handle this synchronously in the user-interface (i.e. blocking the
  1387. interface until the operation completes). While this is not a good
  1388. idea in general, it may be useful if you can guarantee that the
  1389. event will arrive within an acceptible time (e.g. 1 second). This
  1390. effectively stalls the response to the current request, but avoids
  1391. blocking threads in the process.
  1392. </dd>
  1393. <dt>
  1394. <a href="classWt_1_1WDialog.html">WDialog</a>
  1395. </dt>
  1396. <dd>
  1397. Added setClosable(), which adds a close icon into the title bar.
  1398. </dd>
  1399. <dt>
  1400. <a href="classWt_1_1WFormWidget.html">WFormWidget</a>
  1401. </dt>
  1402. <dd>
  1403. We have cleaned up the use of exceptions within Wt. We have
  1404. converted numerous cases where an exception used to be thrown to
  1405. error logging, if the exception was thrown to indicate an API
  1406. problem. When the API problem is not resulting in a corrupt state,
  1407. we now log the error instead of terminating the session. All other
  1408. cases now use an exception that implements WException. This does
  1409. not affect situations where a std::exception was advertised in the
  1410. API.
  1411. </dd>
  1412. <dt>
  1413. <a href="classWt_1_1WLogger.html">WLogger</a>
  1414. </dt>
  1415. <dd>
  1416. <div>
  1417. We have reorganized the logging within Wt. Internally, a number
  1418. of macros are now used for logging, with as default
  1419. implementation our own (simple) logger, but which can be
  1420. redefined to use instead another logging framework of your
  1421. choice, as some have rightfully requested.
  1422. </div>
  1423. <div>
  1424. But we've also improved our logger so that it now can be
  1425. configured to filter only certain information, based on type and
  1426. scope. This is mostly useful for debuggin and development of Wt
  1427. itself, since it allows us to switch on debugging output, in a
  1428. fine-grained way, in a debug build.
  1429. </div>
  1430. <div>Finally, a new global function has been added (Wt::log()) which
  1431. selects an appropriate logger for logging and is more convenient
  1432. than WApplication::log() which required an application instance.
  1433. </div>
  1434. </dd>
  1435. <dt>
  1436. <a href="classWt_1_1WTemplate.html">WTemplate</a>
  1437. </dt>
  1438. <dd>
  1439. <div>Arguments to bound functions are now parsed and passed to
  1440. the resolveString() methods.</div>
  1441. <div>Two new constructs have been added: conditions and
  1442. functions. Conditions allow certain parts of a template to be
  1443. skipped or included based on a bound condition. Functions are
  1444. useful to automatically resolve certain variables, two built-in
  1445. functions are implemented: one to resolve strings in a message
  1446. resource bundle ("tr"), and another to resolve the id of a bound
  1447. widget ("id").
  1448. </div>
  1449. </dd>
  1450. <dt>
  1451. <a href="classWt_1_1Dbo_1_1collection.html">Dbo::collection&lt;T&gt;</a>
  1452. </dt>
  1453. <dd>
  1454. We've added front() methods that return the first element.
  1455. </dd>
  1456. <dt>
  1457. Built-in httpd connector
  1458. </dt>
  1459. <dd>
  1460. We have expanded the WebSockets implementation to cover newer
  1461. versions of the WebSockets protocol (draft): next to 00, we now
  1462. also support 07, 08 and 13 protocols (with draft-17 semantics).
  1463. </dd>
  1464. <dt>
  1465. Configuration
  1466. </dt>
  1467. <dd>
  1468. On UNIX-like platforms, and using the built-in httpd connector,
  1469. SIGHUP is caught in the WServer::waitForShutdown() utility function,
  1470. and the configuration file (wt_config.xml) is reread.
  1471. </dd>
  1472. <dt>
  1473. Several security improvements
  1474. </dt>
  1475. <dd>
  1476. <dl>
  1477. <dt>DoS mitigation</dt>
  1478. <dd>We have added two measures to prevent DoS attacks that try
  1479. to exhaust the server by spawning sessions. This is in
  1480. particular a risk when deploying using the progressive bootstrap
  1481. method, since then a plain HTML session can be spawned with a
  1482. single request.
  1483. <ul>
  1484. <li>Plain sessions may be limited to constitute only a
  1485. fraction of the total number of sessions. This is configured
  1486. using the &lt;plain-ajax-sessions-ratio-limit&gt;
  1487. configuration option.</li>
  1488. <li>Ajax sessions need to confirm their "intelligence" by
  1489. solving a puzzle which requires them to properly parse the
  1490. (ever-changing) JavaScript and HTML.</li>
  1491. </ul>
  1492. </dd>
  1493. <dt>Compromised session ID risk reduction</dt>
  1494. <dd>
  1495. A compromised session ID no longer can be used to hijack that
  1496. session.
  1497. <ul>
  1498. <li>A full page refresh (using the session ID to rerender
  1499. the current application state) is no longer allowed unless
  1500. both client IP address and user-agent are unchanged. To
  1501. still enable page refresh in this situation, you may
  1502. configure the use of a cookie which can be used to confirm
  1503. the original browser (although that cookie will not be
  1504. used for session tracking), using the
  1505. &lt;session-id-cookie&gt; setting.</li>
  1506. <li>
  1507. The session ID cannot be used to POST events to an Ajax
  1508. session, since these require proof of other ever-changing
  1509. context specific information, notably a pageId and ackId.
  1510. </li>
  1511. </ul>
  1512. </dd>
  1513. </dl>
  1514. </dd>
  1515. </dl>
  1516. <h3>D) Non-backwards compatible changes</h3>
  1517. <dl>
  1518. <dt>
  1519. Build options
  1520. </dt>
  1521. <dd>The HTTP_WITH_SSL option has been removed, and is now replaced
  1522. by WT_WITH_SSL -- OpenSSL is now a dependency of Wt inherited by
  1523. the httpd.
  1524. </dd>
  1525. <dt>
  1526. <a href="classWt_1_1WValidator.html">WValidator</a>
  1527. </dt>
  1528. <dd>
  1529. We broke the validate() method, to return a new WValidator::Result
  1530. instead of WValidator::State. The main improvement is that the
  1531. validation may also return a text which contains information on
  1532. why validation failed. This makes the API consistent with the
  1533. client-side API, and obviously much more useful. It will break
  1534. existing application that call validate() or have reimplemented
  1535. validate() in a custom validation class.
  1536. </dd>
  1537. <dt>
  1538. <a href="classWt_1_1Test_1_1WTestEnvironment.html">WTestEnvironment</a>
  1539. </dt>
  1540. <dd>
  1541. This class has moved to a pseudo-connector library
  1542. (libwttest). This was needed to be able to use asynchronous I/O
  1543. (such as Http::Client) in test cases, which rely on a WIOService
  1544. fournished by a WServer instance.
  1545. </dd>
  1546. </dl>
  1547. <hr>
  1548. <h2>Release 3.1.11 (September 23, 2011)</h2>
  1549. <p>
  1550. This release
  1551. contains <a href="http://redmine.emweb.be/versions/show/12">many
  1552. bug fixes</a> and a few new features.
  1553. </p>
  1554. <h3>A) New classes:</h3>
  1555. <dl>
  1556. <dt>
  1557. <a href="classWt_1_1WLink.html">WLink</a>
  1558. </dt>
  1559. <dd>
  1560. This class unifies the different link types used in Wt, in a
  1561. single value class. Depending on the context, a link may refer to
  1562. a URL, a resource, or an internal path. We've updated the API
  1563. throughout to replace the function overloads for these different
  1564. cases with a single usage of WLink, simplifying the API (but don't
  1565. worry, we left the old methods, albeit depricated).
  1566. </dd>
  1567. <dt>
  1568. <a href="classWt_1_1WMediaPlayer.html">WMediaPlayer</a>
  1569. </dt>
  1570. <dd>
  1571. A media player has been added which provides a unified framework
  1572. for playing audio and video, and which deals with cross-browser
  1573. issues (chosing a suitable implementation per browser). We've also
  1574. renamed WHTML5Audio, WHTML5Video, and WHTML5Media to WAudio,
  1575. WVideo and WAbstractMedia respectively (since well, everything
  1576. will eventually be HTML5, no ?).
  1577. </dd>
  1578. </dl>
  1579. <h3>B) Main improvements:</h3>
  1580. <dl>
  1581. <dt>
  1582. <a href="classWt_1_1WResource.html">WResource</a>,
  1583. <a href="classWt_1_1Http_1_1ResponseContinuation.html">Http::ResponseContinuation</a>
  1584. </dt>
  1585. <dd>
  1586. Currently, you can already stream the output of a big resource in
  1587. little chunks, using a continuation to resume sending the next
  1588. part. We've now added API methods
  1589. (WResourceContinuation::waitForMoreData() and
  1590. WResource::haveMoreData()) to allow a resource to suspend its
  1591. response because it is currently lacking more data, to continue
  1592. later when new data is available (and without tying up a thread).
  1593. </dd>
  1594. <dt>
  1595. <a href="classWt_1_1WDialog.html">WDialog</a>
  1596. </dt>
  1597. <dd>
  1598. Added an option setResizable() which puts a resize handle in the
  1599. bottom right corner.
  1600. </dd>
  1601. <dt>
  1602. <a href="classWt_1_1WPopupMenu.html">WPopupMenu</a>,
  1603. <a href="classWt_1_1WPopupMenuItem.html">WPopupMenuItem</a>
  1604. </dt>
  1605. <dd>
  1606. Added a triggered() signal, and an option to automatically cancel
  1607. the popup menu when the mouse leaves the menu (after a
  1608. delay). We've also added the possibility to link a popup menu item
  1609. with a WLink, and the option to make the item which has a submenu
  1610. item also itself selectable.
  1611. </dd>
  1612. <dt>
  1613. Dbo::Session
  1614. </dt>
  1615. <dd>
  1616. The load() method has an additional, optional parameter, to force
  1617. rereading the copy from the database.
  1618. </dd>
  1619. <dt>
  1620. Dbo::collection&lt;C&gt;
  1621. </dt>
  1622. <dd>
  1623. Added a count() method which uses a query to determine whether the
  1624. collection contains an element.
  1625. </dd>
  1626. <dt>
  1627. Test::WTestEnvironment
  1628. </dt>
  1629. <dd>
  1630. Added dialogExecuted() and popupExecuted() methods which allow to
  1631. interact with a reentrant eventloop from a test plan.
  1632. </dd>
  1633. </dl>
  1634. <h3>C) Non-backwards compatible changes</h3>
  1635. The item data roles InternalPathRole and UrlRole have been removed,
  1636. and replaced by a LinkRole (which contains a WLink value instead).
  1637. <h3>D) Deprecated API</h3>
  1638. With the introduction of WLink, the following API is being deprecated
  1639. (although it can be argued that some of these may be kept for
  1640. convenience):
  1641. <ul>
  1642. <li>
  1643. WAbstractArea::setRef(): use WAbstractArea::setLink() instead.
  1644. </li>
  1645. <li>
  1646. WAbstractArea::ref(): use WAbstractArea::link() instead.
  1647. </li>
  1648. <li>
  1649. WAbstractArea::setResource(): use WAbstractArea::setLink() instead.
  1650. </li>
  1651. <li>
  1652. WAbstractArea::resource(): use WAbstractArea::link() instead.
  1653. </li>
  1654. <li>
  1655. WAnchor::setRef(): use WAnchor::setLink() instead.
  1656. </li>
  1657. <li>
  1658. WAnchor::ref(): use WAnchor::link() instead.
  1659. </li>
  1660. <li>
  1661. WAnchor::setResource(): use WAnchor::setLink() instead.
  1662. </li>
  1663. <li>
  1664. WAnchor::resource(): use WAnchor::link() instead.
  1665. </li>
  1666. <li>
  1667. WAnchor::setRefInternalPath(): use WAnchor::setLink() instead.
  1668. </li>
  1669. <li>
  1670. WImage::setImageRef(): use WImage::setImageLink() instead.
  1671. </li>
  1672. <li>
  1673. WImage::imageRef(): use WImage::imageLink() instead.
  1674. </li>
  1675. <li>
  1676. WImage::setResource(): use WImage::setLink() instead.
  1677. </li>
  1678. <li>
  1679. WImage::resource(): use WImage::link() instead.
  1680. </li>
  1681. <li>
  1682. WStandardItem::setInternalPath(): use WStandardItem::setLink() instead.
  1683. </li>
  1684. <li>
  1685. WStandardItem::internalPath(): use WStandardItem::link() instead.
  1686. </li>
  1687. <li>
  1688. WStandardItem::setUrl(): use WStandardItem::setLink() instead.
  1689. </li>
  1690. <li>
  1691. WStandardItem::url(): use WStandardItem::link() instead.
  1692. </li>
  1693. </ul>
  1694. The following classes have been renamed, and the old name is being
  1695. deprecated:
  1696. <ul>
  1697. <li>
  1698. WHTMLMedia is now WAbstractMedia.
  1699. </li>
  1700. <li>
  1701. WHTMLVideo is now WVideo
  1702. </li>
  1703. <li>
  1704. WHTMLAudio is now WAudio
  1705. </li>
  1706. </ul>
  1707. <hr>
  1708. <h2>Release 3.1.10 (July 8, 2011)</h2>
  1709. <p>
  1710. This release contains a mix of new features and bug fixes
  1711. </p>
  1712. <h3>A) New classes:</h3>
  1713. <dl>
  1714. <dt>
  1715. <a href="classWt_1_1WAnimation.html">WAnimation</a>
  1716. </dt>
  1717. <dd>
  1718. We have added support for animations to show or hide widgets (used
  1719. in <a href="classWt_1_1WWidget.html#a66bdda41220267a8c7ff9865996e2675">WWidget::setHidden()</a>,
  1720. and <a href="classWt_1_1WStackedWidget.html">WStackedWidget</a>). These
  1721. animations will only be used when the browser supports CSS3
  1722. animations (at the moment of writing that includes latest Firefox,
  1723. Chrome and Safari releases).
  1724. </dd>
  1725. <dt>
  1726. <a href="classWt_1_1WStreamResource.html">WStreamResource</a>
  1727. </dt>
  1728. <dd>
  1729. Dmitriy Igrishin factored this out of the WFileResource since most
  1730. of its functionality (continuations, range support) could be
  1731. generalized to streaming from a std::istream.
  1732. </dd>
  1733. </dl>
  1734. <h3>B) Main improvements:</h3>
  1735. <dl>
  1736. <dt>
  1737. Allowing multiple WServer instances.
  1738. </dt>
  1739. <dd>
  1740. Apparently for no good reasons at all, some singletons were still
  1741. around which prevented you from instantiating
  1742. multiple <a href="classWt_1_1WServer">application servers</a>. Now
  1743. you can (but only using the built-in httpd) instantiate multiple
  1744. servers side by side in the same process, which may server the
  1745. same or different web applications over different ports. A feature
  1746. example (<tt>multiple_servers</tt>) shows how that works.
  1747. </dd>
  1748. <dt>
  1749. Internal path encoding in WTemplate and WText</a>
  1750. </dt>
  1751. <dd>
  1752. <div>
  1753. The
  1754. new <a href="classWt_1_1WTemplate.html#aeee888e560c519ac0e33bfc1ebb315e2">setInternalPathEncoding()</a>
  1755. method will, if needed, enable reencoding of &lt;a&gt; anchors
  1756. which reference internal paths consistent with how in the
  1757. current session internal paths need to be dealt with (which
  1758. depends on whether the browser supports Ajax and HTML5 History).
  1759. </div>
  1760. <div>
  1761. Since this requires an additional XML parsing step (but the
  1762. rapidxml parser that is used is ... rapid !), it is off by
  1763. default.
  1764. </div>
  1765. </dd>
  1766. <dt>
  1767. <a href="classWt_1_1WWApplication.html">WApplication::findWidget()</a>
  1768. </dt>
  1769. <dd>
  1770. Like WWidget::findWidget(), but on the whole application,
  1771. including widgets outside the WApplication::root().
  1772. </dd>
  1773. <dt>
  1774. <a href="classWt_1_1WWApplication.html">WApplication::changeSessionId()</a>
  1775. </dt>
  1776. <dd>
  1777. Generates a new session ID for the application. This is useful to prevent
  1778. session fixation attacks by changing the session ID when a user has
  1779. authenticated successfully.
  1780. </dd>
  1781. <dt>
  1782. <a href="classWt_1_1WResource.html">WResource::setDispositionType()</a>
  1783. </dt>
  1784. <dd>
  1785. This method allows to specify how the browser should preferably
  1786. show a (non-HTML) resource.
  1787. </dd>
  1788. <dt>
  1789. <a href="classWt_1_1WTable.html">WTable</a>
  1790. </dt>
  1791. <dd>
  1792. Methods were added
  1793. to <a href="classWt_1_1WTable.html#a239d85781509ff321eb964af042bcf57">move
  1794. a row</a>
  1795. or <a href="classWt_1_1WTable.html#a0670b90a05a6c0176c773bf8766a5bf2">a
  1796. column</a>. In addition we added methods
  1797. to <a href="classWt_1_1WTableRow.html">WTableRow</a>
  1798. and <a href="classWt_1_1WTableColumn.html">WTableColumn</a> for
  1799. accessing cells in the given row or column.
  1800. </dd>
  1801. <dt>
  1802. <a href="classWt_1_1WTextEdit.html">WTextEdit</a>
  1803. </dt>
  1804. <dd>
  1805. Various improvements to allow more flexible access to TinyMCE
  1806. settings on a per-instance basis.
  1807. </dd>
  1808. <dt>
  1809. <a href="classWt_1_1WWidget.html">WWidget::setToolTip()</a>
  1810. </dt>
  1811. <dd>
  1812. An additional argument was added which may specify the use of
  1813. XHTML tooltips, which are implemented using a &lt;div&gt;.
  1814. </dd>
  1815. <dt>
  1816. Dbo::collection&lt;T&gt;
  1817. </dt>
  1818. <dd>
  1819. Make insert() and erase() also work for a collection involved in a
  1820. 1-N relation
  1821. </dd>
  1822. <dt>
  1823. Dbo::ptr&lt;C&gt;
  1824. </dt>
  1825. <dd>
  1826. Improved modify() behaviour returns a proxy object which marks the
  1827. the object dirty also from its destructor, avoiding situations where
  1828. the transaction is flushed during a modification and remainig changes
  1829. are forgotten.
  1830. </dd>
  1831. <dt>
  1832. Dbo::Dbo&lt;C&gt;
  1833. </dt>
  1834. <dd>
  1835. Added setDirty() and self() methods.
  1836. </dd>
  1837. <dt>
  1838. Dbo::backend::Sqlite3
  1839. </dt>
  1840. <dd>
  1841. The packaged sqlite3 version was bumped from 3.6.20 to 3.7.6
  1842. </dd>
  1843. </dl>
  1844. <h3>C) Non-backwwards compatible changes</h3>
  1845. <dl>
  1846. <dt>The signature of the virtual method WWidget::setHidden() has changed.</dt>
  1847. <dd>
  1848. Probably the biggest breaking change since long, this was needed
  1849. to add support for animations. This will break existing code which
  1850. specializes the WWidget::setHidden() method. This code should be
  1851. updated to pass the WAnimation object.
  1852. </dd>
  1853. </dl>
  1854. <hr>
  1855. <h2>Release 3.1.9 (April 7, 2011)</h2>
  1856. <p>
  1857. This release contains mostly bug fixes and quality improvements.
  1858. </p>
  1859. <h3>A) New classes:</h3>
  1860. <dl>
  1861. <dt>
  1862. <a href="classWt_1_1WAbstractSpinBox.html">WAbstractSpinBox</a>,
  1863. <a href="classWt_1_1WDoubleSpinBox.html">WDoubleSpinBox</a>
  1864. </dt>
  1865. <dd>
  1866. Refactored and reimplemented the spinbox control into an integer
  1867. and floating point version, which may be implemented either using
  1868. a native HTML5 element or a portable Wt implementation.
  1869. </dd>
  1870. </dl>
  1871. <h3>B) Main new features in existing classes:</h3>
  1872. <dl>
  1873. <dt>
  1874. Internal path handling: HTML5 History API
  1875. </dt>
  1876. <dd>
  1877. <div>
  1878. When the browser supports the HTML5 History API, URLs are now the
  1879. same for plain HTML and Ajax-enabled session (i.e. without the '#'
  1880. trick). This can improve load time and improves the
  1881. user-experience.
  1882. </div>
  1883. <div>
  1884. To avoid problems of resolving resources with relative URLs, a
  1885. new property 'baseURL' can be used (that can be configured in
  1886. wt_config.xml), which allows all relative URLs be resolved from
  1887. the same location.
  1888. </div>
  1889. </dd>
  1890. <dt>
  1891. Internal path handling: no ugly internal paths ('?_=/path')
  1892. </dt>
  1893. <dd>
  1894. The configuration option (--docroot) for the built-in
  1895. httpd allows to specify folders with static paths and when doing
  1896. so, all other requests are forwarded to the application, which in
  1897. turn does no longer need to rely on the ugly '?_=' query parameter
  1898. to encode its internal paths.
  1899. </dd>
  1900. <dt>
  1901. <a href="classWt_1_1WPdfImage.html">WPdfImage</a>, <a href="classWt_1_1WRasterImage.html">WRasterImage</a>
  1902. </dt>
  1903. <dd>
  1904. Improved font support: the library can be optionally built to use
  1905. libpango for resolving characters to glyphs. This allows text to
  1906. be rendered using a mix of different fonts that all provide only
  1907. partial coverage for the entire unicode range. Note that for
  1908. WPdfImage, this currently requires use of a libharu fork
  1909. (https://github.com/kdeforche/libharu/tree/)
  1910. </dd>
  1911. <dt>
  1912. <a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>,
  1913. WTableView and WTreeView
  1914. </dt>
  1915. <dd>
  1916. Implementation of setRowHeaderCount() which fixes the number of
  1917. columns that are used as row headers and remain fixed while
  1918. scrolling horiziontally through the table. This replaces the now
  1919. deprecated setColumn1Fixed() API.
  1920. </dd>
  1921. <dt>
  1922. <a href="classWt_1_1WRasterImage.html">WRasterImage</a>
  1923. </dt>
  1924. <dd>
  1925. Several quality improvements: correct rendering of alpha
  1926. compositing, text rendering by libpango,
  1927. </dd>
  1928. <dt>
  1929. <a href="classWt_1_1WSlider.html">WSlider</a>
  1930. </dt>
  1931. <dd>
  1932. The slider has been reimplemented to allow for using either the
  1933. native HTML5 slider control, or the Wt implementation. The Wt
  1934. implementation can now also be styled through CSS.
  1935. </dd>
  1936. <dt>
  1937. <a href="classWt_1_1WServer.html#abca6890dab44d87bd3af64705ac072d3">WRun()</a>,
  1938. <a href="classWt_1_1WServer.html#a84f84652ccb139850adcf5ea75f50fa5">WServer::addEntryPoint()</a>
  1939. </dt>
  1940. <dd>
  1941. The callback function is now a boost::function<> object, allowing
  1942. you to bind other variables into the callback function.
  1943. </dd>
  1944. <dt>
  1945. <a href="classWt_1_1WServer.html#a2894484a9661d728dc9aa60ba79bb570">WServer::post()</a>
  1946. </dt>
  1947. <dd>
  1948. A safe method to post events to a session, and a useful
  1949. alternative to WApplication::UpdateLock. The simplechat and
  1950. codeview examples were converted to illustrate this method rather
  1951. than the (dead-lock prone) WApplication::UpdateLock approach.
  1952. </dd>
  1953. <dt>
  1954. <a href="classWt_1_1WString.html#abcff7d3d30972762bd5d9279dc903a36">WString::trn()</a>
  1955. </dt>
  1956. <dd>
  1957. Implementation of plural string resolution, with locale-dependent
  1958. rules. The implementation provided
  1959. by <a href="classWt_1_1WMessageResourceBundle.html">WMessageResourceBundle</a>
  1960. allows the same kind of expressions as GNU ngettext().
  1961. </dd>
  1962. <dt>
  1963. <a href="classWt_1_1Chart_1_1WAxis.html#ab36cb584a0aa8bdcc1c3212a9304e6cd">Chart::WAxis::setResolution()</a>
  1964. </dt>
  1965. <dd>
  1966. Allows to specify the minimum chart axis resolution (contributed by Gaetano Mendola).
  1967. </dd>
  1968. <dt>
  1969. <a href="classWt_1_1Dbo_1_1Transaction.html">Dbo::Transaction</a>
  1970. </dt>
  1971. <dd>
  1972. Fixed an issue with internal inconsistencies after transaction rollback.
  1973. </dd>
  1974. </dl>
  1975. <h3>C) Non-backwwards compatible changes</h3>
  1976. <dl>
  1977. <dt>Changed i18n keys for <tt>Wt.WDate.Mon-Sun</tt>
  1978. and <tt>Wt.Date.Jan-Dec</tt></dt>
  1979. <dd>
  1980. We were pointed out the fact that the built-in i18n keys for WDate
  1981. month names had a collision for the month 'May', which had the
  1982. same key for the abbreviated 3-letter variant as the full length
  1983. variant. Therefore in this release we reformatted the abbreviated
  1984. 3-letter variant keys to <tt>Wt.WDate.3.Mon-Sun</tt>
  1985. and <tt>Wt.WDate.3.Jan-Dec</tt>. You will need to update your own
  1986. languages copies of these (or better, contribute them and we'll
  1987. maintain them for you!).
  1988. </dd>
  1989. </dl>
  1990. <h3>D) Android and iPad/iPhone targets</h3>
  1991. <p>This release contains initial work on supporting Android and
  1992. iPad/iPhone as targets for deploying Wt applications within a webkit
  1993. view widget.</p>
  1994. <p>For iPad/iPhone, we added a script that builds Wt as an OSX Framework
  1995. which may be used in XCode to build iOS applications.</p>
  1996. <p>For Android, we added support for building the library and examples as
  1997. shared objects which are packaged together with a small Java project
  1998. which instantiates a WebView, into standalone APK files.</p>
  1999. <p>This is ongoing work. We need to improve support in Wt for Mobile
  2000. Webkit to make the applications look and behave more as native
  2001. applications on these devices.</p>
  2002. <hr>
  2003. <h2>Release 3.1.8 (Feb 4, 2011)</h2>
  2004. <p>
  2005. This release contains mostly bug fixes, quality improvements,
  2006. and a few new features.
  2007. </p>
  2008. <h3>A) New classes:</h3>
  2009. <dl>
  2010. <dt><a href="classWt_1_1WFontMetrics.html">WFontMetrics</a></dt>
  2011. <dd>
  2012. A font metrics class. Font metrics are only available for
  2013. WPdfImage, and an implementation is planned for WRasterImage.
  2014. </dd>
  2015. <dt><a href="classWt_1_1Render_1_1WTextRenderer.html">Render::WTextRenderer</a>,
  2016. <a href="classWt_1_1Render_1_1WPdfRenderer.html">Render::WPdfRenderer</a></dt>
  2017. <dd>
  2018. A renderer class for a subset of XHTML, useful for e.g.~generating
  2019. PDF reports.
  2020. </dd>
  2021. </dl>
  2022. <h3>B) Main new features in existing classes:</h3>
  2023. <dl>
  2024. <dt>
  2025. <a href="classWt_1_1WAbstractItemView.html#ad11215811b4de66f3d3c4267b694fe38">WAbstractItemView::setHeaderItemDelegate()</a>
  2026. </dt>
  2027. <dd>
  2028. Rendering of header cells is now also delegated and can be customized.
  2029. </dd>
  2030. <dt>
  2031. <a href="classWt_1_1WAbstractItemView.html#a027a8ad4967a0e269bdabbffca15f489">WAbstractItemView::scrollTo()</a>
  2032. </dt>
  2033. <dd>
  2034. Scroll to a particular item.
  2035. </dd>
  2036. <dt>
  2037. <a href="classWt_1_1WApplication.html#a44c5f0398b5539269be3961b26e95b08">WApplication::setLayoutDirection()</a>
  2038. </dt>
  2039. <dd>
  2040. Added support for Right-To-Left (mirrored) layouts, typically used
  2041. with some middle-Eastern languages. In addition to HTML's built-in
  2042. support for RTL directionality, layout managers, tables and MVC
  2043. tree/table views render their columns in the opposite order.
  2044. </dd>
  2045. <dt>
  2046. <a href="classWt_1_1WBoxLayout.html">WBoxLayout, WGridLayout, WBorderLayout</a>
  2047. </dt>
  2048. <dd>
  2049. Empty layout items do longer create padding, and thus padding
  2050. collapses around empty items (both horizontally and vertically).
  2051. </dd>
  2052. <dt>
  2053. <a href="classWt_1_1WEvent.html">WEvent::eventType()</a>
  2054. </dt>
  2055. <dd>
  2056. Information on the event type may be used during WApplication::notify()
  2057. for e.g. detecting user activity.
  2058. </dd>
  2059. <dt>
  2060. <a href="classWt_1_1WGoogleMap.html">WGoogleMap</a>
  2061. </dt>
  2062. <dd>
  2063. Added support for Google API version 3, alongside version 2.
  2064. </dd>
  2065. <dt>
  2066. <a href="classWt_1_1WPdfImage.html">WPdfImage</a>
  2067. </dt>
  2068. <dd>
  2069. Added support true type font loading, a UTF8 patch for libharu is
  2070. pending to enable full unicode support text rendering.
  2071. </dd>
  2072. <dt>
  2073. <a href="classWt_1_1WWidget.html#afc4bfcc92fa39010cac8775f3332dfa5">WWidget::setWidth()</a>,
  2074. <a href="classWt_1_1WWidget.html#a7d82ee32496743fdd28b30461f95d5ec">WWidget::setHeight()</a>
  2075. </dt>
  2076. <dd>
  2077. Convenience methods for resize() for only width or height.
  2078. </dd>
  2079. <dt>
  2080. <a href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a>
  2081. </dt>
  2082. <dd>
  2083. A number of methods to customize the location and look of the legend.
  2084. </dd>
  2085. <dt>
  2086. <a href="classWt_1_1Chart_1_1WDataSeries.html#a9361e12e94699f59090ae8ac3a4921df">Chart::WDataSeries::setXSeriesColumn()</a>
  2087. </dt>
  2088. <dd>
  2089. Allow use of a specific X series for each data series in scatter plots.
  2090. </dd>
  2091. <dt>
  2092. <a href="group__dbo.html#ga0f2f0c37d44f27e151b8f12412240731">Dbo::belongsTo()</a>, <a href="group__dbo.html#ga0d0cbc70dcfebc659ea1662e9327c90c">Dbo::hasMany()</a>
  2093. </dt>
  2094. <dd>
  2095. Support for foreign key constraints (NotNull, OnDeleteCascade, etc...).
  2096. </dd>
  2097. <dt>
  2098. <a href="group__dbo.html#ga0f2f0c37d44f27e151b8f12412240731">Dbo::Session::rereadAll()</a>
  2099. </dt>
  2100. <dd>
  2101. Can be optionally given a single table name to reread (discard) all object
  2102. data from a single class/table.
  2103. </dd>
  2104. <dt>
  2105. <a href="structWt_1_1Dbo_1_1sql__value__traits.html">Dbo::sql_value_traits&lt;bool&gt;, Dbo::sql_value_traits&lt;long&gt;</a>
  2106. </dt>
  2107. <dd>
  2108. Added mappings for C++ <tt>bool</tt> and <tt>long</tt> types.
  2109. </dd>
  2110. </dl>
  2111. <h3>C) API and other changes:</h3>
  2112. <dl>
  2113. <dt>
  2114. CORS (Cross-Origin Resource Sharing)
  2115. </dt>
  2116. <dd>
  2117. A communication method between browser and server is now chosen
  2118. based on the needs (same origin or cross-origin), and based on
  2119. browser support. Cross-Origin requests are now supported for both
  2120. Ajax and WebSockets, and are are chosen if available and needed,
  2121. reverting to dynamic script-tags otherwise.<br/>
  2122. The WApplication::setAjaxMethod() has no effect anymore, and has
  2123. been deprecated.
  2124. </dd>
  2125. <dt>
  2126. Bootstrap process has changed.
  2127. </dt>
  2128. <dd>
  2129. While tracking bootstrapping problems on IE8 (resulting in a blank
  2130. page instead of a shiny app), we not only found a good workaround
  2131. for that, but also found a way to implement the default bootstrap
  2132. mode so that the stylesheets are applied before the application is
  2133. rendered. This solves the annoying flicker you experienced with
  2134. the default bootstrap mode, and also allows us to remove a number
  2135. of workarounds for IE. As a result of various cleanups, more CSS
  2136. stylesheet rules have been pushed out to the external wt.css
  2137. (theme) stylesheet. If you've created your own theme, you will
  2138. need to take note.
  2139. </dd>
  2140. <dt>
  2141. <a href="group__painting.html#gaf67a889bc5e9f8ab3a59fe58b0fa2128">Wt::BrushStyle</a>
  2142. </dt>
  2143. <dd>
  2144. Wt::WBrushstyle has been renamed to Wt::BrushStyle. This makes it
  2145. consistent with the naming conventions of other enums. Sorry, our
  2146. mistake !
  2147. </dd>
  2148. </dl>
  2149. <hr />
  2150. <h2>Release 3.1.7 (Nov 26, 2010)</h2>
  2151. <p>
  2152. This release contains mostly bug fixes, quality improvements,
  2153. and a few new features.
  2154. </p>
  2155. <p>
  2156. Note: the package was updated (3.1.7a) on Nov 30 to fix a layouting
  2157. regression.
  2158. </p>
  2159. <h3>A) New classes:</h3>
  2160. <dl>
  2161. <dt><a href="classWt_1_1WGLWidget.html">WGLWidget</a></dt>
  2162. <dd>
  2163. A preview of WebGL support in Wt (work in progress).
  2164. </dd>
  2165. </dl>
  2166. <h3>B) Main new features in existing classes:</h3>
  2167. <dl>
  2168. <dt>
  2169. <a href="classWt_1_1WAbstractItemView.html#a120156dc59eaf3608916b679d937c5b8">WAbstractItemView</a>
  2170. </dt>
  2171. <dd>Added API for hiding columns.</dd>
  2172. <dt>
  2173. <a
  2174. href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a>,
  2175. <a
  2176. href="classWt_1_1Chart_1_1WCartesianChart.html">WPieChart</a>
  2177. </dt>
  2178. <dd>
  2179. Added support for ToolTipRole data, using WAbstractArea interactive areas.
  2180. </dd>
  2181. <dt>
  2182. <a href="classWt_1_1Dbo_1_1Session.html#ad59da4e078a4e6532da698425193bbdb">Dbo::Session::rereadAll()</a>
  2183. </dt>
  2184. <dd>
  2185. Reread all transient objects, as a catch-all solution to stale
  2186. data (data modified in another session).
  2187. </dd>
  2188. <dt>
  2189. <a href="classWt_1_1WInteractWidget.html#ac7d10a6cae1e23a791b44c0682a3c627">WInteractWidget</a>
  2190. </dt>
  2191. <dd>Added support for touch and gesture events (Mobile webkit).</dd>
  2192. </dl>
  2193. <h3>C) Misc:</h3>
  2194. <dl>
  2195. <dt>
  2196. WebSocket protocol support (experimental)
  2197. </dt>
  2198. <dd>Use of WebSocket for communication between browser and server
  2199. can now be used, by enabling &lt;web-sockets&gt; in the
  2200. configuration file (we're likely to turn this on by default in a
  2201. future version. There is automatic fallback to the current
  2202. XMLHttpRequest based communication if WebSockets are not available
  2203. or communication could not be established. WebSockets is only
  2204. available using the built-in httpd server (which is now also a
  2205. WebSocket server).</dd>
  2206. <dt>
  2207. Build improvements
  2208. </dt>
  2209. <dd>
  2210. <ul>
  2211. <li>Provide a workaround for broken g++ compiler shipped in Ubuntu
  2212. Maverick</li>
  2213. <li>Provide support for building without using
  2214. std::wstring (-DWT_NO_STD_WSTRING) or std::locale
  2215. (-DWT_NO_STD_LOCALE=OFF) support.
  2216. </li>
  2217. </ul>
  2218. </dd>
  2219. </dl>
  2220. <hr />
  2221. <h2>Release 3.1.6 (Oct 29, 2010)</h2>
  2222. <p>
  2223. This release contains a healthy mix of bug fixes, quality improvements,
  2224. and new features. And hopefully no regressions :-)
  2225. </p>
  2226. <h3>A) New classes:</h3>
  2227. <dl>
  2228. <dt><a href="classWt_1_1SyncLock.html">SyncLock&lt;Lock&gt;</a></dt>
  2229. <dd>
  2230. A dead-lock avoidance adaptor for a Boost mutex lock, which provides
  2231. a controlled way of releasing the current application lock.
  2232. </dd>
  2233. <dt><a href="classWt_1_1WProgressBar.html">WProgressBar</a></dt>
  2234. <dd>
  2235. A progress bar, contributed by Thomas Suckow.
  2236. </dd>
  2237. <dt><a href="classWt_1_1WSpinBox.html">WSpinBox</a></dt>
  2238. <dd>
  2239. A spin box.
  2240. </dd>
  2241. <dt><a href="structWt_1_1boost__any__traits.html">boost_any_traits&lt;Type&gt;</a></dt>
  2242. <dd>
  2243. A traits class for customized interpretation of data stored in a
  2244. boost::any. You can register a new type using <a href="group__modelview.html#ga91842a84102ee15d41102ccf0745f4e4">registerType&lt;Type&gt;</a>.
  2245. </dd>
  2246. </dl>
  2247. <h3>B) Main new features in existing classes:</h3>
  2248. <dl>
  2249. <dt>
  2250. Native support for MSIE 9
  2251. </dt>
  2252. <dd>
  2253. MSIE 9 (Beta) is now supported in all its goodness, including support
  2254. for HTML5 canvas and (almost working) support for SVG.
  2255. </dd>
  2256. <dt>
  2257. <a href="classWt_1_1WApplication_1_1UpdateLock.html">
  2258. WApplication::UpdateLock</a>
  2259. </dt>
  2260. <dd>The lock is now a RIAA lock, getUpdateLock() has been deprecated.
  2261. The lock needs also to be tested against validity (using operator bool()):
  2262. when invalid the session that it is trying to lock is being destroyed.</dd>
  2263. <dt>
  2264. <a href="classWt_1_1WApplication.html#a506978cfb884af4bc6ffd5a5bc8476d6">WApplication::setConfirmCloseMessage()</a>
  2265. </dt>
  2266. <dd>Provide the user with a message to confirm navigating away from the
  2267. application.</dd>
  2268. <dt>
  2269. <a href="classWt_1_1WApplication.html#a9a4048e01b69a536e35f47eb2a59a69b">WApplication::unload()</a>
  2270. </dt>
  2271. <dd>Rather then waiting for the session to expire, an application
  2272. that is navigated away iis now notified of this and will by
  2273. default <tt>quit()</tt>.</dd>
  2274. <dt>
  2275. <a href="classWt_1_1WApplication.html#a149412d829d104621c445bc10604be53">WApplication::addMetaHeader()</a>
  2276. </dt>
  2277. <dd>Can now be used to specify "http-equiv" meta headers too.</dd>
  2278. <dt>
  2279. <a href="classWt_1_1WDatePicker.html#acda30d9035692895a2bb94090babc073">WDatePicker::changed()</a>
  2280. </dt>
  2281. <dd>I wonder how we ever did without.
  2282. </dd>
  2283. <dt><a href="classWt_1_1WAbstractArea.html#a3dbe39c26769a63e4bf63020e31e9f22">WAbstractArea::mouseWheel()</a>,
  2284. <a href="classWt_1_1WInteractWidget.html#a656a0e4d5af72af0190d84dedf0093c6">WInteractWidget::mouseWheel()</a>,
  2285. <a href="classWt_1_1WMouseEvent.html#a4354738e0bce7e57764a465f5e19895d">WMouseEvent::wheelDelta()</a></dt>
  2286. <dd>
  2287. Added mouseWheel() event.
  2288. </dd>
  2289. <dt><a href="classWt_1_1WFileUpload.html">WFileUpload</a></dt>
  2290. <dd>
  2291. Added support for the simultaneous upload of multiple files (HTML5
  2292. "multiple") attribute and showing a progress bar to show upload
  2293. progress.
  2294. </dd>
  2295. <dt><a href="classWt_1_1WFormWidget.html">WFormWidget::hasFocus()</a></dt>
  2296. <dd>
  2297. Returns whether the widget currently has the keyboard focus.
  2298. </dd>
  2299. <dt><a href="classWt_1_1WHTML5Media.html">WHTML5Media</a></dt>
  2300. <dd>
  2301. Added events to catch play, pause, play-back progress and volume
  2302. changes.
  2303. </dd>
  2304. <dt><a href="classWt_1_1WLineEdit.html">WLineEdit</a>, <a href="classWt_1_1WTextArea.html">WTextArea</a></dt>
  2305. <dd>
  2306. Added <tt>currentPosition()</tt>, <tt>selectionStart()</tt>,
  2307. <tt>selectedText()</tt>, and <tt>hasSelectedText()</tt> methods to retrieve
  2308. the current cursor position and selection.
  2309. </dd>
  2310. <dt><a href="classWt_1_1WPushButton.html#aa5830a2118836423f0c16d12bbfd57a0">WPushButton::setRef()</a></dt>
  2311. <dd>
  2312. Utility method to create an anchor that looks like a button, or a
  2313. button that behaves like an anchor, depending on your point of
  2314. view. There is also <tt>setResource()</tt> to set a resource as
  2315. target.
  2316. </dd>
  2317. <dt>
  2318. <a href="classWt_1_1WResource.html">WResource</a>
  2319. </dt>
  2320. <dd>Added API for upload progress tracking.</dd>
  2321. <dt>
  2322. <a href="classWt_1_1Http_1_1Request.html">Http::Request</a>
  2323. </dt>
  2324. <dd>Added support for HTTP request byte ranges, and this is now
  2325. interpreted by both the WFileResource and built-in httpd for static
  2326. files.
  2327. </dd>
  2328. <dt>
  2329. <a href="classWt_1_1Http_1_1Response.html">Http::Response</a>
  2330. </dt>
  2331. <dd>Added <tt>setContentLength()</tt> which allows you to specify the
  2332. lenght of the response in advance, proving a better user experience
  2333. for large downloads.
  2334. </dd>
  2335. <dt>
  2336. <a href="classWt_1_1Dbo_1_1Session.html#8712ff0d59f7bb6a4d2986ad9637cc9e">Dbo::Session::query()</a>
  2337. </dt>
  2338. <dd>Switched to a more complete Boost.Spirit parser for SQL queries, which
  2339. understands most of the SQL syntax, including functions,
  2340. "with ... select ... ".
  2341. </dd>
  2342. <dt>
  2343. <a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>
  2344. </dt>
  2345. <dd>Added support for custom column header names and changing the
  2346. undelrying query using setQuery() while preserving the current
  2347. column definitions.</dd>
  2348. <dt>
  2349. <a href="classWt_1_1Dbo_1_1SqlStatement.html">Dbo::SqlStatement</a>
  2350. </dt>
  2351. <dd>Added boost::posix_time::time_duration type support.</dd>
  2352. <dt>
  2353. <a href="structWt_1_1Dbo_1_1sql__value__traits.html">Dbo::sql_value_traits&lt;WTime&gt;</a>
  2354. </dt>
  2355. <dd>Added template specialization for WTime.</dd>
  2356. </dl>
  2357. <hr />
  2358. <h2>Release 3.1.5 (Sep 10, 2010)</h2>
  2359. <p>
  2360. This release contains mostly bug fixes.
  2361. </p>
  2362. <h3>A) Main Changes</h3>
  2363. <dl>
  2364. <dt><a href="classWt_1_1WGridLayout.html">WGridLayout</a>,
  2365. <a href="classWt_1_1WBoxLayout.html">WBoxLayout</a></dt>
  2366. <dd>Optimized client-side rendering performance. Previously, every layout
  2367. manager used would automatically slowdown every event because it would try
  2368. to relayout each time. This is no longer the case.</dd>
  2369. <dt><a href="classWt_1_1WSocketNotifier.html">WSocketNotifier</a></dt>
  2370. <dd>The socket notifier has been resurrected (it was in an perpetual state
  2371. of brokeness) and now works reliably across targets.</dd>
  2372. </dl>
  2373. <h3>B) Changes that may break existing applications:</h3>
  2374. <h4>1) Built-in resource bundles</h4>
  2375. Starting with this version, Wt uses an internal message resource
  2376. bundle for the few strings it provides by itself (like for example
  2377. 'Ok' for the ok button in a WMessageBox, or the days-of-week in WDate).
  2378. Previously, an ugly API was used in <a href="classWt_1_1WMessageBox.html">WMessageBox</a>,
  2379. <a href="classWt_1_1WCalendar.html">WCalendar</a>,
  2380. and <a href="classWt_1_1WDatePicker.html">WDatePicker</a>
  2381. using a boolean 'i18n' parameter in the constructor. All this has now been removed,
  2382. and instead the keys for these built-in strings have been documented. If you were
  2383. using these classes your application will no longer build, you can simply remove the
  2384. internationalization parameter and you will need to fix the keys you used for the
  2385. messages according to the documentation.
  2386. Any localized strings you use will take precedence over these built-ins.
  2387. All affected classes (only those listed above actually have changed API and behaviour) are:
  2388. <dl>
  2389. <dt><a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a></dt>
  2390. <dd>the paging tool bar buttons for graceful callback.</dd>
  2391. <dt><a href="classWt_1_1WCalendar.html">WCalendar</a></dt>
  2392. <dd>because of WDate</dd>
  2393. <dt><a href="classWt_1_1WDate.html">WDate</a> and <a href="classWt_1_1WDateTime.html">WDateTime</a></dt>
  2394. <dd>week days, month names</dd>
  2395. <dt><a href="classWt_1_1WDatePicker.html">WDatePicker</a></dt>
  2396. <dd>because of WCalendar and for the close button</dd>
  2397. <dt><a href="classWt_1_1WDefaultLoadingIndicator.html">WDefaultLoadingIndicator</a></dt>
  2398. <dd>loading text</dd>
  2399. <dt><a href="classWt_1_1WInPlaceEdit.html">WInPlaceEdit</a></dt>
  2400. <dd>save and cancel button text</dd>
  2401. <dt><a href="classWt_1_1WMessageBox.html">WMessageBox</a></dt>
  2402. <dd>standard buttons</dd>
  2403. <dt><a href="classWt_1_1WOverlayLoadingIndicator.html">WLoadingIndicator</a></dt>
  2404. <dd>standard buttons</dd>
  2405. <dt><a href="classWt_1_1WValidator.html">Validators</a></dt>
  2406. <dd>for the messages they display in case of error</dd>
  2407. </dl>
  2408. <h4>2) Other behavioural changes</h4>
  2409. <dl>
  2410. <dt><a href="structWt_1_1WDialog.html">WDialog</a></dt>
  2411. <dd>Escape will no longer result in the dialog being rejected. You can
  2412. enable this behaviour using the rejectWhenEscaped() method.
  2413. </dd>
  2414. </dl>
  2415. <hr />
  2416. <h2>Release 3.1.4 (Aug 13, 2010)</h2>
  2417. <p>
  2418. This release contains several new features, but also a few changes
  2419. that break backwards compatibility (but are unlikely to affect an
  2420. average application).
  2421. </p>
  2422. <h3>A) New classes:</h3>
  2423. <dl>
  2424. <dt><a href="classWt_1_1WBatchEditProxyModel.html">
  2425. WBatchEditProxyModel</a></dt>
  2426. <dd>A proxy model that caches editing operations to commit them atomically.
  2427. </dd>
  2428. <dt><a href="classWt_1_1WHTML5Audio.html">WHTML5Audio</a></dt>
  2429. <dd>Audio support using the HTML5 audio tag.</dd>
  2430. <dt><a href="classWt_1_1WPdfImage.html">WPdfImage</a></dt>
  2431. <dd>A WPaintDevice that writes to Pdf (using libharu).</dd>
  2432. <dt><a href="classWt_1_1WRasterImage.html">WRasterImage</a></dt>
  2433. <dd>A WPaintDevice that writes to a Png/Gif (using GraphicsMagick).</dd>
  2434. <dt>ISAPI connector</dt>
  2435. <dd>(Windows only) a connector that implements the Microsoft ISAPI
  2436. API, to integrate directly into Microsoft IIS. On Windows, this is
  2437. an alternative deployment option next to the built-in httpd.</dd>
  2438. </dl>
  2439. <h3>B) Main new features in existing classes:</h3>
  2440. <dl>
  2441. <dt>
  2442. <a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>
  2443. </dt>
  2444. <dd>Added support for validators while editing.</dd>
  2445. <dt>
  2446. <a href="classWt_1_1WApplication.html#88b082dadadd3fb7dbe10887e7d89c91">WApplication</a>
  2447. </dt>
  2448. <dd>Added an appRoot() method this returns the value of the
  2449. special property "approot" which can in some cases be defined
  2450. implicitly by a connector (such as ISAPI), and which allows an
  2451. application to reference working files whereas previously it was
  2452. assumed that they were in the working directory (CWD).</dd>
  2453. <dt>
  2454. <a href="classWt_1_1WEnvironment.html#fd8726dfa8cabcb49895df4a6112ef48">WEnvironment::agent() and related</a>
  2455. </dt>
  2456. <dd>Convenience methods that return pre-parsed user agent identification,
  2457. should you want to differentiate based on browser.</dd>
  2458. <dt>
  2459. <a href="classWt_1_1WWidget.html#bb5949e98f47edb7db98d7b6df07a31c">WWidget::addStyleClass()</a>, <a href="classWt_1_1WWidget.html#3b8a35e37ef06c408f346c63a5f1aa8e">WWidget::removeStyleClass()</a>
  2460. </dt>
  2461. <dd>Added addStyleClass() and removeStyleClass() methods.</dd>
  2462. <dt>
  2463. <a href="classWt_1_1WMenu.html">WMenu, WMenuItem</a>
  2464. </dt>
  2465. <dd>Added support for closable and disabled items (not complete,
  2466. CSS is lacking for polished theme). Contributed by Dmitriy Igrishin.</dd>
  2467. <dt>
  2468. <a href="classWt_1_1WModelIndex.html#93c11e136a0fdc596eb745cc7fce7033">WModelIndex</a>
  2469. </dt>
  2470. <dd>Added support for in-place (destructive) encoding to and
  2471. decoding from a raw index, making this less of a hassle for View
  2472. classes.</dd>
  2473. <dt>
  2474. <a href="classWt_1_1WSortFilterProxyModel.html">WSortFilterProxyModel</a>
  2475. </dt>
  2476. <dd>Added support for row insertion/removal.</dd>
  2477. <dt>
  2478. <a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a>
  2479. </dt>
  2480. <dd>Allow usage as an advanced combo-box, with an explicit drop down
  2481. button and ability to react to a selection.</dd>
  2482. <dt>
  2483. <a href="group__dbo.html#gc98c1f90b00ed9ce243c6412da3ac489">Dbo::id()</a>
  2484. </dt>
  2485. <dd>Support for natural keys (possibly of composite type) next to the
  2486. built-in surrogate keys.</dd>
  2487. <dt>
  2488. <a href="structWt_1_1Dbo_1_1dbo__traits.html">Dbo::dbo_traits&lt;C&gt;</a>
  2489. </dt>
  2490. <dd>By specializing this traits class, you can modify the surrogate id
  2491. field name (or disable it), and the optimistic version lock field
  2492. name (or disable it).</dd>
  2493. <dt>
  2494. <a href="classWt_1_1Dbo_1_1Session.html#8712ff0d59f7bb6a4d2986ad9637cc9e">Dbo::Session::query()</a>
  2495. </dt>
  2496. <dd>More robust query parsing (of the 'select' part), including
  2497. support for "select distinct".</dd>
  2498. <dt>
  2499. <a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>
  2500. </dt>
  2501. <dd>Added editing support (editing the model will modify the queried
  2502. dbo's).</dd>
  2503. <dt>
  2504. <a href="structWt_1_1Dbo_1_1query__result__traits.html">Dbo::query_result_traits&lt;C&gt;</a>
  2505. </dt>
  2506. <dd>Added setValue(), create(), add() and remove() methods for modifying
  2507. queried results.</dd>
  2508. </dl>
  2509. <h3>C) Changes that break existing applications:</h3>
  2510. <dl>
  2511. <dt><a href="structWt_1_1Dbo_1_1Dbo.html">Dbo::Dbo</a></dt>
  2512. <dd>
  2513. This class is now a templated with the class name itself, in
  2514. order to provide the proper type for the (natural or surrogate) id
  2515. field for id(). You will need to replace
  2516. <pre>
  2517. class User : public Wt::Dbo { ... }
  2518. </pre>
  2519. with
  2520. <pre>
  2521. class User : public Wt::Dbo&lt;User&gt; { ... }
  2522. </pre>
  2523. </dd>
  2524. <dt>CSS</dt>
  2525. <dd>The toplevel container used by Wt is now given a <tt>position:
  2526. relative</tt> style; this was needed to be able to position widgets
  2527. (such as popups) using <tt>position: absolute</tt>, but may break
  2528. application layouts. You can override this CSS style by adding
  2529. <tt>.Wt-domRoot { position: static; }</tt> to your application's
  2530. (internal or external) stylesheet.
  2531. </dd>
  2532. </dl>
  2533. <hr />
  2534. <h2>Release 3.1.3 (May 20, 2010)</h2>
  2535. <p>
  2536. This release several new features, but also a few changes that
  2537. break backwards compatibility (but are unlikely to affect an average
  2538. application).
  2539. </p>
  2540. <h3>A) New classes:</h3>
  2541. <dl>
  2542. <dt><a href="classWt_1_1SignalBase.html">SignalBase</a>,
  2543. <a href="classWt_1_1EventSignalBase.html">EventSignalBase</a></dt>
  2544. <dd>Abstract base classes for signals (these are not actually new,
  2545. but they were not yet part of the API).</dd>
  2546. <dt><a href="classWt_1_1WHTML5Video.html">WHTML5Video</a></dt>
  2547. <dd>Video support using the HTML5 video tag (work-in-progress).</dd>
  2548. <dt><a href="classWt_1_1Dbo_1_1Call.html">Dbo::Call</a></dt>
  2549. <dd>Class for executing a database call.</dd>
  2550. <dt><a href="classWt_1_1Dbo_1_1SqlConnectionPool.html">
  2551. Dbo::SqlConnectionPool</a>,
  2552. <a href="classWt_1_1Dbo_1_1FixedSqlConnectionPool.html">
  2553. Dbo::FixedSqlConnectionPool</a></dt>
  2554. <dd>Connection pool interface and implementation.</dd>
  2555. <dt><a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a></dt>
  2556. <dd>An tabular item model for query results.</dd>
  2557. </dl>
  2558. <h3>B) Main new features in existing classes:</h3>
  2559. <dl>
  2560. <dt><a href="classWt_1_1WAbstractItemDelegate.html">WAbstractItemDelegate</a></dt>
  2561. <dd>Added methods for editing: editState(), setEditState(),
  2562. setModelData() and closeEditor().</dd>
  2563. <dt><a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a></dt>
  2564. <dd><div>New editing API: edit(), closeEditor(), saveEditedValue(),
  2565. setEditOptions(), setEditTriggers().</div>
  2566. <div>Graceful degradation support using a paging navigation bar, which
  2567. may be customized by reimplementing createPageNavigationBar().</div>
  2568. </dd>
  2569. <dt><a href="classWt_1_1WCalendar.html">WCalendar</a>, <a href="classWt_1_1WDatePicker.html">WDatePicker</a></dt>
  2570. <dd>Added setBottom() and setTop() methods to specify a valid range.</dd>
  2571. <dt><a href="classWt_1_1WInteractWidget.html">WInteractWidget</a></dt>
  2572. <dd>Added a mouseDragged() event for responding to mouse moves while
  2573. a mouse button is down.</dd>
  2574. <dt><a href="classWt_1_1WItemDelegate.html">WItemDelegate</a></dt>
  2575. <dd>Implements editing using a WLineEdit.</dd>
  2576. <dt><a href="classWt_1_1WMenu.html">WMenu</a></dt>
  2577. <dd>Can now be used without a contents stack.</dd>
  2578. <dt><a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a></dt>
  2579. <dd>Added API to support dynamic server-side filtering.</dd>
  2580. <dt><a href="classWt_1_1WTableView.html">WTableView</a></dt>
  2581. <dd>New implementation which supports horizontal and vertical
  2582. virtual scrolling, column resizing, drag and drop, etc... like
  2583. WTreeView.</dd>
  2584. <dt><a href="classWt_1_1Chart_1_1WPieChart.html">Chart::WPieChart</a></dt>
  2585. <dd>Supports now also a shadow effect.</dd>
  2586. <dt><a href="classWt_1_1Dbo_1_1collection.html">Dbo::collection</a></dt>
  2587. <dd>A find() method has been added to refine the query of a many-side relational.</dd>
  2588. <dt><a href="classWt_1_1Dbo_1_1ptr.html">Dbo::ptr</a></dt>
  2589. <dd>A version() method returns the current version.</dd>
  2590. <dt><a href="classWt_1_1Dbo_1_1Query.html">Dbo::Query</a></dt>
  2591. <dd>An extra template parameter specifies a binding strategy. The
  2592. default binding strategy is DynamicBinding, which allows reuse of
  2593. the query object, and provides new API to modify the query:
  2594. where(), orderBy(), groupBy(), offset(), limit().</dd>
  2595. <dt><a href="classWt_1_1Dbo_1_1Session.html">Dbo::Session</a></dt>
  2596. <dd>Added support for use with a connection pool. Added execute()
  2597. method to execute an SQL statement.</dd>
  2598. <dt>Built-in httpd</dt>
  2599. <dd>Support for HTTP Range header and partial content servering.</dd>
  2600. </dl>
  2601. <h3>C) Changes that break existing applications:</h3>
  2602. <dl>
  2603. <dt><a href="structWt_1_1Dbo_1_1query__result__traits.html">Dbo::sql_result_traits</a></dt>
  2604. <dd>This traits class has been renamed to query_result_traits and
  2605. its API has changed considerably. This will only impact when you
  2606. have implemented a custom traits specialization. The getColumns()
  2607. method has been replaced with a getFields() method, and the
  2608. loadValues() method has been renamed to load(). A getValues()
  2609. method has been added which provides conversion to boost::any's.
  2610. </dd>
  2611. <dt><a href="classWt_1_1WTableView.html">WTableView</a></dt>
  2612. <dd>This View class was reimplemented to have functionality
  2613. comparable to WTreeView. In the process, we had to abandon the
  2614. underlying &lt;table&gt; representation because of rendering
  2615. issues with Chrome (of all browsers!), although the WTableView
  2616. documentation specifically promised that we would keep this.
  2617. </dd>
  2618. </dl>
  2619. <hr />
  2620. <h2>Release 3.1.2 (March 26, 2010)</h2>
  2621. <p>This release contains mostly bug fixes, and a few new features.</p>
  2622. <h3>A) New classes:</h3>
  2623. <dl>
  2624. <dt><a href="classWt_1_1WShadow.html">WShadow</a></dt>
  2625. <dd>Class representing a drop shadow effect (see below).</dd>
  2626. <dt><a href="classWt_1_1Dbo_1_1backend_1_1Postgres.html">Dbo/backend/Postgres</a></dt>
  2627. <dd>A Postgres backend has landed, contributed by Hilary Cheng.</dd>
  2628. </dl>
  2629. <h3>B) Main new features in existing classes:</h3>
  2630. <dl>
  2631. <dt><a href="classWt_1_1WBoxLayout.html">WBoxLayout</a>, <a href="classWt_1_1WGridLayout.html">WGridLayout</a></dt>
  2632. <dd>Addition of horizontal and vertical splitter support (resize handles to
  2633. allow the user to adjust the layout), sponsored by Eurofer. The new API
  2634. methods are <a href="classWt_1_1WBoxLayout.html#00bdfb4d442bd8e8ad9c33b72692763f">setResizable()</a>, <a href="classWt_1_1WGridLayout.html#180c33a8f9e21a7b58f12e055fdb469e">setColumnResizable()</a> and <a href="classWt_1_1WGridLayout.html#6028853eb5a66d868323d0e034b69390">setRowResizable()</a></dd>
  2635. <dt><a href="classWt_1_1WCalendar.html">WCalendar</a></dt>
  2636. <dd>Improved the API to allow custom cell rendering, and custom handling
  2637. of selection. We have also made the API for selection consistent with other
  2638. widgets (like WTreeView), deprecating the old API.</dd>
  2639. <dt><a href="classWt_1_1WDateTime.html">WDateTime</a></dt>
  2640. <dd>Added <a href="classWt_1_1WDateTime.html#0d7f04bacc6ea6534bc61ec7305a8262">toPosixTime()</a> and <a href="classWt_1_1WDateTime.html#eb5f093554829688b36640f0977da541">fromPosixTime()</a> methods to interoperate with
  2641. <tt>boost::posix_time::ptime</tt>.</dd>
  2642. <dt><a href="classWt_1_1WFormWidget.html">WFormWidget</a></dt>
  2643. <dd>Added a <a href="classWt_1_1WFormWidget.html#92de7a4d9ca6796607dc9fd26f608436">setEmptyText()</a> method to implement a label inside a line edit or text area.</dd>
  2644. <dt><a href="classWt_1_1WPainter.html">WPainter</a></dt>
  2645. <dd>Added a <a href="classWt_1_1WPainter.html#9c727b82879ab055f3fcf4c9cdfc1f8d">setShadow()</a> method which defines a drop shadow to be used for subsequent
  2646. drawing actions.</dd>
  2647. <dt><a href="classWt_1_1WResource.html">WResource</a></dt>
  2648. <dd>Added a <a href="classWt_1_1WResource.html#06bb9dbe3ae195c320cfed7b062d448a">setInternalPath()</a> method which allow a resource to be deployed at a deterministic and "pretty" URL.</dd>
  2649. <dt><a href="classWt_1_1WString.html">WString</a></dt>
  2650. <dd>Added constructors that take a std::locale for interpreting a narrow
  2651. string in a given locale.</dd>
  2652. <dt><a href="classWt_1_1WWidget.html">WWidget</a></dt>
  2653. <dd>Added <a href="classWt_1_1WWidget.html#4f83592912a7f8fa4fd35dadde78ee74">setLayoutSizeAware()</a> and <a href="classWt_1_1WWidget.html#f432588db3d599f89b54121f2ede8d63">layoutSizeChanged()</a> methods which allow a widget to react to layout size changes.</dd>
  2654. <dt><a href="classWt_1_1Http_1_1Request.html">Http::Request</a></dt>
  2655. <dd>Added access to the request <a href="classWt_1_1Http_1_1Request.html#e76664f93462d9311ee671c93607e5ca">method()</a>.</dd>
  2656. <dt><a href="classWt_1_1Http_1_1Response.html">Http::Response</a></dt>
  2657. <dd>Added a <a href="classWt_1_1Http_1_1Response.html#7c14ba3ab34ff14461df3a4369118443">setStatus()</a> method to modify the response status.</dd>
  2658. <dt><a href="classWt_1_1Dbo_1_1Session.html">Dbo::Session</a></dt>
  2659. <dd>Added support for schema qualified tables, in
  2660. <a href="classWt_1_1Dbo_1_1Session.html#5886d450c052ae0ee15ab3c91e439229">Session::mapClass()</a> and the joinTable specified in <a href="group__dbo.html#g1a086b583fb150dbd4c5b4ba92bc177f">hasMany()</a>.<br />
  2661. Added API for dropping the schema: <a href="classWt_1_1Dbo_1_1Session.html#4c1fedb21e4e1cc44b182a34e8ebb4efdropTables()">dropTables()</a>. <br />
  2662. Added support for arbitrary queries in <a href="classWt_1_1Dbo_1_1Session.html#d39e953ef521eaa58c4c7e6ca1a6c19e">Session::query()</a>, including
  2663. queries that do not return result or do not select from tables.</dd>
  2664. <dt><a href="group__dbo.html#g8a2b653ff57f1459dfa2e556badd71d6">Dbo::field()</a></dt>
  2665. <dd>Allow size suggestion for std::string and WString mappings</dd>
  2666. <dt><a href="classWt_1_1Dbo_1_1SqlConnection.html">Dbo::SqlConnection, Dbo::SqlStatement</a></dt>
  2667. <dd>Added support for floating point types, binary data (using std::vector&lt;unsigned char&gt;) and date and date/time types.<br/>
  2668. Added methods for return dialect-specific information.<br/>
  2669. Added properties API.<br/>
  2670. </dd>
  2671. <dt><a href="structWt_1_1Dbo_1_1sql__value__traits.html">Dbo::sql_value_traits</a></dt>
  2672. <dd>Added support for backend-specific type mapping.</dd>
  2673. <dt>(internal) DomElement</dt>
  2674. <dd>Performance improvements in serializing the widgets to HTML
  2675. and/or JavaScript</dd>
  2676. <dt>Built-in httpd</dt>
  2677. <dd>Added a configuration option <tt>--max-request-size</tt> to
  2678. limit the size of a POST instead of the built-in default of 40
  2679. MB<br/> Added a configuration option
  2680. <tt>--max-memory-request-size</tt> to limit the size of a POST that
  2681. is handed in-memory. Bigger POSTs are handled using a spool file.
  2682. </dd>
  2683. </dl>
  2684. <hr />
  2685. <h2>Release 3.1.1 (February 17, 2010)</h2>
  2686. <p>The minimum boost version is now 1.36.</p>
  2687. <p>This release handles mostly bug fixes, with as most visible change
  2688. an update of the <i>polished</i> theme, which is now considered
  2689. complete.</p>
  2690. <h3>A) Security fixes:</h3>
  2691. Because of the following fixes for security problems, we recommend anyone
  2692. to upgrade live deployments of his application to the latest version.
  2693. <dl>
  2694. <dt>Possible XSS vulnerability</dt>
  2695. <dd>Fixed a possible XSS attack where a user follows a link to a Wt web
  2696. application, taking advantage of unchecked insertions of the URL when
  2697. redirecting to the canonical page.</dd>
  2698. <dt>Possible UTF-8 vulnerability</dt>
  2699. <dd>Form values and JSignal arguments received from the browser are
  2700. now checked for sane UTF-8 encoding.</dd>
  2701. </dl>
  2702. <h3>B) New classes:</h3>
  2703. <dl>
  2704. <dt><a href="classWt_1_1Dbo_1_1Dbo.html">Dbo/Dbo</a></dt>
  2705. <dd>An optional base class for a database object, providing access to its
  2706. id() and session().</dd>
  2707. </dl>
  2708. <h3>C) Main new features in existing classes:</h3>
  2709. <dl>
  2710. <dt><a href="classWt_1_1WCanvasPaintDevice.html">WCanvasPaintDevice</a></dt>
  2711. <dd>Now implements native text rendering on Firefox and latest
  2712. Chrome and Safari browsers</dd>
  2713. <dt><a href="classWt_1_1WInPlaceEdit.html">WInPlaceEdit</a></dt>
  2714. <dd>Added a setEmptyText() method which sets the text to be
  2715. displayed when value is empty.</dd>
  2716. <dt><a href="classWt_1_1WPopupMenu.html">WPopopMenu</a></dt>
  2717. <dd>Added an exec(WWidget *location, Orientation orientation) method which
  2718. popups the menu besides another widget.</dd>
  2719. <dt><a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a></dt>
  2720. <dd>This class is now also style by the CSS theme.</dd>
  2721. <dt><a href="classWt_1_1WTemplate.html">WTemplate</a></dt>
  2722. <dd>Avoids now rerendering of already bound widgets when the
  2723. template is rerendered.</dd>
  2724. <dt><a href="classWt_1_1WTree.html">WTree</a>,
  2725. <a href="classWt_1_1WTreeNode.html">WTreeNode</a>,
  2726. <a href="classWt_1_1WTreeTable.html">WTreeTable</a>,
  2727. <a href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a>
  2728. </dt>
  2729. <dd>These widgets are now theme-aware, and tree decoration styling
  2730. is provided by the theme. The setImagePack() APIs are now
  2731. no-ops</dd>
  2732. <dt><a href="classWt_1_1WWidget.html">WWidget</a></dt>
  2733. <dd>Added positionAt() method which positions a widget (absolutely) besides
  2734. another widget.</dd>
  2735. <dt><a href="classWt_1_1Chart_1_1WAxis.html">Chart/WAxis></a></dt>
  2736. <dd>Added a setLabelFont() method.</dd>
  2737. <dt><a href="classWt_1_1Http_1_1Request.html">Http/Request</a></dt>
  2738. <dd>Added serverName(), serverPort(), path(), pathInfo(),
  2739. queryString(), urlScheme(), in(), contentType(), contentLength(),
  2740. userAgent() and clientAddress() methods which expose information
  2741. form the HTTP request to WResources.</dd>
  2742. </dl>
  2743. <h3>D) Build changes:</h3>
  2744. <dl>
  2745. <dt>XML_FEATURES</dt>
  2746. <dd>This CMake option has been removed, and Mini-XML has been
  2747. replaced by a modified RapidXML xml parser (mostly because of the
  2748. hard-to-interpret Mini-XML license), but there are also nice
  2749. performance improvements.</dd>
  2750. </dl>
  2751. <hr />
  2752. <h2>Release 3.1.0 (December 29, 2009)</h2>
  2753. <p>This release contains several new features and classes, after a long
  2754. period of stabilization that happened before the 3.0.0 release.</p>
  2755. <h3>A) New classes:</h3>
  2756. <dl>
  2757. <dt><a href="classWt_1_1WAggregateProxyModel.html">WAggregateProxyModel</a></dt>
  2758. <dd>A model that provides support for drilling down through columns, supported
  2759. by WTreeView.</dd>
  2760. <dt><a href="classWt_1_1WCombinedLocalizedStrings.html">WCombinedLocalizedStrings</a></dt>
  2761. <dd>Combines different localized strings implementations.</dd>
  2762. <dt><a href="classWt_1_1WDateTime.html">WDateTime</a></dt>
  2763. <dd>Combines a calendar date (WDate) and a clock time (WTime).</dd>
  2764. <dt><a href="classWt_1_1WTemplate.html">WTemplate</a></dt>
  2765. <dd>Use an XHTML fragment as a template, with variables that are place
  2766. holders for strings or other widgets. See the blog example of how this
  2767. class can be used to simplify HTML/CSS based layout of widgets and
  2768. contents.</dd>
  2769. <dt><a href="classWt_1_1WTime.html">WTime</a></dt>
  2770. <dd>Represents a clock time (0-24 hours).</dd>
  2771. <dt><a href="group__dbo.html">Wt::Dbo</a></dt>
  2772. <dd>An Object Relational Mapping library. See the <a href="../../tutorial/dbo.html">tutorial here</a>.</dd>
  2773. </dl>
  2774. <h3>B) Main new features in existing classes:</h3>
  2775. Most inline CSS styles have been pushed out to an external style
  2776. sheet, which may be themed. The "default" theme provides the old look,
  2777. while a new "polished" theme provides a less boring (?) look for
  2778. several widgets (work in progress). The theme can be set using <a
  2779. href="classWt_1_1WApplication.html">WApplication::setCssTheme()</a>.
  2780. As a result, you will need to deploy Wt's <tt>"resources/"</tt>
  2781. folder, which contains the themes in <tt>"resources/themes/"</tt>, for
  2782. all but the most trivial applications.
  2783. <dl>
  2784. <dt><a href="classWt_1_1Signal.html">Signal</a></dt>
  2785. <dd>Added a template connect() method which may be given any function
  2786. object, providing also support for the (future) c++1x lambda functions.</dd>
  2787. <dt><a href="classWt_1_1WCanvasDevice.html">WCanvasDevice</a></dt>
  2788. <dd>Several optimizations to output more concise JavaScript.</dd>
  2789. <dt><a href="classWt_1_1WPaintedWidget.html">WPaintedWidget</a></dt>
  2790. <dd>When width and/or height is not set using resize(), the widget
  2791. will now properly react to layout management when put into a layout
  2792. manager, triggering a server-side rerendering when needed.</dd>
  2793. <dt><a href="classWt_1_1WSlider.html">WSlider</a></dt>
  2794. <dd>A sliderMoved() signal was added which is fired whenever the slider is
  2795. moved (but not yet released).</dd>
  2796. <dt><a href="classWt_1_1WWidget.html">WWidget</a></dt>
  2797. <dd>Added a find() method which searches the widget hierachy for a widget
  2798. with a particular objectName().</dd>
  2799. <dt><a href="classWt_1_1WServer.html">WServer</a></dt>
  2800. <dd>Added an addResource() method to bind static resources to particular
  2801. URLs (i.e. resources that are not bound to a specific session).</dd>
  2802. <dt><a href="classWt_1_1Ext_1_1Container.html">Ext::Container</a></dt>
  2803. <dd>Will now properly react to layout management from a layout that
  2804. is set for a WContainerWidget.</dd>
  2805. <dt><a href="classWt_1_1Ext_1_1FormField.html">Ext::FormField</a></dt>
  2806. <dd>Added changed(), blurred() and focussed() signals.</dd>
  2807. <dt><a href="classWt_1_1Chart_1_1WAxis.html">Chart::WAxis</a></dt>
  2808. <dd>Added setAutoLimits() and autoLimits() methods to configure which limits
  2809. are to be determined based on the data, and which are explicitly set.</dd>
  2810. <dt><a href="classWt_1_1Chart_1_1WDataSeries.html">Chart::WDataSeries</a></dt>
  2811. <dd>Added the setHidden() and hidden() methods to enable or disable
  2812. a data series. Added setBarWidth() and barWidth() methods to set the
  2813. width of a bar (useful mostly for scatter plots). Added
  2814. setMarkerSize() and markerSize() methos.</dd>
  2815. <dt><a
  2816. href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a></dt>
  2817. <dd>Use MarkerPenColorRole and MarkerBrushColorRole to override
  2818. colors for makers on a per data point basis. Added mapFromDevice()
  2819. and mapToDevice() methods for mapping device coordinates to chart
  2820. coordinates and vice-versa</dd>
  2821. </dl>
  2822. <h3>C) API Changes:</h3>
  2823. <dl>
  2824. <dt><a href="classWt_1_1WSlider.html">WSlider</a></dt>
  2825. <dd>Not really an API change, but the vertical slider is now showing
  2826. the maximum value at its top side, not its bottom side.</dd>
  2827. <dt><a href="classWt_1_1Chart_1_1WAxis.html">Chart::WAxis</a></dt>
  2828. <dd>The minimum() and maximum() methods will now return the calculated
  2829. minimum and maximum value when they are to be automatically calculated based
  2830. on the data, configured using setAutoLimits()</dd>
  2831. </dl>
  2832. <h3>D) Build changes:</h3>
  2833. <dl>
  2834. <dt>XML_FEATURES</dt>
  2835. <dd>A new configuration option, XML_FEATURES, was added which allows the library to be built without MiniXML (and disabling fatures that require Mini-XML support). This configuration option is likely to be removed again in future versions.</dd>
  2836. <dt>Documentation</dt>
  2837. <dd>A <tt>doc</tt> directive was added, which uses doxygen and asciidoc tools
  2838. to generate the reference documentation and tutorial.</dd>
  2839. <dt>Tests</dt>
  2840. <dd>Automated tests were added for non-interactive functionality,
  2841. and are built by default.</dd>
  2842. </dl>
  2843. <hr />
  2844. <h2>Release 3.0.0 (November 3, 2009)</h2>
  2845. <p>
  2846. This release contains mostly bug fixes, build improvements and
  2847. documentation improvements compared to the latest pre-release
  2848. (2.99.5).
  2849. </p>
  2850. <p>
  2851. Most build improvements are related to finding the boost
  2852. libraries. Previously, Wt used a custom script, since CMake versions
  2853. &lt; 2.6 did not provide a good enough script for finding
  2854. boost. Starting with this release, when using CMake 2.6 or later, Wt
  2855. will use the script that comes with CMake. You can still fall back to
  2856. the script that comes with Wt, which is still used for older versions
  2857. of CMake, by defining one of the BOOST_COMPILER or BOOST_VERSION
  2858. variables.
  2859. </p>
  2860. <h3>A) New classes:</h3>
  2861. <i>No new classes</i>
  2862. <h3>B) Main new features in existing classes:</h3>
  2863. <dl>
  2864. <dt><a href="classWt_1_1WDialog.html">WDialog</a></dt>
  2865. <dd>It is now possible to have multiple modal dialogs, and nested
  2866. recursive event loops.</dd>
  2867. <dt><a href="classWt_1_1WWidget.html#e29fe35b633ec166f922419cd3ca9d96">
  2868. WWidget</a></dt>
  2869. <dd>The <samp>setDisabled()</samp> method moved up
  2870. from <samp>WFormWidget</samp> to <samp>WWidget</samp>.</dd>
  2871. <dt><a href="classWt_1_1JSlot.html#3d65b00a8015e556580527b52750ef87">
  2872. JSlot</a></dt>
  2873. <dd>The <samp>exec()</samp> method now passes object and event to the
  2874. JavaScript event handler.</dd>
  2875. </dl>
  2876. <h3>C) API Changes:</h3>
  2877. <dl>
  2878. <dt><a href="classWt_1_1WResource.html">WResource</a></dt>
  2879. <dd>The handling of changes to the resource has been sanitized. A
  2880. new method, <samp>setChanged()</samp> was added which must be called
  2881. to notify users of the resource that the resource was changed. In
  2882. addition to the existing <samp>generateUrl()</samp> which generates
  2883. a new URL, a method was added which merely returns the existing
  2884. URL: <samp>url()</samp>. With these improvements, a resource can
  2885. effictively be shared by many view widgets and updated with the
  2886. minimum of bandwidth usage.</dd>
  2887. </dl>
  2888. <hr />
  2889. <h2>Release 2.99.5 (September 1, 2009)</h2>
  2890. <p>
  2891. This release contains mostly bug fixes. The previous release (2.99.4)
  2892. contains some critical bugs that cause mayhem on IE, and a regression
  2893. with server push.
  2894. </p>
  2895. <hr />
  2896. <h2>Release 2.99.4 (August 27, 2009)</h2>
  2897. <p style="text-align: center">
  2898. <b>!! This release contains bugs that render it unusable on IE !!</b>
  2899. </p>
  2900. <p>
  2901. This release contains mostly bug fixes and back-end improvements. The
  2902. most exciting new feature is the addition of a new bootstrap method,
  2903. which implements progressive enhancements (starting with a plain HTML
  2904. page, and then upgrading it to an AJAX page if the browser has
  2905. support), see
  2906. also <a href="/wt/doc/reference/html/overview.html#progressive_bootstrap">the
  2907. documentation</a>.
  2908. </p>
  2909. <h3>A) New classes:</h3>
  2910. <dl>
  2911. <dt><a href="classWt_1_1WTableView.html">WTableView</a></dt>
  2912. <dd>This is a simple MVC View class that renders tabular data
  2913. in the most straight forward way using an HTML table element
  2914. </dd>
  2915. </dl>
  2916. <h3>B) Main new features in existing classes:</h3>
  2917. <dl>
  2918. <dt><a href="classWt_1_1Ext_1_1ToolBar.html#931b9b3e5d4cbbdee5394a841752c849">Ext::ToolBar</a></dt>
  2919. <dd>Added insert() methods.</dd>
  2920. <dt><a href="classWt_1_1WApplication.html#78016406c4746c56b2c2ffce7c5e181f">WApplication</a></dt>
  2921. <dd>Added an enableAjax() method which notifies the application that
  2922. a session is being enhanced with AJAX capabilities when using the
  2923. progressive bootstrap method.</dd>
  2924. <dt><a href="classWt_1_1WWidget.html#919a4eaf68ff52f06f6a726d55dfb768">WWidget</a></dt>
  2925. <dd>Added an enableAjax() method which enhanced the widget with AJAX
  2926. capabilities when using the progressive bootstrap method.</dd>
  2927. <dt><a href="classWt_1_WCssDecorationStyle.html">WCssDecorationStyle</a></dt>
  2928. <dd>Add support for custom cursors.</dd>
  2929. <dt><a href="classWt_1_WWServer.html">WServer</a></dt>
  2930. <dd>For FastCGI deployments, the proxy process which directs FastCGI
  2931. requests to the correct session process is now also
  2932. multi-threaded.</dd>
  2933. </dl>
  2934. <h3>C) API Changes:</h3>
  2935. <dl>
  2936. <dt>The <a href="classWt_1_1WApplication.html#4a6f167bea94aefa8ba24f914c2fbee5">WApplication::notify()</a> behavior changed.</dt>
  2937. <dd>Previously during a request, this method was called multiple
  2938. times during event propagation and rendering of the
  2939. application. Now, the method is called exactly once for each
  2940. request. In this way, it becomes a useful entry point to also manage
  2941. resource usage during (and inbetween) requests.</dd>
  2942. </dl>
  2943. <hr />
  2944. <h2>Release 2.99.3 (July 24, 2009)</h2>
  2945. <p>
  2946. This release contains mostly bug fixes and small feature
  2947. improvements. The most notable change that might affect existing
  2948. applications is a simplified internal path API behavior.
  2949. </p>
  2950. <h3>A) New classes:</h3>
  2951. <dl>
  2952. <dt><a href="classWt_1_1WAbstractItemDelegate.html">WAbstractItemDelegate</a>
  2953. and <a href="classWt_1_1WItemDelegate.html">WItemDelegate</a></dt>
  2954. <dd><samp>WAbstractItemDelegate</samp> is a helper class used
  2955. by <samp>WTreeView</samp> (and in the future perhaps other view
  2956. classes) to render contents. The standard
  2957. implementation, <samp>WItemDelegate</samp> maintains the default
  2958. implementation that was previously integrated
  2959. in <samp>WTreeView</samp>. The delegate will be responsible for
  2960. editing features in <samp>WTreeView</samp> in the future, and in
  2961. fact, you can already implement a custom item delegate that does
  2962. editing if you cannot wait for it!
  2963. </dd>
  2964. <dt><a href="classWt_1_1Test_1_1WTestEnvironment.html">Test/WTestEnvironment</a></dt>
  2965. <dd><samp>WTestEnvironment</samp> is an environment class which is useful for
  2966. (unit) test-cases: it allows the instantiation of a
  2967. <samp>WApplication</samp> so that you may include widgets in unit tests.
  2968. </dd>
  2969. </dl>
  2970. <h3>B) Main new features in existing classes:</h3>
  2971. <h3>C) API Changes:</h3>
  2972. <dl>
  2973. <dt>change of WApplication::internalPathChanged() semantics.</dt>
  2974. <dd>The old behavior was that a single internal path change caused
  2975. by the user (e.g. by moving forward/backword through his browser
  2976. history) would cause repetitive invocations of internalPathChanged()
  2977. with different arguments. The underlying idea was that this would
  2978. make it easier to have the handling of internal path changes
  2979. distributed over different objects. It caused however more problems
  2980. than it solved. The new behavior is now that it is invoked exactly
  2981. one time, and the argument is simply the new internal path.</dd>
  2982. </dl>
  2983. <hr />
  2984. <h2>Release 2.99.2 (May 29, 2009)</h2>
  2985. <p>
  2986. This release contains mostly build improvements, bug fixes, and API cleanups.
  2987. </p>
  2988. <h3>A) New classes:</h3>
  2989. <dl>
  2990. <dt><a href="classWt_1_1Http_1_1Client.html">Http/Client</a></dt>
  2991. <dd><samp>Client</samp> is a utility class to bootstrap a new Wt
  2992. application.</dd>
  2993. </dl>
  2994. <h3>B) Main new features in existing classes:</h3>
  2995. <dl>
  2996. <dt><a href="classWt_1_1Ext_1_1FormField.html">Ext::FormField</a></dt>
  2997. <dd>Add setFocus() method.</dd>
  2998. <dt><a href="classWt_1_1Ext_1_1ToolBar.html">Ext::ToolBar</a></dt>
  2999. <dd>Added an addStretch() method (contributed by David Galicia).</dd>
  3000. <dt><a href="classWt_1_1Http_1_1Response.html">Http::Response</a></dt>
  3001. <dd>Added a continuation() method.</dd>
  3002. <dt><a href="classWt_1_1WCheckBox.html">WCheckBox</a></dt>
  3003. <dd>Add support for tri-state checkboxes. These are also supported
  3004. by item models and WTreeView.</dd>
  3005. <dt><a href="classWt_1_1WWDialog.html">WDialog</a></dt>
  3006. <dd>Support for non-modal dialogs and interactive moving.</dd>
  3007. <dt><a href="classWt_1_1WFormWidget.html">WFormWidget</a></dt>
  3008. <dd>New methods setReadOnly() and isReadOnly().</dd>
  3009. <dt><a href="classWt_1_1WGridLayout.html">WGridLayout</a></dt>
  3010. <dd>Support a row stretch value of -1, which is like 0 but will still
  3011. manage the height of cells (allowing their contents to fill the entire
  3012. cell).</dd>
  3013. <dt><a href="classWt_1_1WPaintDevice.html">WPaintDevice</a></dt>
  3014. <dd>Support update rendering (not erasing the current canvas) using
  3015. paint flags.</dd>
  3016. </dl>
  3017. <h3>C) API Changes:</h3>
  3018. <dl>
  3019. <dt>WFileUpload::isUploaded() was deprecated</dt>
  3020. <dd>The name was not covering its actual behavior: instead of
  3021. checking whether a file has been uploaded, it returns whether true
  3022. when a call to upload() is not needed. You should replace any call
  3023. to isUploaded() with the new method
  3024. <a href="classWt_1_1WFileUpload.htm#66376fb4668a037760a91abad9f83f8al">!canUpload()</a> (<b>note the inversion!</b>.</dd>
  3025. </dl>
  3026. <hr />
  3027. <h2>Release 2.99.1 (Mar 20, 2009)</h2>
  3028. <p>
  3029. This release contains only build improvements, bug fixes, and API cleanups.
  3030. </p>
  3031. <hr />
  3032. <h2>Release 2.99.0 (Mar 4, 2009)</h2>
  3033. <p>
  3034. This release is a preview for Wt 3.0.0. Many things have changed both
  3035. in the internals and the API. This is the first release that provides
  3036. several API changes which are not backward compatible (some of which
  3037. were post-poned until now).
  3038. Please read the following notes carefully, especially sections C) and
  3039. D), to understand what changes to expect and how to adapt existing
  3040. applications.
  3041. </p>
  3042. <p>
  3043. Support for the C++ boost library &lt; 1.35 has been dropped: Wt now
  3044. requires at least boost >= 1.35.0.
  3045. </p>
  3046. <h3>A) New classes:</h3>
  3047. <dl>
  3048. <dt><a href="classWt_1_1WFlags.html">WFlags</a></dt>
  3049. <dd><samp>WFlags</samp> is a utility class that provides a type-safe ORing of
  3050. enum flags. It is used everywhere in the Wt API where previously an
  3051. <samp>int</samp> was used to allow enums to be ORed together.</dd>
  3052. <dt><a href="classWt_1_1WGoogleMap.html">WGoogleMap</a></dt>
  3053. <dd>This is a widget, contributed by Richard Ulrich, that displays a
  3054. Google map.</dd>
  3055. <dt><a href="classWt_1_1Http_1_1Request.html">Http::Request</a>, <a href="classWt_1_1Http_1_1Response.html">Http::Response</a>, <a href="classWt_1_1Http_1_1ResponseContinuation.html">Http::ResponseContinuation</a> and <a href="classWt_1_1Http_1_1UploadedFile.html">Http::UploadedFile</a></dt>
  3056. <dd>These are utility classes which model an HTTP request and
  3057. response and that are used in the new <samp>WResource</samp> API.</dd>
  3058. </dl>
  3059. <h3>B) Main new features in existing classes:</h3>
  3060. <dl>
  3061. <dt><a href="classWt_1_1WApplication.html#d9631ca64e68d30d40cb49c90e55223d">WApplication::enableUpdates()</a></dt>
  3062. <dd>Server-initiated updates (aka "server push") has been
  3063. reimplemented and now works reliably in all situations, including in
  3064. the presence of intermediate proxies. The dependency on the 3rd
  3065. party JS orbited library has been removed and replaced with a simple
  3066. XHR-based solution.</dd>
  3067. <dt><a href="classWt_1_1WButtonGroup.html">WButtonGroup</a></dt>
  3068. <dd>Various methods were added: id's may be associated with a specific
  3069. radio buttons, which may be used to identify a particular button.</dd>
  3070. <dt><a href="classWt_1_1WDatePicker.html">WDatePicker</a></dt>
  3071. <dd>Is now easier to use because of a sensible default constructor
  3072. that also creates the line edit using a <samp>WDateValidator</samp>,
  3073. and creates the icon which is associated with the popup.</dd>
  3074. <dt><a href="classWt_1_1WFileResource.html">WFileResource</a></dt>
  3075. <dd>Uses the continuation support in the new <samp>WResource</samp> API
  3076. to transmit the file in chunks.</dd>
  3077. <dt><a href="classWt_1_1WLength.html">WLength</a></dt>
  3078. <dd>WLength::Auto was added, is a synonym for WLength()</dd>
  3079. <dt><a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a></dt>
  3080. <dd>Is now also an MVC View widget, reading its data from a
  3081. <samp>WAbstractItemModel</samp></dd>
  3082. <dt><a href="classWt_1_1WTable.html">WTable</a></dt> <dd>New method
  3083. setHeaderCount() to specify the number of first rows or columns that
  3084. should be rendered as an HTML table header
  3085. (<samp>&lt;th&gt;</samp>).</dd>
  3086. <dt><a href="classWt_1_1WWidget.html">WWidget</a></dt>
  3087. <dd><p>New virtual method <samp>rerender()</samp> which allows a
  3088. widget to prepare itself before rendering (and defer internal
  3089. changes until that time). A widget may ask to be rerendered using
  3090. <samp>askRerender()</samp></p> <p><samp>Widget</samp> no longer
  3091. inherits from <samp>WResource</samp>, but instead inherits directly from
  3092. <samp>WObject</samp>. It was simply a bad idea, and not useful for
  3093. anything.</p></dd>
  3094. </dl>
  3095. <h3>C) Changes that break existing applications:</h3>
  3096. <dl>
  3097. <dt>1) Signals are no longer public members</dt>
  3098. <dd><p>Instead, they are now accessor member functions:
  3099. e.g. <samp>WInteractWidget::clicked</samp> has been renamed to
  3100. <samp>WInteractWidget::clicked()</samp>. This has as major benefit
  3101. that signals can be created on-demand, which leads to drastically
  3102. lower memory usage and signifcant speedups especially on embedded
  3103. systems.</p> <p>The change requires that everywhere in your code
  3104. where you access a signal, you will need to change to add
  3105. parentheses. For consistency, you may also want to
  3106. use the same convention for your own widget classes that define
  3107. signals.</p></dd>
  3108. <dt>2) <a href="classWt_1_1WResource.html">WResource</a></dt>
  3109. <dd><p>The API has been redesigned and greatly simplified. If you are
  3110. implementing your own resources, then you will need to redesign your
  3111. implementation. The new API is simpler (requires only one virtual
  3112. method to be implemented) and more powerful, providing support for
  3113. <i>continuations</i> to serve large resources without blocking a
  3114. thread or requiring large memory usage.</p>
  3115. <p>In addition, resources have better thread-safety: they are now by
  3116. default reentrant (requests for a single resource may be handled
  3117. concurrently) and they are protected from concurrently being
  3118. destroyed by the main event loop.</p></dd>
  3119. <dt>3) <a href="classWt_1_1WValidator.html">WValidator</a></dt>
  3120. <dd><p>The signature for the virtual <samp>validate()</samp> method was
  3121. changed: parameter <samp>pos</samp> which was ignored anyway has
  3122. been removed.</p></dd>
  3123. <dt>4) <a href="classWt_1_1WEnvironment.html">WEnvironment</a></dt>
  3124. <dd><p>The methods <samp>getArgument()</samp> and
  3125. <samp>arguments()</samp> were renamed to respectively
  3126. <samp>getParameter()</samp> and <samp>getParameterMap()</samp>. The
  3127. signature for <samp>getParameter()</samp> is also different as it
  3128. returns a pointer to a string, which is 0 when the parameter is not
  3129. defined, instead of the olde behaviour of throwing an
  3130. exception. There is a new method that allows to read all values for
  3131. a parameter, <samp>getParameterValues()</samp></p></dd>
  3132. <dt>5) <a href="classWt_1_1ModelIndex.html">WModelIndex</a></dt>
  3133. <dd><p>The 20-byte SHA1 hash based internal pointer has been removed
  3134. again as the object increase and overhead could not be justified.</p></dd>
  3135. </dl>
  3136. <h3>D) Deprecated API that was removed:</h3>
  3137. These are API calls that were deprecated in earlier releases, and have now
  3138. been completely removed from the library:
  3139. <dl>
  3140. <dt><samp>WApplication::applicationName()</samp></dt>
  3141. <dd>Use <a
  3142. href="classWt_1_1WApplication.html#ab6320ecdd0e8e4026e9ef1aca710ca5">
  3143. WApplication::internalPath()</a> instead.</dd>
  3144. <dt><samp>WApplication::setState()</samp></dt>
  3145. <dd>Use <a
  3146. href="classWt_1_1WApplication.html#2c1a10aadc0d7ed877b5715b42ca4911">WApplication::setInternalPath()</a>
  3147. instead.</dd>
  3148. <dt><samp>WApplication::state()</samp></dt>
  3149. <dd>Use <a
  3150. href="classWt_1_1WApplication.html#ab6320ecdd0e8e4026e9ef1aca710ca5">
  3151. WApplication::internalPath()</a> instead.</dd>
  3152. <dt><samp>WApplication::stateChanged</samp></dt>
  3153. <dd>Use <a
  3154. href="classWt_1_1WApplication.html#3e68c4b6bb387f27a614e7962e11967b">WApplication::internalPathChanged()</a>
  3155. instead.</dd>
  3156. <dt><samp>WRegExpValidator::WRegExpValidator(const boost::regex&amp;)
  3157. </samp></dt>
  3158. <dd>Use the <a
  3159. href="classWt_1_1WRegExpValidator.html#7536b67e2bedd2dfdb5b89c9dd56602b">WRegExpValidator(const
  3160. WString&amp;)</a> constructor instead.</dd>
  3161. <dt><samp>WPainterPath::drawArc(..., width, height, ...)</samp></dt>
  3162. <dd>An elliptical arc segment could not be support on all devices.</dd>
  3163. <dt><samp>WTable::numRows()</samp></dt>
  3164. <dd>Use <a href="classWt_1_1WTable.html#79d5dfe40ee5e67c5007ee370e8cd2f3">WTable::rowCount()</a>.</dd>
  3165. <dt><samp>WTable::numColumns()</samp></dt>
  3166. <dd>Use <a
  3167. href="classWt_1_1WTable.html#4d062330d1c9b3f202985b92dcb59d4f">WTable::columnCount()</a>
  3168. instead.</dd>
  3169. <dt><samp>WText::setFormatting()</samp> and
  3170. <samp>WText::formatting()</samp></dt>
  3171. <dd>Use <a href="classWt_1_1WText.html#f22c64c4c5fed3d2aef0915a7e5c5866">WText::setTextFormat()</a> and
  3172. <a href="classWt_1_1WText.html#c0976c36c5181a534f161ca3724d4296">WText::textFormat()</a> instead.</dd>
  3173. </dl>
  3174. <hr />
  3175. <h2>Release 2.2.3 (Jan 26, 2009)</h2>
  3176. <p>This release is a maintenance release, with mostly bug fixes and
  3177. feature improvements.</p>
  3178. <h3>A) Main new features in existing classes:</h3>
  3179. <dl>
  3180. <dt><a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>:</dt>
  3181. <dd><samp>const char *</samp> data in <samp>boost::any</samp> is now
  3182. also supported.</dd>
  3183. <dt><a href="classWt_1_1WAbstractProxyModel.html">WAbstractProxyModel</a>:
  3184. </dt><dd>Implemented <samp>toRawIndex()</samp>
  3185. and <samp>fromRawIndex()</samp> so that indexes can be recovered
  3186. when the model's layout is changed, if the underlying model
  3187. provides implementations for <samp>toRawIndex()</samp>
  3188. and <samp>fromRawIndex()</samp>.</dd>
  3189. <dt><a href="classWt_1_1WComboBox.html">WComboBox</a>:</dt>
  3190. <dd>Also supports <samp>StyleClassRole</samp> data role for items</dd>
  3191. <dt><a href="classWt_1_1WDialog.html">WDialog</a>:</dt>
  3192. <dd>New method <samp>setTitleBarEnabled()</samp> to disable the default
  3193. title bar.</dd>
  3194. <dt><a href="classWt_1_1WMenu.html">WMenu</a>:</dt>
  3195. <dd>New method <samp>removeItem()</samp>, only works when rendered as a
  3196. list.</dd>
  3197. <dt><a href="classWt_1_1WTabWidget.html">WTabWidget</a>:</dt>
  3198. <dd>New method <samp>removeTab()</samp>.</dd>
  3199. <dt><a href="classWt_1_1WTreeView.html">WTreeView</a>:</dt>
  3200. <dd><ul>
  3201. <li>New method <samp>setColumn1Fixed()</samp> to fix the first
  3202. column while scrolling horizontally through the other columns.</li>
  3203. <li>New method <samp>setColumnFormat()</samp> to control formatting of
  3204. data.</li>
  3205. <li>New method <samp>setColumnBorder()</samp> to set the
  3206. internal column border color.</li>
  3207. <li>New method <samp>setColumnResizeEnabled()</samp> to disable resize
  3208. handles.</li>
  3209. <li>The view now also reacts correctly to insertion and
  3210. removal of model columns.</li>
  3211. </ul>
  3212. </dd>
  3213. </dl>
  3214. <h3>B) New examples</h3>
  3215. <dl>
  3216. <dt><a href="http://www.webtoolkit.eu/wt/examples/gitmodel/gitview.wt">
  3217. gitmodel:</a></dt>
  3218. <dd>An example that demonstrates how to implement a custom abstract
  3219. item model.</dd>
  3220. <dt><a href="http://www.webtoolkit.eu/wt/examples/treeview-dragdrop/treeview-dragdrop.wt">treeview-dragdrop</a>:</dt>
  3221. <dd>An example that demonstrates drag and drop support in WTreeView.</dd>
  3222. </dl>
  3223. <h3>C) Changes that break backward compatibility</h3>
  3224. <dl>
  3225. <dt><a href="classWt_1_1WApplication.html">WApplication</a>:</dt>
  3226. <dd><samp>useStyleSheet()</samp> only supports a subset of IE condition
  3227. strings, since the string is now parsed by Wt rather than by IE (when
  3228. dynamically loading stylesheets, the comment-syntax does not work
  3229. reliably).</dd>
  3230. </dl>
  3231. <hr />
  3232. <h2>Release 2.2.2 (Dec 1, 2008)</h2>
  3233. <p><i>As of now, we will also be listing noteworthy new API features,
  3234. even if they are no concern for backwards compatibility.</i></p>
  3235. <h3>A) New classes:</h3>
  3236. <dl>
  3237. <dt><a href="classWt_1_1WPopupMenu.html">WPopupMenu</a>,
  3238. <a href="classWt_1_1WPopupMenuItem.html">WPopupMenuItem</a>:</dt>
  3239. <dd>A popup menu, which you would typically use to present a
  3240. context menu.</dd>
  3241. <dt><a href="classWt_1_1WAbstractProxyModel.html">WAbstractProxyModel</a>,
  3242. <a href="classWt_1_1WSortFilterProxyModel.html">WSortFilterProxyModel</a>:</dt>
  3243. <dd>Proxy models, which present data from a source model in a
  3244. different way.</dd>
  3245. <dt><a href="classWt_1_1WLoadingIndicator.html">WLoadingIndicator</a>, <a href="classWt_1_1WDefaultLoadingIndicator.html">WDefaultLoadingIndicator</a>,
  3246. <a href="classWt_1_1WOverlayLoadingIndicator.html">WOverlayLoadingIndicator</a>:</dt>
  3247. <dd>Customizable loading indicators.</dd>
  3248. </dl>
  3249. <h3>B) Main new features in existing classes:</h3>
  3250. <dl>
  3251. <dt><a href="classWt_1_1WTreeView.html">WTreeView</a>, <a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>:</dt>
  3252. <dd>The WAbstractItemModel interface was extended to allow handling
  3253. of drag &amp; drop events, and WTreeView now is able to start
  3254. dragging and handle dropping of item selections and other data.</dd>
  3255. <dt><a href="classWt_1_1JSignal.html">JSignal</a>:</dt>
  3256. <dd>You can now pass the original (keyboard/mouse) JavaScript event
  3257. as a parameter to custom signals.</dd>
  3258. <dt><a href="classWt_1_1WTreeView.html">WTreeView</a>:</dt>
  3259. <dd>access mouse event in itemClicked, doubleClicked and
  3260. mouseWentDown signals.</dd>
  3261. <dt><a href="classWt_1_1WServer.html">WServer</a>:</dt>
  3262. <dd>Support for widget-set mode, allowing a Wt application to be
  3263. embedded in an existing web page/application.</dd>
  3264. </dl>
  3265. <h3>C) Changes that break backward compatibility</h3>
  3266. <p>This release does not contain changes that break existing
  3267. applications.</p>
  3268. <hr />
  3269. <h2>Release 2.2.1 (Nov 3, 2008)</h2>
  3270. <p>This release is as usually a mix of bug fixes, improvements and new
  3271. features.</p>
  3272. <p>We have made a significant change to the MVC system, which will
  3273. break existing program code in case you have implemented your own
  3274. models (i.e. deriving from <samp>WAbstractItemModel</samp>) or views
  3275. widgets (i.e. components that listen to model changes).</p>
  3276. <p>
  3277. The <samp>WAbstractItemModel</samp> interface was changed to support
  3278. hierarchical models. This means that most methods will now take an
  3279. extra parameter that specifies the parent <samp>WModelIndex</samp>,
  3280. and also all signals have now this extra parameter. Because the
  3281. parameter has a default value of WModelIndex() which corresponds to
  3282. the top level parent, the API is largely backwards compatible when
  3283. merely using the model. It is only those classes that reimplement the
  3284. interface, or listen to signal events, that are affected.
  3285. </p>
  3286. <p>
  3287. The immediate benefit of the new <samp>WAbstracItemModel</samp>
  3288. interface is that it allows us to implement View widgets like the new
  3289. <samp>WTreeView</samp> widget.
  3290. </p>
  3291. <hr />
  3292. <h2>Release 2.2.0 (Sept 12, 2008)</h2>
  3293. <p>This release has a rather substantial rewrite (and simplification)
  3294. of Wt's bootstrapping process. In the past, Wt used a frameset trick
  3295. to be able to load the AJAX-based skeleton when JavaScript was
  3296. available. Isntead, now, the entire AJAX-based stuff is loaded
  3297. directly into the bootstrap page. A benefit of the new approach is
  3298. that we avoid iframe tricks, which have been deprecated from strict
  3299. HTML and XHTML. But, it was in fact motivated in the first place to
  3300. support all major browsers for a new internal path API. This new API
  3301. allows to fully support URL changes and bookmarks in a unified way
  3302. (i.e. it works equally when the browser supports AJAX, no JavaScript,
  3303. or is a bot such as google bot).</p>
  3304. <p>As a consequence, this release contains the following changes that
  3305. may break your application:</p>
  3306. <ul>
  3307. <li><samp>WMenu::enableBrowserHistory()</samp> and <samp>WMenu::browserHistoryId()</samp> have been removed, use the new methods <samp>WMenu::setInternalPathEnabled()</samp> and <samp>WMenu::setInternalBasePath()</samp>
  3308. </li>
  3309. <li><samp>WMenuItem</samp> has been reorganized, and if you have
  3310. specialized WMenuItem you will need to adapt your reimplementation
  3311. to the new virtual interface. In the new interface, you need to
  3312. reimplement <samp>WMenuItem::createItemWidget()</samp> and
  3313. <samp>WMenuItem::updateItemWidget()</samp> allowing you to react to
  3314. item changes (internal path or text). The default implementation now
  3315. always uses a WAnchor.</li>
  3316. <li><samp>WApplication::setState()</samp>, <samp>WApplication::state()</samp> and <samp>WApplication::stateChanged</samp> have been deprecated. It is stronly advised that you use the new internal path API instead. This does require you to treat different parts of the state as a file hierarchy. See the <samp>WApplication::setInternalPath() documentation</samp>.
  3317. </li>
  3318. </ul>
  3319. <p>
  3320. The following methods have been deprecated (but are still supported):
  3321. </p>
  3322. <ul>
  3323. <li><samp>WTable::numRows()</samp> has been renamed
  3324. to <samp>WTable::rowCount()</samp>.</li>
  3325. <li><samp>WTable::numColumns()</samp> has been renamed
  3326. to <samp>WTable::columnCount()</samp>.</li>
  3327. </ul>
  3328. <hr />
  3329. <h2>Release 2.1.5 (July 25, 2008)</h2>
  3330. <p>Wt now installs its include files in a Wt/ subdirectory. You may
  3331. want to change your build files to pick up this new include directory,
  3332. or, change your code to scope the include files to look like
  3333. #include&lt;Wt/WLineEdit&gt; instead of #include&lt;WLineEdit&gt;</p>
  3334. <p>This release contains the following changes that may break your
  3335. application:</p>
  3336. <ul>
  3337. <li><samp>WText</samp> will validate XHTML text when it is set to the
  3338. widget. The old behaviour was to validate only before
  3339. rendering. The change was needed to be able to react to XML parse
  3340. errors. As a consequence if you are creating a WText with text that
  3341. is not valid XML, followed by a
  3342. call <samp>setFormatting(WText::PlainFormatting)</samp>, you should
  3343. change this now to use the new <samp>WText</samp> constructor which
  3344. takes the TextFormat as a new argument: <samp>new WText(text,
  3345. Wt::PlainText, parentWidget)</samp>
  3346. </li>
  3347. <li><samp>WContainerWidget::setLayout(WLayout *layout, bool fitWidth, bool
  3348. fitHeight)</samp> has been replaced with the more generic
  3349. <samp>WContainerWidget::setLayout(WLayout *layout, int
  3350. alignment)</samp>.
  3351. </li>
  3352. </ul>
  3353. <p>
  3354. The following methods and enumerations have been deprecated (but are
  3355. still supported):
  3356. </p>
  3357. <ul>
  3358. <li><samp>enum WText::Formatting</samp> has been renamed
  3359. to <samp>Wt::TextFormat</samp>. The old values map as follows on new
  3360. values:
  3361. <ul>
  3362. <li><samp>WText::XHTMLFormatting</samp> becomes <samp>Wt::XHTMLText</samp>;</li>
  3363. <li><samp>WText::XHTMLUnsafeFormatting</samp> becomes <samp>Wt::XHTMLUnsafeText</samp></li>
  3364. <li><samp>WText::PlainFormatting</samp> becomes <samp>Wt::PlainText</samp></li>
  3365. </ul>
  3366. </li>
  3367. <li><samp>WText::setFormatting()</samp> has been renamed
  3368. to <samp>WText::setTextFormat()</samp> and
  3369. <samp>WText::formatting()</samp> has been renamed
  3370. to <samp>WText::textFormat()</samp>.</li>
  3371. </ul>
  3372. <hr />
  3373. <h2>Release 2.1.4 (July 4, 2008)</h2>
  3374. <p>The following has changed for building Wt:</p>
  3375. <ul>
  3376. <li>The CMake variable CONFIGURATION (which defaulted to
  3377. /etc/wt/wt_config.xml) is no longer used, but instead there is now a
  3378. CONFIGDIR (/etc/wt/) which is used to store configuration
  3379. files.
  3380. </li>
  3381. </ul>
  3382. <p>The following has changed in the wt_config.xml file:</p>
  3383. <ul>
  3384. <li>The &lt;valgrind-path&gt; setting for the FCGI connector may now
  3385. be a command-line including arguments</li>
  3386. </ul>
  3387. <p>This release should not contain changes that may break your
  3388. application.</p>
  3389. <hr />
  3390. <h2>Release 2.1.3 (May 20, 2008)</h2>
  3391. <p>This release should not contain changes that may break your
  3392. application.</p>
  3393. <hr />
  3394. <h2>Release 2.1.2 (April 14, 2008)</h2>
  3395. <p>The following changes may break your application build:</p>
  3396. <ul>
  3397. <li><samp>WTreeNode::expanded()</samp> has been renamed
  3398. to <samp>WTreeNode::isExpanded()</samp>.</li>
  3399. </ul>
  3400. <hr />
  3401. <h2>Release 2.1.1 (April 10, 2008)</h2>
  3402. <p>This release should not break any of your applications, but we did
  3403. deprecate some methods and enumeration types. You are advised to
  3404. migrate to the replacements methods since we will discontinue support
  3405. for the older ones in the future.</p>
  3406. <p>
  3407. The following methods and enumerations have been deprecated:
  3408. </p>
  3409. <ul>
  3410. <li><samp>enum SelectionUnit</samp> has been renamed
  3411. to <samp>SelectionBehavior</samp>. The old values map as follows on new
  3412. values: <samp>CellSelection</samp> becomes <samp>SelectItems</samp>;
  3413. <samp>RowSelection</samp> becomes <samp>SelectRows</samp>.</li>
  3414. <li><samp>WWidget::setOffset(int sides, WLength)</samp> is deprecated,
  3415. and the new method is <samp>WWidget::setOffsets(WLength, int
  3416. sides)</samp>: the argument order has been switched to be consistent
  3417. with the method signature of <samp>setMargin()</samp>
  3418. and <samp>setPadding()</samp>.</li>
  3419. <li><samp>WResource::suggestFilename()</samp> has been renamed to
  3420. <samp>WResource::suggestFileName()</samp>.</li>
  3421. </ul>
  3422. <p>
  3423. The following changes affect run-time behaviour:
  3424. </p>
  3425. <ul>
  3426. <li><samp>WTreeNode</samp> now supports a policy for when to show a child count
  3427. indication. The old behaviour was to always show the child count.
  3428. Now, by default this option is disabled. Use
  3429. <samp>WTreeNode::setChildCountPolicy(Enabled)</samp> to get the old
  3430. behaviour back, if you wish.</li>
  3431. </ul>
  3432. <hr />
  3433. <h2>Release 2.1.0</h2>
  3434. <p>The library dependencies have changed slightly.</p>
  3435. <p>
  3436. To build Wt 2.1.0, you need:
  3437. </p>
  3438. <ul>
  3439. <li>CMake 2.4 or later</li>
  3440. <li>boost 1.34.1 (boost 1.33.1 might should still work, but is
  3441. not recommended)</li>
  3442. <li>asio 0.3.9: either the boost or non-boost version <i>(only
  3443. for the http connector)</i></li>
  3444. <li><i>optionally</i>, openssl for HTTPS support <i>(only for the http
  3445. connector)</i></li>
  3446. <li><i>optionally</i>, libz for gzip compression support <i>(only for
  3447. the http connector)</i></li>
  3448. <li>fcgi library, including C++ bindings (libfcgi++)<i>(only for the
  3449. fcgi connector)</i></li>
  3450. </ul>
  3451. <p>Furthermore, the Wt::Ext library has been upgraded and now wraps
  3452. around the extjs 2.x library, instead of extjs 1.x.</p>
  3453. <p>Some API changes may need a porting effort:
  3454. </p>
  3455. <ul>
  3456. <li><samp>Ext::ProgressDialog</samp>: doesn't show by default, you
  3457. need to call show() to show the dialog.</li>
  3458. <li><samp>Ext::ContentPanel</samp>, <samp>Ext::BorderLayout</samp> have
  3459. been removed. They have been replaced with a stand-alone layout
  3460. system, that may manage contents in
  3461. an <samp>Ext::Container</samp>. The layout system provides
  3462. <samp>WBorderLayout</samp> and several other layout managers.</li>
  3463. <li><samp>WSignalMapper</samp> has been expanded to allow mapping of
  3464. signals with an extra argument, which is passed to the mapped
  3465. signal. Because of this, the signature of the class has been
  3466. expanded with an extra template argument. If you have forward
  3467. declarations to <samp>WSignalMapper</samp>, you will need to modify
  3468. these too (or simply include <samp>WSignalMapper</samp>).</li>
  3469. <li><samp>WAnchor</samp>: no longer uses a <samp>WLabel</samp> internally,
  3470. and the label-releated methods have been removed.</li>
  3471. </ul>
  3472. <hr />
  3473. <h2>Release 2.0.5</h2>
  3474. <ul>
  3475. <li><samp>WDialog</samp> (and <samp>WMessageBox</samp>) usage changed, and
  3476. is now more like Qt. When you are not
  3477. using <samp>WDialog::exec()</samp> or <samp>WMessageBox::show(...)</samp>,
  3478. then you must explictly <samp>show()</samp> the dialog to show it. You
  3479. can now also <samp>hide()</samp> the dialog if you want.
  3480. </li>
  3481. <li>
  3482. Moved several enums from within classes to the Wt namespace. This is
  3483. likely to break your code at compile time when you are using one. The
  3484. fix is to remove the class scope from the enum type or value.
  3485. <ul>
  3486. <li><samp>WScrollArea::Orientation</samp> -> <samp>Wt::Orientation</samp></li>
  3487. <li><samp>WMenu::Orientation</samp> -> <samp>Wt::Orientation</samp></li>
  3488. <li><samp>WMessageBox::StandardButton</samp> -> <samp>Wt::StandardButton</samp></li>
  3489. <li><samp>WMessageBox::Icon</samp> -> <samp>Wt::Icon</samp></li>
  3490. </ul>
  3491. </li>
  3492. </ul>
  3493. <hr />
  3494. <h2>Release 2.0.4</h2>
  3495. <i>Important: 2.0.4a contains a fix for a bug introduced in 2.0.4 that
  3496. reset the deploy-path in wthttpd.</i>
  3497. <p>
  3498. This release adds a few new features:
  3499. </p>
  3500. <ul>
  3501. <li><samp>WComboBox</samp> (and <samp>WSelectionBox</samp>) now use
  3502. a <samp>WAbstractItemModel</samp> in a more flexible model/view
  3503. system.</li>
  3504. <li>Stylesheets may be browser-conditional (by Patrick Fischer)</li>
  3505. <li>wthttpd may serve custom error pages (by Patrick Fischer)</li>
  3506. <li><samp>WResource</samp> can now access HTTP GET or POST query
  3507. arguments. This will break your code (at compile time) if you
  3508. have implemented your own <samp>WResource</samp>, since the signature of the
  3509. <samp>streamResourceData()</samp> method has been changed to pass
  3510. the arguments map as a second parameter.</li>
  3511. </ul>
  3512. <hr />
  3513. <h2>Release 2.0.1</h2>
  3514. <p>
  3515. This release fixes some build-related problems, as well as smaller
  3516. bugs. The main improvement in this release is related to use of Wt
  3517. in resource-constrained embedded systems.
  3518. </p>
  3519. <p>
  3520. The most visible change is that the dependency on the Xerces C++ XML
  3521. library was dropped in favour of the much smaller Mini-XML
  3522. library. The draw-back is a reduction of supported character
  3523. encodings to only UTF8 and UTF16, next to the default locale character
  3524. encoding (which is typically an 8-bit flavour).
  3525. </p>
  3526. <p>
  3527. When using the built-in httpd, you can now disable support for SSL
  3528. at compile time, freeing a number of SSL-related dependencies.
  3529. </p>
  3530. <p>
  3531. In the API, more comparison operators (== and !=) were added to
  3532. WString, and a WViewWidget was added for simple MVC widgets (with
  3533. the main purpose to reduce session-state at the server).
  3534. </p>
  3535. <hr />
  3536. <h2>Release 2.0.0</h2>
  3537. <p>
  3538. This release contains numerous changes which are likely to cause some
  3539. porting effort for Wt 1.1.x applications to work properly.
  3540. </p>
  3541. <p>
  3542. <b>If you are upgrading from a 1.99.x release, you will notice that
  3543. some of these notes have actually evolved, especially with respect to
  3544. WString and unicode support.</b>
  3545. </p>
  3546. <p>
  3547. Here is a list of changes with respect to Wt 1.1.x that are likely
  3548. to require your attention, and some tips on how to do the porting.
  3549. </p>
  3550. <h4>1) Namespace Wt</h4>
  3551. <p>All Wt classes are now inside the namespace <samp>Wt</samp>.</p>
  3552. <p>To handle this change, you will need to:
  3553. </p>
  3554. <ul>
  3555. <li>Wrap forward declarations to Wt widgets in header files inside a
  3556. Wt namespace, or <samp>#include &lt;WFwdDeclarations&gt;</samp></li>
  3557. <li>and scope all Wt classes with <samp>Wt::</samp>, </li>
  3558. <li>or import the Wt namespace: <samp>using namespace Wt;</samp></li>
  3559. </ul>
  3560. <h4>2) WString</h4>
  3561. <p>
  3562. Previously, most widgets offered double methods that either used a
  3563. <samp>std::string</samp> for literal text, or a
  3564. <samp>WMessage</samp> for localized text.
  3565. </p>
  3566. <p>
  3567. In the new release, widgets use <samp>Wt::WString</samp> for both
  3568. literal and localized text. WString offers unicode support for both
  3569. literal as well as localized text. To create a literal string,
  3570. simply assign or construct a Wt::WString from that string. The
  3571. strings supported or both narrow and wide C and C++ strings. UTF8
  3572. encoded narrow strings may also be converted. To create a localized
  3573. string, use one of the static methods <samp>WString::tr(const
  3574. std::string key)</samp> and <samp>WWidget::tr(const std::string
  3575. key)</samp>.
  3576. </p>
  3577. <p>
  3578. To help with legacy code, WMessage is now a typedef for WString, but
  3579. is deprecated and should not be used in new code. Unfortunately, the
  3580. constructors <samp>WMessage(const char *text)</samp> and
  3581. <samp>WMessage(const std::string text)</samp>, changed meaning!
  3582. While previously they took a key to construct a localized message,
  3583. they now take a literal text (the exact opposite!), since they are
  3584. in fact plain WString() constructors. As a consequence your application
  3585. will display key values instead of resolving those values (but will
  3586. not break entirely).
  3587. </p>
  3588. <p>
  3589. The new approach offers the benefit of only requiring one method
  3590. signature for both literal and localizable text. This not only
  3591. simplifies our work, but more importantly by using
  3592. <samp>WString</samp> for displayed text in the API of your own
  3593. widgets, localization (including the automatic language switching)
  3594. comes automatically and is decided on by the user of your widget.
  3595. </p>
  3596. <p>
  3597. Fortunately, there is a straightforward trick to handle most consequences
  3598. of this change:
  3599. </p>
  3600. <ul>
  3601. <li>Replace <samp>WMessage(...)</samp> with <samp>tr(...)</samp>,</li>
  3602. <li>add <samp>.value()</samp> when using the result of functions such
  3603. as <samp>WText::text()</samp>,</li>
  3604. <li>change your own classes to use <samp>WString</samp>
  3605. wherever they expect some text that will be displayed, instead of
  3606. std::string or WMessage.</li>
  3607. </ul>
  3608. <h4>3) Wide string API</h4>
  3609. <p>
  3610. Since Wt 2.0.0, the API for Wt has been changed to use WString
  3611. instead of C++ narrow strings. WString supports both narrow and wide
  3612. strings, and provides conversion between both. It does not provide
  3613. string operations, however, and instead acts as a string
  3614. container. You should convert to a C++ string type to perform
  3615. operations. You should also not use WString outside of the user
  3616. interface part of your application.
  3617. </p>
  3618. <h4>4) No more wmain()</h4>
  3619. <p>
  3620. Previously, the Wt library implemented the <samp>main(int argc, char
  3621. **argv)</samp> function, and called a <samp>wmain()</samp> function
  3622. which created the WApplication instance.
  3623. </p>
  3624. <p>
  3625. Wt 2.0.0 allows multiple applications to run within a single process.
  3626. Therefore, the <samp>WApplication::exec()</samp> approach was no longer
  3627. feasible. The new approach requires that:
  3628. </p>
  3629. <ul>
  3630. <li>your main function should look like this:
  3631. <pre>
  3632. int main(int argc, char **argv)
  3633. {
  3634. return Wt::WRun(argc, argv, &amp;createApplication);
  3635. }
  3636. </pre>
  3637. </li>
  3638. <li>where createApplication is a function of the following
  3639. signature:
  3640. <pre>
  3641. Wt::WApplication *createApplication(const Wt::WEnvironment&amp; env)
  3642. {
  3643. // return a new application object.
  3644. }
  3645. </pre>
  3646. </li>
  3647. </ul>
  3648. <h4>5) Configuration in /etc/wt/wt_config.xml</h4>
  3649. <p>
  3650. Wt 2.0.0 uses a configuration file for a number of settings that
  3651. could previously be configured at build time of the library, or
  3652. in the API. The latter functions are:
  3653. </p>
  3654. <ul>
  3655. <li><samp>WApplication::setMaximumRquestSize()</samp></li>
  3656. <li><samp>WApplication::setIdleTimeout()</samp></li>
  3657. </ul>
  3658. <h4>6) Removed obsolete classes</h4>
  3659. <p>
  3660. Wt 2.0.0 removed a number of classes that were still in the widget
  3661. tree, but have been obsoleted by more flexible classes:
  3662. </p>
  3663. <ul>
  3664. <li><samp>WAbstractTab</samp>, <samp>WButtonTab</samp>, and <samp>WTabWidget</samp> are obsoleted by the more flexible <samp>WMenu</samp>.</li>
  3665. </ul>
  3666. <h4>7) Deprecate boost::regex from WRegExpValidator API</h4>
  3667. <p>
  3668. The constructor and methods that takes a boost::regex object in
  3669. the WRegExpValidator API have been deprecated, to remove the dependency
  3670. on boost from the public API. You should consider the std::string based
  3671. construtor and method instead.
  3672. </p>
  3673. <h4>8) WObject::emit() has been removed.</h4>
  3674. <p>
  3675. Since Wt 1.99.1, we have removed WObject::emit() function. Instead,
  3676. you may simply call the signal with its arguments, or use the
  3677. explicit emit method (recommended).</p>
  3678. <p>
  3679. To adapt your code, you should:
  3680. </p>
  3681. <ul>
  3682. <li>Replace all <samp>emit(MySignal(...))</samp> with <samp>MySignal(...)</samp> or <samp>MySignal.emit(...)</samp>
  3683. </li>
  3684. </ul>
  3685. <h4>9) WResource::streamResourceData() signature has changed.</h4>
  3686. <p>
  3687. Since Wt 2.0.0, WResource::streamResourceData() returns a boolean value
  3688. which indicates if all data has been streamed. If you have reimplemented
  3689. WResource for your applications, you must update the signature and return
  3690. true.
  3691. </p>
  3692. <p>
  3693. The change is relevant only within the new server-push support that is
  3694. now in Wt 2.0.0. This allows you to continuously append to the content
  3695. of a resource.
  3696. </p>
  3697. <h4>10) Rename of WJavascriptSlot to JSlot.</h4>
  3698. <hr />
  3699. <h2>Release 1.1.7</h2>
  3700. This release contains lots of additions and improvements, but should
  3701. be completely backwards-compatible.
  3702. <hr />
  3703. <h2>Release 1.1.6</h2>
  3704. There is one change which will impact the behaviour of current applications:
  3705. Currently, on exit, by default the last widget updates are shown. So, no
  3706. more good-bye message. This changes slightly when one needs to redirect()
  3707. to a new location: not when WApplication::exec() returns, but during the
  3708. same event handling as when calling WApplication::quit().
  3709. <hr />
  3710. <h2>Release 1.1.5</h2>
  3711. Nothing special...
  3712. <hr />
  3713. <h2>Release 1.1.4</h2>
  3714. Changes to impact everybody, since the previous release:
  3715. <ul>
  3716. <li>
  3717. The dependency for libxml++ (and its large number of dependencies) has
  3718. been dropped, and replaced by Xerces-C++ (which has no further dependencies).
  3719. </li>
  3720. <li>
  3721. Wt programs need to link against libwtfcgi.so, instead of libwt.so. In the
  3722. future Wt will also support different web-connnector systems besides
  3723. FastCGI.
  3724. </li>
  3725. <li>
  3726. The signatures of wmain() and WApplication constructor have changed:
  3727. new signatures are:
  3728. <ul>
  3729. <li><samp>int wmain(const WEnvironment&amp; env)</samp></li>
  3730. <li><samp>WApplication::WApplication(const WEnvironment&amp; env)</samp></li>
  3731. </ul>
  3732. </li>
  3733. </ul>
  3734. <h3>Other changes:</h3>
  3735. <ul>
  3736. <li>Support for unicode is implemented, but perhaps needs more testing
  3737. by non-Western people ? Only UTF-8 is supported currently.</li>
  3738. <li>Addition of a WTimer class -- see mission example.</li>
  3739. <li>Many bug fixes which should make Wt more robust against illegal CGI
  3740. requests (which are ignored), and now Wt should exit cleanly in more
  3741. (all?) circumstances.</li>
  3742. <li>Addition of feed-back for pending AJAX requests (does not work yet on
  3743. IE).</li>
  3744. <li>Support for style sheets is improved: now inline decoration styles
  3745. will override style sheet styles. See hangman or treelist examples.</li>
  3746. <li>The browser can be redirected to a new page. This is useful when the
  3747. application is terminated -- or to change during the application from
  3748. HTTP to HTTPS and back.</li>
  3749. <li>WValidationStatus API has changed -- less complicated now.</li>
  3750. </ul>
  3751. </body>
  3752. </html>