-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReleaseNotes.html
4213 lines (3671 loc) · 154 KB
/
ReleaseNotes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<style type="text/css">
dt { font-weight: bold; }
h3 { text-decoration: underline; }
dd { margin-top: 10px; margin-bottom: 10px; }
dd p { margin-top: 0px; }
dd div { margin: 10px 0px; }
</style>
<title>Wt Release notes</title>
</head>
<body>
<h1>Wt Release notes</h1>
This file lists important notes on migrating existing applications to
newer version of Wt. It lists changes in the library that may break
the way you build Wt, the way you configure Wt or the Wt API and
behaviour.
<h2>Release 3.3.6 (July 13, 2016)</h2>
<p>
This release has a focus on bug fixes and some new features:
</p>
<dl>
<dt>
Support for WebSocket compression in wthttp
</dt>
<dd>
WebSocket traffic is now compressed, if possible.
</dd>
<dt>
Time entry improvements
</dt>
<dd>
<a href="classWt_1_1WTimeEdit.html">WTimeEdit</a> now supports AM/PM in its format,
<a href="classWt_1_1WTimeValidator.html">WTimeValidator</a> now allows to select a minimum
and maximum time and supports multiple formats,
<a href="classWt_1_1WTimePicker.html">WTimePicker</a> can now work up to
millisecond precision, and is now rendered with spinboxes.
</dd>
<dt>
Skia version updated
</dt>
<dd>
The Skia backend for <a href="classWt_1_1WRasterImage.html">WRasterImage</a> is now compatible with more recent versions of Skia. If you need
to support an older version of Skia, use <tt>-DWT_SKIA_OLD=ON</tt>. The Skia version of the Windows builds
has been updated from 394c7bb to 834d9e1.
</dd>
<dt>
Wt::Dbo
</dt>
<dd>
<ul>
<li>
It's now possible to mark foreign keys as literal with a “>” prefix, so Wt::Dbo can better map to
an existing schema. Note that for consistency, this also means that the schema generated for ManyToMany relationships
has been changed to include the id column names if a joinId has been specified. If you specify a joinId for ManyToMany
relationships, you'll have to change it to include a “>” before it in order to keep the same database schema.
</li>
<li>
The <tt>size</tt> argument of <a href="group__dbo.html#gac089020eff000d9e2c4ef72cf715bd21">belongsTo()</a> has been
removed, since it served no actual purpose.
</li>
</li>
</dd>
<dt>
Scroll position
</dt>
<dd>
It's now possible to retrieve the scroll position of a
<a href="classWt_1_1WContainerWidget.html">WContainerWidget</a>
with
<a href="classWt_1_1WContainerWidget.html#a0a7ce553b2b5107412a3bed8700355cb">scrollTop()</a>
and
<a href="classWt_1_1WContainerWidget.html#a9a60d382fcd1490081087ce4f3649864">scrollLeft()</a>.
</dd>
<dt>
Invalidation of stateless slots
</dt>
<dd>
<a href="classWt_1_1WObject.html#a6dde4ce1e833a9966709daf3c0dedc9f">WObject::isNotStateless()</a>
has been added, so functions called from functions that are marked as stateless can unmark
it as stateless, reverting to plain server-side dynamic UI updates.
</dd>
<dt>
<a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">Auth::Dbo::UserDatabase</a>
</dt>
<dd>
The <a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">Dbo UserDatabase</a> implementation now
compares e-mail addresses case insensitively. The <a href="classWt_1_1Auth_1_1AuthService.html">AuthService</a>
can be passed in the constructor, so the <a href="classWt_1_1Auth_1_1Dbo_1_1UserDatabase.html">UserDatabase</a>
knows whether the IdentityPolicy is EmailAddressIdentity.
</dd>
<dt>
Charting library
</dt>
<dd>
There have been many bug fixes and improvements to the charting library and the interactive features
introduced in Wt 3.3.5:
<ul>
<li>Series <a href="classWt_1_1Chart_1_1WCartesianChart.html#ad05997dbc2d59862e38272985abda9a9">can be selected</a>
on a <a href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a>.
LineSeries <a href="classWt_1_1Chart_1_1WCartesianChart.html#a6078b67f146e686bd482d846dfe463cb">can be manipulated</a>.</li>
<li><a href="classWt_1_1Chart_1_1WAxis.html#a16d188d56c2b62b7b3f2ddb6fa96d7cc">WAxis::setZoom()</a> and
<a href="classWt_1_1Chart_1_1WAxis.html#a2f6a11d9d47036f8806c5a8412dfd24c">WAxis::setPan()</a>
have been deprecated in favor of the easier to use
<a href="classWt_1_1Chart_1_1WAxis.html#a0be187399e7cb4877f2c5e3837eba6ea">WAxis::setZoomRange()</a>.
You can listen to changes in zoom range with the
<a href="classWt_1_1Chart_1_1WAxis.html#a7e432917f0f23f18db3a043397a81904">WAxis::zoomRangeChanged()</a> signal.</li>
<li>Series set as hidden will still be shown on a <a href="classWt_1_1Chart_1_1WAxisSliderWidget.html">WAxisSliderWidget</a>.
The typical application for this is to show a coarse model on the slider widget, and a more detailed one on the chart.</li>
<li>
In order to provide better performance for charts containing a lot of data, the charting library has been
overhauled to use <a href="classWt_1_1Chart_1_1WAbstractChartModel.html">WAbstractChartModel</a>s,
instead of <a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>s, avoiding the use of
boost::any. The <a href="classWt_1_1Chart_1_1WStandardChartProxyModel.html">WStandardChartProxyModel</a>
wraps a <a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a> so that those can still be used with charts.
Note that this changes the return type of the
<a href="classWt_1_1Chart_1_1WAbstractChart.html#a477522bb1720fb20006c81be455b3366">WAbstractChart::model()</a> method.
</li>
<li>A chart's axes can now be <a href="classWt_1_1Chart_1_1WAxis.html#a2bb7c8ec67ed2ff0b57953ea40cd87ef">inverted</a>.
<li>Stacked series: negative values are now stacked separately from positive values.</li>
<li><a href="classWt_1_1Chart_1_1CurveLabel.html">Curve labels</a> can now be drawn on charts, so that curves,
or certain points on curves, can be labeled.</li>
<li><a href="classWt_1_1Chart_1_1WAxis.html#afca24479982f10759be69703de5f4cd4">WAxis::getLabelTicks()</a>
has been modified with an argument
<a href="structWt_1_1Chart_1_1AxisConfig.html">AxisConfig</a>, so that different axis ticks can be drawn depending
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.
<a href="classWt_1_1Chart_1_1WAxis.html#a71928aabf753854274d753e266aabfc2">WAxis::setLabelTransform()</a>
as a simpler method to change the tick
labels depending on the side the axis is drawn on.</li>
<li><a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> is no longer a simple value class. The interface of
<a href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a> has been modified to reflect that: the old
interface that copies WDataSeries over has been deprecated in favor of an interface that takes pointers to
<a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a>.</li>
<li>It's now possible to <a href="classWt_1_1Chart_1_1WDataSeries.html#ae668a1a90ccf668e426fc2d9e370bf2c">specify a different model</a>
for each <a href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a>.</li>
<li><a href="classWt_1_1Chart_1_1WPieChart.html#a0ff69f626136fa56e7de27f6a10d770d">Chart::WPieChart::createLabelWidget()</a>
has been added, making it possible to replace the labels of a
<a href="classWt_1_1Chart_1_1WPieChart.html">WPieChart</a>
with widgets.</li>
<li>Tooltips on charts can now be deferred, which can improve performance of interactive charts, and if you have a lot of tooltips.</li>
</ul>
</dd>
</dl>
<hr />
<h2>Release 3.3.5 (Dec 31, 2015)</h2>
<p>
This release has a focus on bug fixes but also one or two new features:
</p>
<dl>
<dt>
<a href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a>
</dt>
<dd>
WCartesianChart has several new features that allow interaction with the
chart without server roundtrips. These features include zoom, pan,
crosshair and follow curve functionality.
This is only available if the chart is drawn
on an HTML canvas. This is the default rendering method on modern browsers.
When enabled, the crosshair will follow mouse movement,
and show in the top right corner the coordinate
(according to X axis and the first Y axis) corresponding to this position.
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WAxisSliderWidget.html">Chart::WAxisSliderWidget</a>
</dt>
<dd>
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.
</dd>
<dt>
<a href="classWt_1_1WPainter.html">WPainter</a>, <a href="classWt_1_1WJavaScriptHandle.html">WJavascriptHandle</a>, <a href="classWt_1_1WCanvasPaintDevice.html">WCanvasPaintDevice</a>
</dt>
<dd>
The above functionality was implemented by making client-side interaction possible for a scene rendered
on WCanvasPaintDevice. For this purpose, for several primitives used to draw on a canvas, we provide
a JavaScript handle and complementary API to manipulate these objects in JavaScript code. In this way you
can keep the bulk of the painting code in C++, and allow manipulation from within JavaScript.
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>.
</dd>
<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>
<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.
</dd>
<dt>A new <a href="namespaceWt.html#a6c93a6e97016801a310275457e43f333">TargetDownload</a> target was added for links.</dt>
<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.
</dd>
<dt>The included SQLite version was updated</dt>
<dd>
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>
</dd>
<dt>Support for seconds editing in <a href="classWt_1_1WTimePicker.html#a4d19d3ad8bdf0a9a3e35d84f3d298994">WTimePicker</a></dt>
<dd>WTimePicker was missing the seconds, we've also added the setSecondStep() method.
</dd>
<dt><a href="classWt_1_1WCheckBox.html#a2d741874682e9a683d40527b03615d32">WCheckBox::setPartialStateSelectable()</a></dt>
<dd>Before it was only possible to set the partial state of the WCheckbox when creating the Widget.
We've added a method WCheckBox::setPartialStateSelectable(bool) which will allow the user to select indeterminate state. This is false by default;
</dd>
<dt>New client side connection monitor</dt>
<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..)
The monitor will trigger the onChange method of the provided Javascript object</dd>
<dt>Support for custom HTML tags for a widgets</dt>
<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.
</dd>
<dt>Wt::Dbo: allow to forward declare related classes</dt>
<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>
</dl>
<hr>
<h2>Release 3.3.4 (Mar 25, 2015)</h2>
<p>
This release has a focus on bug fixes but also one or two new features,
of which the following are the most notable:
</p>
<dl>
<dt>
Support for dedicated session processes with wthttp connector.
</dt>
<dd>
Until now, only the FastCGI connector allowed the use of dedicated
processes for individual sessions, by spawning a new process for
each new session. This functionality has also been added to the
wthttp connector. In this implementation, the manager process will
act as a reverse proxy to the dedicated session processes.
This has as major benefit that there is no longer a choice between
dedicated session processes on the one hand (supported by FastCGI)
and support for WebSockets on the other hand (supported by the
built-in httpd). In fact, there remains little reason to prefer
FastCGI over the built-in httpd: in those situations where you
want a proper http server as a front-end, you can still use
HAproxy or NGINX (or Apache, if you must) as a reverse proxy to
wthttp.
</dd>
<dt>
<a href="classWt_1_1WIdentityProxyModel.html">WIdentityProxyModel</a>
</dt>
<dd>
This new proxy model simply forwards the structure of the source
model, without any transformation, and can be used for
implementing proxy models that reimplement data(), but retain all
other characteristics of the source model.
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WAbstractChart.html#ac895fb1d1437f51629b49246eda66e3d">Chart::WAbstractChart::setAutoLayoutEnabled()</a>
</dt>
<dd>
Until now, you were responsible for configuring the padding around
the chart area to accomodate for axis labels, titles, and
legend. While this is still the default behaviour, we added an
option to let the chart derive the required padding (using
approximate font-metrics available server-side).
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WCartesianChart.html#a1c97590b1bd4ee9324822967d6e72333">Chart::WCartesianChart::setAxis()</a>
</dt>
<dd>
Whereas previously a chart axis was a "value class", it is now a
proper polyymorphic class, and you can provide your own
implementation. In this way you can customize things like for
example label strings.
</dd>
<dt>
Several new features in the 3D charts library.
</dt>
<dd>
<ul>
<li><a href="classWt_1_1Chart_1_1WAbstractDataSeries3D.html#a0ac582c98fe58f36e0d60f11b5627656">
setPointSprite()</a>: ability to define sprites for drawing
a data series</li>
<li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#a8f99da2ab56c80de400c90992c35f882">pickSurface()</a>:
find out which points on a surface are under a given pixel</li>
<li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#afc0509b2dff1fa8dbb970266de21f7db">pickBar()</a>:
find out which points on a bar on are under a given pixel.</li>
<li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#a09c065c802ff9b21d3c2a543e48f58b2">
setIsoLevels()</a>:
draw iso lines (on the ground plane of the chart) corresponding
to selected z values.</li>
<li><a href="classWt_1_1Chart_1_1WAbstractGridData.html#ad74945761f9bfcc2ced42487468c5480">
setClippingLinesEnabled()</a>:
ability to clip and optionally draw clipping planes
</li>
<li>
<a href="classWt_1_1Chart_1_1WCartesian3DChart.html#a8adb0ca981382e3e1435fe8e7fcf1d6e">
setIntersectionsEnabled()</a>:
ability to draw surface-surface intersection lines.
</li>
</ul>
</dd>
</dl>
<hr>
<h2>Release 3.3.3 (May 27, 2014)</h2>
<p>
This release has a focus on bug fixes but also one or two new features:
</p>
<dl>
<dt>
Improved Meta header support.
</dt>
<dd>
Because WApplication meta header API was restricted to only work
in certain circumstances, we have now added the ability to define
meta headers (with the option to apply them to specific user agents)
also in the configuration file.
</dd>
<dt>
<a href="classWt_1_1WWidget.html#ab4086c221a56e81dd067be47303b5862">WWidget::setDeferredToolTip()</a>
</dt>
<dd>
This function is an alternative to setToolTip(), useful when a
tooltip text is not trivial to fetch or create. Using this
function, the tool tip (HTML) text can now be loaded on-demand
instead of needing to be preset on (each) widget. This also works
for tooltips set from a WAbstractItemModel using the
new <a href="group__modelview.html#ga1d77c4de293aebfacbdde124de06b8b0">ItemHasDeferredTooltip</a>
item flag.
</dd>
<dt>
<a href="classWt_1_1WLineEdit.html#ae599502e317ed79d5a1a54dae12d3d10">WLineEdit::setInputMask()</a>
</dt>
<dd>
Support for input masks was added, which guides the user to enter
data in the correct format.
</dd>
</dl>
<hr>
<h2>Release 3.3.2 (March 12, 2014)</h2>
<p>
This release has a focus on bug fixes and a few larger new developments.
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1Chart_1_1WCartesian3DChart.html">3D Charts
(Chart::WCartesian3DChart, ...)</a>
</dt>
<dd>
A 3D charting library was added, based on
<a href="classWt_1_1WGLWidget.html">WGLWidget</a>, and integrated
with the existing 2D charting framework.
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1JsonSerializer.html">Dbo::JsonSerializer</a>
</dt>
<dd>
This is a utility which serializes Dbo objects (including
relations) to JSon, leveraging the same persist() function used
for serialization to the database.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1WBootstrapTheme.html">WBootstrapTheme</a>
</dt>
<dd>
Support for bootstrap version 3 was added, so now you have the
choice between botstrap version 2 or 3. Needless to say, you
should probably target version 3 for new development work if you
can live with its restricted browser support.
</dd>
<dt>
<a href="classWt_1_1WGLWidget.html">WGLWidget</a>
</dt>
<dd>
Next to the existing client-side WebGL-based implementation, a
server-side OpenGL-based implementation was added for fallback
scenarios where WebGL is not available, or when scene complexity
is so big that a server-side solution is simply better performing
because of lower bandwidth needed.
</dd>
<dt>
<a href="classWt_1_1WRasterImage.html">WRasterImage</a>
</dt>
<dd>
Next to the GraphicsMagick-based implementation, a skia-based
implementation has been added (which provides much higher
performance most notably on Windows platforms).
</dd>
<dt>
<a href="classWt_1_1WString.html">WString</a>
</dt>
<dd>
Until now, Wt defaults to the C++ global locale for conversion
between a string literal (std::string, const char *) and
WString. In practice, UTF-8 is an (increasingly) better choice
since UTF-8 is a pragmatic encoding covering the entire Unicode
range, and the encoding used by the library throughout. We've now
added a setDefaultEncoding() function which can be used to
configure the default encoding as UTF-8.
</dd>
<dt>
wthttp HTTP/WebSockets front-end server
</dt>
<dd>
We've given the http front-end a much needed overhaul, making it
deal better with long-lived connections typical for WebSockets
applications, and fix some nasty issues at the same time.
We also took the opportunity to optimize its performance by
reducing the number of system calls for writing request
responses, and by avoiding memory allocations during request parsing.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1WDatePicker.html">WDatePicker</a>,
<a href="classWt_1_1WDateEdit.html">WDateEdit</a>
</dt>
<dd>
The date pickers will now default to interpreting a single click
as a date selection and also closing the calendar.
</dd>
</dl>
<hr>
<h2>Release 3.3.1 (October, 16 2013)</h2>
<p>
This release has a focus on bug fixes and other cleanups after the big
changes that went into 3.3.0.
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WLocalDateTime.html">WLocalDateTime</a>
</dt>
<dd>
So far, the library only provided date/time classes that dealt with
UTC time (or that at least is the intended use). In this release
we have added functionality to also deal with date's in a specific
time zone, which includes this new type as well as improvements in
WDateTime to convert to local date time, and time zone information
in WEnvironment and WLocale.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1WComboBox.html">WComboBox</a>
</dt>
<dd>
The combo box now interprets LevelRole data to display headers
(using HTML <optgroup< elements). Another improvement is
that now the combobox saves its single selection while the model
is updated.
</dd>
<dt>
<a href="classWt_1_1WDialog.html">WDialog</a>
</dt>
<dd>
Modal dialogs can now be created and destroyed in any order
without confusing the 'silk screen'. We now also consistently
interpret an enter press in the dialog to invoke the default
button added to the dialog footer (if there is one).
</dd>
<dt>
<a href="classWt_1_1WMessageBox.html">WMessageBox</a>
</dt>
<dd>
Several improvements include the ability to indicate what buttons
are the default and escape buttons with setDefaultButton() or
button->setDefault() and setEscapeButton(), and the (long overdue)
implementation of icons!
</dd>
<dt>
<a href="classWt_1_1WTextEdit.html">WTextEdit</a>
</dt>
<dd>
We've added support for TinyMCE 4.
</dd>
<dt>
<a href="classWt_1_1Signal.html">Signal</a>
</dt>
<dd>
For boost versions 1.52 or later, we now support the
Boost.Signals2 library for the signals implementation.
</dd>
<dt>
<a href="namespaceWt_1_1Render.html">Render library</a>
</dt>
<dd>
We've added a CSS style sheet parser which will parse and apply
style rules in <style> blocks (or loaded through the API),
and expanded CSS support to much improvemed table rendering
(including border-collapse border model and repeated table
headers), relative/absolute positioning, and page-break-before/after
support.
</dd>
<dt>
<a href="classWt_1_1Auth_1_1AbstractUserDatabase.html">Auth::AbstractUserDatabase</a>
</dt>
<dd>
A setIdentity() method was added to modify an existing identity
(e.g. username) and updateAuthToken() was added to update an
existing token (e.g. keeping the expiration time but changing the
hash).
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1Query.html">Dbo::Query</a>
</dt>
<dd>
Added a reset() function which resets previous bound arguments.
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>
</dt>
<dd>
The model now implements toRawIndex() and fromRawIndex() methods to
allow selection to persist across layout changes (e.g. resorting).
</dd>
<dt>
<a href="group__json.html">Wt::Json (JSON library)</a>
</dt>
<dd>
We've added serialization functions to complement the parsing API.
</dd>
<dt>
<a href="group__mail.html">Wt::Mail (SMTP library)</a>
</dt>
<dd>
We've added attachment support, and optional indication of the local
sender date.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1WDate.html">WDate</a>,
<a href="classWt_1_1WDateTime.html">WDateTime</a>
<a href="classWt_1_1WTime.html">WTime</a>
</dt>
<dd>
We've deprecated the exceptions (Invalid[Date][Time]Exception)
that were thrown by these classes when one attempted to compute or
use an 'invalid' value. These exceptions are no longer thrown.
Instead, we now documented what value
(usually 'null') is returned when one attempts to do operations on
such a date/time class, which makes the behaviour more consistent
with how Qt's equivalent classes behave.
</dd>
<dt>
<a href="classWt_1_1WMessageBox.html">WMessageBox</a></dt>
<dd>
The buttons() method has been renamed to standardButtons(), and
buttons() now return the actual list of added buttons.
</dd>
</dl>
<hr>
<h2>Release 3.3.0 (April, 8 2013)</h2>
<p>
This release focusses on a reorganization of Wt's theme
infrastructure, with the objective of
supporting <a href="http://twitter.github.com/bootstrap/">Twitter's
Bootstrap CSS framework</a> as a new theme. At the same time we've
added a number of widgets for which Twitter Bootstrap provides
styling.
</p>
<p>It is our intention to support the Bootstrap theme (or more
specifically, the Bootstrap class names) alongside the themes we
already supported (which are based on our own class names). Ignoring
what Bootstrap brings, you should be able to upgrade to this release
without too much trouble, although you may need to adapt some CSS
stylesheets as we did reorganize a number of things which were
required for Bootstrap and were a good idea for our own CSS
stlesheets too.</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WTheme.html">WTheme</a>,
<a href="classWt_1_1WCssTheme.html">WCssTheme</a>,
<a href="classWt_1_1WBootstrapTheme.html">WBootstrapTheme</a>,
</dt>
<dd>
Theme support classes for Wt. The role of a theme is to:
<ul>
<li>Load the CSS stylesheets for a new session</li>
<li>Annotate newly created widgets with appropriate style
classes</li>
</ul>
</dd>
<dt>
<a href="classWt_1_1WDateEdit.html">WDateEdit</a>
</dt>
<dd>
Functionally almost the same as a WDatePicker, this class
specializes WLineEdit and is thus a WFormWidget, making it much
easier to use in WTemplateFormView.
</dd>
<dt>
<a href="classWt_1_1WLocale.html">WLocale</a>
</dt>
<dd>
This class supports localization for number formatting and
extends the simple localization support we had in the previous
versions of Wt (which as only effect had the selection of
a different language for the resource bundles). It's main
added value of native C++ support for localization is that it
also affects client-side handling and parsing of number values,
i.e. in <a href="classWt_1_1WIntValidator.html">WIntValidator</a> and
<a href="classWt_1_1WDoubleValidato.htmlr">WDoubleValidator</a>.
</dd>
<dt>
<a href="classWt_1_1WNavigationBar.html">WNavigationBar</a>
</dt>
<dd>
A navigation bar styles a menu as a typical top-level bar
(currently only styled in the Bootstrap Theme).
</dd>
<dt>
<a href="classWt_1_1WPopupWidget.html">WPopupWidget</a>
</dt>
<dd>
A base class to simplify the creation of popup widgets that
typically assist in editing or provide circumstancial information
for another widget.
</dd>
<dt>
<a href="classWt_1_1WSplitButton.html">WSplitButton</a>
</dt>
<dd>
A split button, which combines a button and a popup menu
(currently only styled in the Bootstrap Theme).
</dd>
<dt>
<a href="classWt_1_1WToolBar.html">WToolBar</a>
</dt>
<dd>
A button tool bar (currently only styled in the Bootstrap Theme)
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1backend_1_1MySQL.html">Dbo::MySQL</a>
</dt>
<dd>
A MariaDB/MySQL backend for Wt::Dbo. This is based on the work
from Paul Harrisson who maintained this backend so far outside the
Wt distribution. The backend has been designed for MariaDB, but
should work fine for MySQL as well.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1Mail_1_1Message.html">Mail::Message</a>
</dt>
<dd>
Added API support for additional SMTP headers.
</dd>
<dt>
<a href="classWt_1_1WDatePicker.html">WDatePicker</a>,
<a href="classWt_1_1WSuggestionPopup.html">WSuggestionPopup</a>
</dt>
<dd>
The setGlobalPopup() functionality has been deprecated and does no
longer have any effect, since a new improved algorithm is being
used to anchor the popup to the DOM which no longer requires this
workaround.
</dd>
<dt>
<a href="classWt_1_1WDialog.html">WDialog</a>
</dt>
<dd>
Addition of a footer() method that returns a container for dialog
footer elements, typically buttons.
</dd>
<dt>
<a href="classWt_1_1WFormModel.html">WFormModel</a>
</dt>
<dd>
Addition of a validator() function that returns the validator for
a field set using setValidator(),
</dd>
<dt>
<a href="classWt_1_1WGLWidget.html">WGLWidget</a>
</dt>
<dd>
Support for binary transfers which avoids serialization and
deserialization of floats to text.
</dd>
<dt>
<a href="classWt_1_1WPushButton.html">WPushButton</a>
</dt>
<dd>
A push button can now act as a toggle button, using setCheckable()
and related API (currently only styled in the Bootstrap Theme) and
can be linked to a popup menu using setMenu().
</dd>
<dt>
<a href="classWt_1_1WStackedWidget.html">WStackedWidget</a>
</dt>
<dd>
When switching between current widgets, the stacked widget will
now record and restore the current scroll position, providing a
much improved user experience when using the stacked widget for
the 'main' contents of an application.
</dd>
<dt>
<a href="classWt_1_1WStringListModel.html">WStringListModel</a>
</dt>
<dd>
Full support was added for storing data of all roles, lifting the
requirement to use another model such as WStandardItemModel for
simple MVC widgets like WComboBox or WSuggestionPopup simply to be
able to store UserRole data.
</dd>
<dt>
<a href="classWt_1_1WTemplate.html">WTemplate</a>
</dt>
<dd>
Added a new standard function (Functions::block) which allows the
definition and use of a macro block inside a placeholder, which is
in particular useful for forms which have repetitive formatting
for each field.
</dd>
<dt>
<a href="classWt_1_1WTemplateFormView.html">WTemplateFormView</a>
</dt>
<dd>
Several API improvements: A new setFormWidget() allows the
definition of the form widget for editing a field which
is a more useful alternative compared to reimplement
createFormWidget(). It also allows the optional
definition of functions to update the view/model values, which
avoids the need for specializing updateViewField() and
updateModelField() these latter two functions have been deprecated
in favour of two new functions updateViewValue() and
updateModelValue() which only update the value but not other
aspects such as visibility, validation state, or messages.
</dd>
<dt>
Built-in httpd improvements
</dt>
<dd>
A redundant copy operation of the response generated and sent by
Wt has been removed, using scatter-gather I/O implemented by
boost::asio instead.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1WMenuItem.html">WMenuItem</a>
</dt>
<dd>
While in previous version of Wt, this class was only a data class
that held the information related to an item, in 3.3.0 we modified
this so that this class represents the widget itself. If you were
redefining protected methods to customize the widget
(i.e. createItemWidget() and updateItemWidget()), then this will no
longer work as expected. The new system should be easier to
customize (since you can simply specialize WMenuItem itself).
In addition, we've simplified the rendering of a menu item so that
a redundant layer of spans (or div's) has been removed. It makes
the menu more consistent with the way CSS designers expect a menu
to rendered, and this was done (you can guess the theme of this
release by now ?) to be compatible with bootstrap's CSS styles.
</dd>
<dt>
<a href="classWt_1_1WApplication.html">WApplication::locale()</a>
</dt>
<dd>
This now returns a WLocale object instead of the string
designation of the locale (which you can query by calling name())
on the locale object.
</dd>
<dt>
<a href="classWt_1_1WCalendar.html">WCalendar</a>
</dt>
<dd>
The markup for this class has changed, and thus customized CSS
will need to be updated.
</dd>
<dt>
<a href="classWt_1_1WMenuItem.html">WPopupMenuItem</a>
</dt>
<dd>
The popup menu item class has been merged with WMenuItem (and
WPopupMenu is now a specialized WMenu). This should not have
noticable API changes, except for the changes in markup and CSS
documented above.
</dd>
<dt>
<a href="classWt_1_1WTreeNode.html">WTreeNode</a>,
<a href="classWt_1_1WTreeTable.html">WTreeTable</a>
<a href="classWt_1_1WTreeView.html">WTreeView</a>
</dt>
<dd>
The markup for tree rendering has been changed (to using nested
unordered list instead of nested tables), and thus customized CSS
will need to be updated. The only API consequence is that
WTreeNode::labelArea() is no longer returning a WTableCell but
instead a WContainerWidget.
</dd>
<dt>
<a href="classWt_1_1WTreeView.html">WTreeView</a>,
<a href="classWt_1_1WTableView.html">WTableView</a>
</dt>
<dd>
Event handling (clicked(), doubleClicked(), ... ) has been
generalized: events that are not generated on an item (but for
example in empty space below the items) will now also
generate these events, but then with an invalid model index.
You may thus need to adapt current code to check whether the model
index that is returned is valid.
</dd>
</dl>
<hr>
<h2>Release 3.2.3 (November, 1 2012)</h2>
<p>
This release contains mostly bug fixes and one new feature: a payment
processing API.
</p>
<h3>A) New namespaces:</h3>
<dl>
<dt>
<a href="group__payment.html">Wt::Payment (payment handling)</a>
</dt>
<dd>
This namespace contains services and back-end classes for dealing
with online payment brokers. At the moment there is support for
PayPal's Express Checkout service.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
Layout improvements.
</dt>
<dd>
<p>
If you had massive trouble migrating to 3.2.2 because of the
layout rewrite, then you'll appreciate the efforts we've made to
make the layout algorithms in 3.2.3 much more robust and
consistent.
</p>
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1QueryModel.html">Dbo::QueryModel</a>:
added a mechanism for stable row data.
</dt>
<dd>
<p>
A common nuisance when working with the QueryModel (which
retrieves data from the database as needed), is that concurrent
database modifications such as insertions of new data, may
interfere with the model's mapping of rows to objects (this is
in fact a common problem with most ORM's indeed). This mapping
may be important, especially when you want to process the user's
selection of one or more rows selected by the user, in e.g. a
table view. We've added a mechanism to assure that one can
request the model for data at a given row, which is guaranteed
to be the same row that has been previously retrieved, using the
stableResultRow() method. It works by default for simple queries
(returning data from one table), but can be easily customized
for more complex queries.
</p>
</dd>
<dt>
<a href="namespaceWt_1_1Render.html">Render library:</a>
improved support for %-based block sizes and table rendering
</dt>
<dd>
<p>
Support was added for %-based sizes for block widths and table
cell widths. In addition, table rendering in Wt::Render has been
improved to support repeating headers (<thead> sections)
for multi-page tables, and explicit page breaks (using the css
page-break-after/before properties).
</p>
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1Dbo_1_1backend_1_1Sqlite3.html">Dbo::backend::Sqlite3</a>
</dt>
<dd>
<p>We've changed the implementation of the storage ISO8601AsText
format for time stamps (datetime). In the new, corrected,
implementation, we generate dates using 'T' as the separator
between date and time (as mandated by ISO8601), while the old
behaviour used a space (' ') instead as the
separator. Sqlite3 supports either format equally. This may
however break some applications which use queries for an exact
date (or a date comparison), as the results may be affected.
</p>
<p> The old behaviour is still available as PseudoISO8601AsText,
which can be configured using
<tt>connection.setDateTimeStorage(Wt::Dbo::SqlDateTime,
Wt::Dbo::backend::Sqlite3::PseudoISO8601AsText)</tt>
</p>