forked from emweb/wt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReleaseNotes.html
4642 lines (4093 loc) · 179 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 4.0.3 (April 12, 2018)</h2>
<p>This release fixes compatibility with Boost 1.66, fixes some bugs, and adds
some functionality:</p>
<dl>
<dt>WFileUpload: added display widget</dt>
<dd>Often, native file upload field look out of place in the rest of a web application's design.
A common trick is to hide the file upload field, and add another widget that forwards its click
signal to the file upload field. We added
<a href="classWt_1_1WFileUpload.html#ab95ec35db690296e848d89a71c23737a">setDisplayWidget()</a>
to make it easy to implement that trick.</dd>
<dt>WFileDropWidget: added drop indication and global drop</dt>
<dd>When <a href="classWt_1_1WFileDropWidget.html#a0c1400a6f7f63eec4bb1cfe30807538e">drop indication</a>
is enabled, a WFileDropWidget will be highlighted as soon
as a file being dragged enters the page. When
<a href="classWt_1_1WFileDropWidget.html#a051b4928cb26446de1eb3617d0f8c954">global drop</a> is enabled, then a drop
anywhere on the page will put the file in the WFileDropWidget.</dd>
<dt>SqlConnection::executeSqlStateful()</dt>
<dd><a href="classWt_1_1Dbo_1_1SqlConnection.html#a7ac824e554074898f10cf75b70a4a6b1">SqlConnection::executeSqlStateful()</a> allows to execute SQL that should be re-executed upon automatic reconnect. Automatic reconnect
is currently supported for the <a href="classWt_1_1Dbo_1_1backend_1_1Postgres.html">Postgres</a>
and <a href="classWt_1_1Dbo_1_1backend_1_1MySQL.html">MySQL</a> backends.</dd>
<dt>WTableView: exposed touch events</dt>
<dd>
We made it possible to define custom behaviour upon touch events on WTableView, by
adding the <a href="classWt_1_1WAbstractItemView.html#acd980e6a9eb110400f334e341f8386a4">touchStarted()</a>,
<a href="classWt_1_1WAbstractItemView.html#aaf371c95c294c952be0eaac5b3f56af7">touchMoved()</a>, and
<a href="classWt_1_1WAbstractItemView.html#a9f3bd68d6d5ca982b2a22bcd100ea271">touchEnded()</a> signals.
</dd>
</dl>
<h2>Release 4.0.2 (November 24, 2017)</h2>
<p>This is a patch release that fixes a few problems with the build of Wt 4.0.1, and fixes a bug in Wt::Auth.</p>
<h2>Release 4.0.1 (November 21, 2017)</h2>
<p>This is a smaller release with mostly bugfixes, and some new features:</p>
<dl>
<dt>Added <a href="classWt_1_1WContainerWidget.html#acf75dda5024db05cf847c282f8a99117">WContainerWidget::addNew()</a> and similar methods</dt>
<dd>Because writing code like this:
<div class="fragment">
<div class="line"><tt>auto text = root()->addWidget(std::make_unique<Wt::WText>("Hello!"));</tt></div>
</div>
is a bit verbose, a shorthand was added that creates the widget and adds it to the container in one go:
<div class="fragment">
<div class="line"><tt>auto text = root()->addNew<Wt::WText>("Hello!");</tt></div>
</div>
<tt>addNew</tt> forwards its arguments to the constructor, just like <tt>std::make_unique</tt>.
Along those lines, we added <a href="classWt_1_1WContainerWidget.html#a5a7e7b9fe21bdc38f7a270193ed83243">WContainerWidget::insertNew()</a> and <a href="classWt_1_1WTemplate.html#a240f910cd1e3d5b7876aa20f6b33767c">WTemplate::bindNew()</a>.
</dd>
<dt>Added the <tt><max-formdata-size></tt> configuration option</dt>
<dd>Previously, the maximum size of form data sent by Wt in a single POST request was capped to 5 MiB.
In applications with a large amount of forms with a lot of data, that may not be enough,
so <tt><max-formdata-size></tt> can be used to adjust this independently. Note that
the maximum request size (and by consequence, the form data size) is still capped by
<tt><max-request-size></tt>.</dd>
</dl>
<h2>Release 4.0.0 (September 19, 2017)</h2>
<p>
This release has all of the added features of Wt 3.3.8, but comes with many notable changes. In general,
Wt 4 employs the more modern C++ style of C++11 and beyond. Support for compilers
without sufficient C++11 support is dropped competely. Wt 4 aligns more with the
<a href="https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md">C++ Core Guidelines</a>
in a pragmatic way, while keeping the API familiar.
</p>
<h3>New features since Wt 3.3.8</h3>
<dl>
<dt>Microsoft SQL Server backend for Wt::Dbo</dt>
<dd>We've added Microsoft SQL Server support to Wt::Dbo, making it the sixth
backend we support, alongside Sqlite, PostgreSQL, MySQL (and MariaDB),
Firebird, and Oracle (not part of the open source Wt because of licensing).
With this addition, Wt::Dbo now supports most commonly used relational database management systems.
It's based on ODBC and works with Microsoft's ODBC Driver
for SQL Server. With unixODBC, Linux and macOS are also supported.</dd>
<dt>Added support for listening on multiple interfaces and ports to wthttp</dt>
<dd>With the multivalued <tt>--http-listen</tt> and <tt>--https-listen</tt> options,
you can now listen on multiple interfaces and ports. For example, if you want to
listen on port 8080 on all IPv4 and IPv6 interfaces, you can use:
<div class="fragment">
<div class="line"><tt>--http-listen 0.0.0.0:8080 --https-listen [0::0]:8080</tt></div>
</div>
<tt>--http-listen</tt> and <tt>--https-listen</tt> obsolete the
<tt>--http-address</tt>, <tt>--http-port</tt>, <tt>--https-address</tt>, and <tt>--https-port</tt>
options.</dd>
</dl>
<h3>Changes in Wt's memory model</h3>
<p>
Like before, the parent widget (e.g. a <a href="classWt_1_1WContainerWidget.html">WContainerWidget</a>) owns
its child widgets. This has not changed. Wt 4 makes ownership transfers more clear by using <tt>std::unique_ptr</tt>
There are no more owning raw pointers in Wt's public API.
</p>
<p>
By consequence of using <tt>unique_ptr</tt>, constructors no longer take a <tt>parent</tt> argument. For
convenience, <a href="classWt_1_1WContainerWidget.html#a3341360fc6cc1e86c1a42a3a54d9e0c7">addWidget()</a>
now returns a (non-owning) raw pointer. Instead of doing:
<div class="fragment">
<div class="line"><span class="comment"><tt>// parent is a Wt::WContainerWidget*</tt></span></div>
<div class="line"><tt>Wt::WPushButton *button = new Wt::WPushButton("Click me", parent); <span class="comment">// Wt 3: parent owns the button</span></tt></div>
</div>
or:
<div class="fragment">
<div class="line"><tt>Wt::WPushButton *button = new Wt::WPushButton("Click me");</tt></div>
<div class="line"><tt>parent->addWidget(button); <span class="comment">// Wt 3: ownership is transferred to parent through addWidget</span></tt></div>
</div>
You can now do:
<div class="fragment">
<div class="line"><span class="comment"><tt>// Wt 4 (with C++14's std::make_unique)</tt></span></div>
<div class="line"><tt>Wt::WPushButton *button = parent->addWidget(std::make_unique<Wt::WPushButton>("Click me"));</tt></div>
</div>
<tt>Wt::cpp14::make_unique</tt> can be used instead of <tt>std::make_unique</tt> if C++14 support is unavailable.
</p>
<p>
Some classes were changed from the old single ownership
model to shared ownership through <tt>std::shared_ptr</tt>, like models (<a href="classWt_1_1WAbstractItemModel.html">WAbstractItemModel</a>, <a href="classWt_1_1Chart_1_1WAbstractChartModel.html">WAbstractChartModel</a>, and derivates) and <a href="classWt_1_1WValidator.html">validators</a>.
</p>
<p>
<a href="classWt_1_1Core_1_1observing__ptr.html">Wt::Core::observing_ptr</a> was introduced. This pointer will
be notified when the object it points to is deleted. <tt>observing_ptr</tt>s are intended to be used within the
scope of a <a href="classWt_1_1WApplication.html">WApplication</a> and are not thread safe. Every
<a href="classWt_1_1WObject.html">WObject</a> (and by consequence, every <a href="classWt_1_1WWidget.html">widget</a>)
is an <a href="classWt_1_1Core_1_1observing_ptr.html">observable</a>, so its lifetime can be observed with
an <tt>observing_ptr</tt>. Their use is entirely optional, but they may be useful when the lifetime of an
object is not always clear.
</p>
<h3>Header files now end in .h</h3>
Wt 3 used extensionless headers. This confuses many editors and IDEs.
For Wt 4, the <tt>.h</tt> extension was added, and using the old style headers is deprecated. You can use the
Python script <a href="https://github.com/emweb/wt/blob/wt4/migrate/wt4_add_h_to_includes.py">migrate/wt4_add_h_to_includes.py</a> to help update your Wt includes.
<h3>Enums replaced by enum classes</h3>
Many enums were replaced with enum classes, and many have been moved from class scope to namespace scope, e.g.:
<div class="fragment">
<div class="line"><tt>enum SelectionMode {</tt></div>
<div class="line"><tt> NoSelection = 0,</tt></div>
<div class="line"><tt> SingleSelection = 1,</tt></div>
<div class="line"><tt> ExtendedSelection = 3</tt></div>
<div class="line"><tt>};</tt></div>
</div>
became:
<div class="fragment">
<div class="line"><tt>enum class SelectionMode {</tt></div>
<div class="line"><tt> None = 0,</tt></div>
<div class="line"><tt> Single = 1,</tt></div>
<div class="line"><tt> Extended = 3</tt></div>
<div class="line"><tt>};</tt></div>
</div>
Some enums were preserved in places were the added verbosity
was undesirable, like the <a href="group__dbo.html#ga1d0ec6819b1bf5b7a88ad030b91ca564">Wt::Dbo::RelationType</a> enum.
<h3>Replacements for Boost</h3>
Many features of Boost that Wt relied on were made obsolete by C++11. Many other Boost features have been replaced
with C++11-based alternatives.
<dl>
<dt>Choice between Boost.Asio and standalone Asio</dt>
<dd>
The CMake option <tt>WT_ASIO_IMPLEMENTATION</tt> allows to choose between <tt>boost</tt> and <tt>standalone</tt>
Asio.</dd>
<dt>Removal of Boost usage in Wt headers</dt>
<dd>
If standalone Asio is used, the installed headers of Wt no longer include any Boost headers.
The Windows builds of Wt 4 will from now on no longer include Boost,
including only the standalone Asio headers instead. This just about halves the size of the installer.
If you want to use Boost, you'll have to provide your own. You can find prebuilt Boost binaries for Windows
<a href="https://sourceforge.net/projects/boost/files/boost-binaries/">here</a>.
</dd>
<dt>Boost.Date_Time was replaced with Howard Hinnant's <tt>std::chrono</tt>-based date implementation</dt>
<dd>
The author of the <tt>std::chrono</tt> standard has created a
<a href="https://github.com/HowardHinnant/date">library for dates and time zones</a>.
This library is proposed for inclusion into the C++ standard in the future. For now, Wt includes
this date and time zone library (at this moment, this is version 2.2). This is used for all time-related
classes, like <a href="classWt_1_1WDate.html">WDate</a>,
<a href="classWt_1_1WTime.html">WTime</a>, <a href="classWt_1_1WDateTime.html">WDateTime</a>,
and <a href="classWt_1_1WLocalDateTime.html">WLocalDateTime</a>.
</dd>
<dt>
Boost.Any replaced by <tt>Wt::cpp17::any</tt>
</dt>
<dd>
<a href="classWt_1_1WStandardItemModel.html">WStandardItemModel</a> relied heavily on
<tt>boost::any</tt>. This was replaced with <tt>Wt::cpp17::any</tt>. You can choose the
implementation of <tt>any</tt> to use with the CMake option <tt>WT_CPP17_ANY_IMPLEMENTATION</tt>.
Valid options are:
<ul>
<li><a href="https://github.com/thelink2012/any">thelink2012</a>: this is the default implementation, included in Wt</li>
<li><tt>experimental</tt> for <tt>std::experimental::any</tt></li>
<li><tt>std</tt> for C++17's <tt>std::any</tt></li>
</ul>
</dd>
<dt>Boost.Signals2 replaced with own implementation</dt>
<dd>
<p>
Wt did not use many of the features of Boost.Signals2. Since C++11, many more efficient alternatives
have been created. Wt 4's implementation, based on
<a href="https://testbit.eu/cpp11-signal-system-performance/">this blog post</a>, offers better performance
and more understandable stack traces. It's now no longer necessary to
use <tt>std::bind</tt> with lambda functions, e.g.:
<div class="fragment"><div class="line"><tt>button->clicked().connect(std::bind([]{ std::cout << "Clicked!" << std::endl; })); <span class="comment">// Wt 3</span></tt></div></div>
can be changed to:
<div class="fragment"><div class="line"><tt>button->clicked().connect([]{ std::cout << "Clicked!" << std::endl; }); <span class="comment">// Wt 4</span></tt></div></div>
</p>
<p>
Boost.Signals2, together with <tt>boost::bind</tt>, allowed you to automatically disconnect slots
when one of their bound arguments was deleted, if the argument was a derived class of
<tt>boost::signals2::trackable</tt>. In Wt 4, this is no longer the case. Instead, you
can provide a target <a class="classWt_1_1WObject.html">WObject</a> as the first argument to
the connect function, and Wt will disconnect the slot when the target <tt>WObject</tt> is deleted.
</p>
<p>
<tt>WApplication::bind</tt> has been removed, and instead
<a href="classWt_1_1Core_1_1observable.html#a8ef9ce1dc22e3bae13e198b27e6b64cc">observable::bindSafe</a>
was introduced. <tt>bindSafe</tt> will guard the <tt>observable</tt>, returning a function
object that doesn't do anything if the <tt>observable</tt> has been deleted.
</p>
</dd>
<dt>Other Boost libraries obsoleted by C++11</dt>
<dd>Boost.Thread, Boost.Regex and Boost.Random were mostly replaced by their STL counterparts. Only
Boost.Thread is used internally in Wt 4 because Wt uses some mutex functionality that's not part of
C++11.</dd>
</dl>
<h3>Other changes:</h3>
<ul>
<li>
<a href="classWt_1_1ItemDataRole.html">ItemDataRole</a> is now a class instead of an enum.
</li>
<li>
Wt 4 assumes that <tt>std::string</tt> is UTF-8 encoded by default, so
<a href="classWt_1_1WString.html#a64d17e31e557208ab8d8ea765c1e52b8">WString(std::string)</a>
will assume that the argument is UTF-8 encoded. Overloads for new C++11 string types
(<tt>std::u16string</tt>, <tt>std::u32string</tt>) have been added.
</li>
<li>
Intervals and other durations previously indicated by <tt>int</tt>s have been replaced by
<tt>std::chrono::duration</tt>s, e.g. in
<a href="classWt_1_1WIOService.html#a5e445e207ee36f75cea4ba7ae321d7dc">WIOService::schedule()</a> or
<a href="classWt_1_1Http_1_1Client.html#a84856aabdef30b9e91bb3c4d30b9ecd1">Wt::Http::Client::setTimeout()</a>.
</li>
<li>
<a href="classWt_1_1WBoxLayout.html">WBoxLayout</a> is now implemented with flexbox instead of JavaScript
by default. Wt will fallback to the old JavaScript implementation when functionality unavailable in
the flexbox implementation is used, use
<a href="classWt_1_1WLayout.html#a9cd0547c710e357e4c688ccfdb790d8f">WBoxLayout::setPreferredImplementation</a>
to set a preferred implementation.
</li>
</ul>
<h3>Removal of deprecated functionality</h3>
<ul>
<li>
Everything that was marked as deprecated in Wt 3.3.7 has been removed,
including <tt>Wt::Ext</tt>.
</li>
<li>
<tt>WScrollArea</tt> was removed, use CSS or
<a href="classWt_1_1WContainerWidget.html#af3d9510f569deed060689aa509ecc831">WContainerWidget::setOverflow()</a> instead.
</li>
</ul>
<h2>Release 3.3.8 (August 16, 2017)</h2>
<p>
This release consists of bug fixes and some new features:
</p>
<dl>
<dt>
OpenID Connect support
</dt>
<dd>
As we've previously announced
<a href="https://www.webtoolkit.eu/wt/blog/2017/06/20/announcing_openid_connect_support_in_wt">on our blog</a>,
Wt now supports OpenID Connect. All you need to do to use any OpenID Connect based service is
configure a <a href="classWt_1_1Auth_1_1OidcService.html">Wt::Auth::OidcService</a>. You can also make your
own OpenID Connect identity provider. Check out the accompanying
<a href="https://github.com/emweb/wt/tree/master/examples/feature/oidc">OpenID Connect feature example</a>.
</dd>
<dt>
On Windows: font support based on DirectWrite
</dt>
<dd>
<p>Wt 3.3.7 already introduced the Direct2D backend for <a href="classWt_1_1WRasterImage.html">WRasterImage</a>.
Wt 3.3.8 further expands
on this by adding DirectWrite-based font support. This means that Wt 3.3.8 will be able to
select the appropriate fonts for every glyph, without requiring Pango. Pango was always
difficult to distribute on Windows, so we never included Pango in the binary distribution, relying on
very basic font support instead, replacing unknown characters by question marks. Now, you
can expect much better Unicode support with DirectWrite on Windows.</p>
<p>This means that the binary release of Wt on Windows is now built with Direct2D and DirectWrite.</p>
</dd>
<dt>
Wt::Dbo: added <a href="structWt_1_1Dbo_1_1sql__value__traits.html">sql_value_traits</a> for
<a href="classWt_1_1Json_1_1Object.html">Wt::Json::Object</a> and
<a href="classWt_1_1Json_1_1Array.html">Wt::Json::Array</a>.
</dt>
<dd>
<p>Quite often, the need arises to store some unindexed data with arbitrary structure in a database.
A common solution is to store JSON as a string. To facilitate this, we've included implementations
of <a href="structWt_1_1Dbo_1_1sql_value_traits.html">sql_value_traits</a> for
<a href="classWt_1_1Json_1_1Object.html">Wt::Json::Object</a> and
<a href="classWt_1_1Json_1_1Array.html">Wt::Json::Array</a> in
<tt>Wt/Dbo/WtSqlTraits</tt>. This allows you to store <tt>Wt::Json</tt> Objects and Arrays
just like you any other field.</p>
<p>Additionally, we've made the <tt>Wt::Json</tt> API a bit more friendly, by adding support
for initializer lists (when using C++11), and implicit constructors for
<a href="classWt_1_1Json_1_1Value.html">Wt::Json::Value</a>
from
<a href="classWt_1_1Json_1_1Object.html">Wt::Json::Object</a> and
<a href="classWt_1_1Json_1_1Array.html">Wt::Json::Array</a>.</p>
</dd>
<dt>
Added <tt><allowed-hosts></tt> configuration option for CORS
</dt>
<dd>
Wt used to allow almost any origin, to allow Wt applications to be embedded in any page using
WidgetSet mode. Although Wt encodes session IDs in URLs rather than cookies by default, this
could still pose a security risk in some cases. In Wt 3.3.8, CORS support has been updated:
Wt now only allows cross-origin resource sharing for WidgetSet entry points, and trusts no
host by default. You can specify the allowed hosts using the <tt><allowed-hosts></tt>
tag in the configuration file. Using <tt><allowed-hosts>*</allowed-hosts></tt>
restores the old behaviour.
</dd>
<dt>
Other small improvements:
</dt>
<dd>
<ul>
<li>Any <tt>boost::asio::io_service</tt> can now be used with <a href="classWt_1_1Http_1_1Client.html">Wt::Http::Client</a>,
instead of just <a href="classWt_1_1WIOService.html">Wt::WIOService</a>.</li>
<li>Added support for <tt>PATCH</tt> requests in <a href="classWt_1_1WResource.html">WResource</a> and
<a href="classWt_1_1Http_1_1Client.html">Wt::Http::Client</a>,
next to <tt>GET</tt>, <tt>POST</tt>, <tt>PUT</tt>, and <tt>DELETE</tt>.
<li>wthttp connector: added support for forward secrecy with the <tt>--ssl-prefer-server-ciphers</tt> option.</li>
<li>Added the <tt>num-session-threads</tt> configuration parameter, to set the amount of threads per session when
using dedicated process mode. By default, the main process and the session threads use the same amount of threads.</li>
<li>The <a href="https://github.com/emweb/wt/tree/master/examples/te-benchmark">te-benchmark</a>
example was added, implementing the TechEmpower framework benchmarks.
This example also demonstrates how Wt can be used to write RESTful services. Improved, less verbose, support for
RESTful services is planned in a future release.</li>
<li>Added <a href="classWt_1_1Dbo_1_1FixedSqlConnectionPool.html#a955e2ce03d8d45e8738f6ff718614601">Wt::Dbo::FixedSqlConnectionPool::setTimeout()</a>, to set a timeout for obtaining a connection.</li>
<li>Added <a href="classWt_1_1Dbo_1_1backend_1_1Postgres.html#acb13461474cc43bc9e8a51b844a051f3">Wt::Dbo::backend::Postgres::setTimeout()</a>, to set a timeout for queries.</li>
<li>Added libunwind support for printing stacktraces. Enable this with the <tt>ENABLE_UNWIND</tt> CMake option.</li>
</ul>
</dd>
</dl>
<h2>Release 3.3.7 (March 31, 2017)</h2>
<p>
This release fixes many bugs, but also introduces some new features:
</p>
<dl>
<dt>
<a href="classWt_1_1WFileDropWidget.html">WFileDropWidget</a>
</dt>
<dd>
The WFileDropWidget is a new widget that allows you to upload a file or multiple files by dragging them onto an area.
</dd>
<dt>
Scroll visibility
</dt>
<dd>
Some applications require you to know whether a widget is currently visible within the viewport, or whether it is
scrolled out of view, e.g. to load more content as you scroll down the page. You can now enable scroll visibility
detection with
<a href="classWt_1_1WWidget.html#a5d403e0390841df77a23445b28044d5d">WWidget::setScrollVisibilityEnabled(bool)</a>,
and react to changes in visibility with
<a href="classWt_1_1WWidget.html#aa5ce605dd465e06f3e3c2dbce2a4098e">WWidget::scrollVisibilityChanged()</a>.
A new scrollvisibility feature example has been added to demonstrate this infinite scrolling application.
</dd>
<dt>
Touch events
</dt>
<dd>
Although Wt already supported touch interactions in the charting library, touch events were previously
not exposed by Wt. Now,
we've added <a href="classWt_1_1WTouchEvent.html">WTouchEvent</a>, and the touchStarted, touchEnded, and touchMoved
events have been added to
<a href="classWt_1_1WInteractWidget.html">WInteractWidget</a>.
Also, <a href="classWt_1_1WInteractWidget.html#a556c14d02388720b1d95b2149be2e867">draggable widgets</a> can now also
be dragged after a long press, and you can select a range using a double touch in
<a href="classWt_1_1WTableView.html">WTableView</a> and <a href="classWt_1_1WTreeView.html">WTreeView</a>.
</dd>
<dt>
Combined session tracking mode
</dt>
<dd>
<p>
The default session tracking method for Wt is URL rewriting, using JavaScript to hide the session id from
the address bar. Alternatively, cookies can be used with the Auto option, falling back to URL rewriting when
cookies are not available. However, the cookie-based method did not allow for multiple sessions within the
same browser.
</p>
<p>
In order to make the URL rewriting method with requirement 6.5.10 of the PCI Data Security Standard, while not
sacrificing the ability to have multiple sessions, a new Combined session tracking strategy has been added.
Wt already makes it difficult to steal a session when the session id is discovered, but resources are not as
protected. The Combined session tracking strategy uses URL rewriting in combination with a cookie that is shared
between sessions as an extra measure against session hijacking. This is the most secure strategy, but it will
deny access if cookie support is not available.
</p>
</dd>
<dt>
Wraparound for <a href="classWt_1_1WSpinBox.html">WSpinBox</a> and <a href="classWt_1_1WTimeEdit.html">WTimeEdit</a>
</dt>
<dd>
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.
</dd>
<dt>
On Windows: Direct2D implementation of WRasterImage
</dt>
<dd>
We've added another implementation for WRasterImage on Windows: Direct2D. When building Wt, this
implementation will be enabled by default. This allows to remove the dependency on GraphicsMagick or
Skia on Windows, simplifying the build process.
</dd>
<dt>
Some minor extra features:
</dt>
<dd>
<ul>
<li>
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.
</li>
<li>
In an effort to reduce the amount of JavaScript generated by the charting API, the
<a href="classWt_1_1WPainter.html#abccad19493d7461ca08c9e50ad7326f1">WPainter::drawStencilAlongPath()</a>
method was added to WPainter.
</li>
<li>
Previously, WDialogs were movable by default. It's now possible to disable this with
<a href="classWt_1_1WDialog.html#afbccf557a0343591f3087c9a0a9b7051">WDialog::setMovable()</a>.
</li>
</ul>
</dd>
</dl>
<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>