Skip to content

Commit d55ec82

Browse files
author
Koen Deforche
committed
merged in bootstrap branch
1 parent 3ca2dc7 commit d55ec82

File tree

497 files changed

+38599
-8960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

497 files changed

+38599
-8960
lines changed

.gitignore

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
*~
2-
.DS_Store
32
*.db
3+
*.autosave
44
build*/*
5+
.DS_Store
6+
CMakeLists.txt.user
7+
wt.tags
8+
doc/tutorial/auth.html
9+
doc/tutorial/dbo.html
10+
doc/tutorial/wt.html
511
doc/reference
612
doc/examples
713
examples/*/resources
14+
examples/hello/*.svg
15+
examples/widgetgallery/docroot/resources
816
resources/tiny_mce
9-
test/interactive
17+
test/interactive
18+
19+
20+
21+
22+
23+
24+

CMakeLists.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ PROJECT(WT)
1212
SET(CMAKE_MODULE_PATH ${WT_SOURCE_DIR} ${WT_SOURCE_DIR}/cmake)
1313

1414
SET(VERSION_SERIES 3)
15-
SET(VERSION_MAJOR 2)
16-
SET(VERSION_MINOR 3)
17-
18-
SET(WT_SOVERSION 34)
19-
SET(WTEXT_SOVERSION 34)
20-
SET(WTHTTP_SOVERSION 34)
21-
SET(WTFCGI_SOVERSION 34)
22-
SET(WTISAPI_SOVERSION 11)
23-
SET(WTDBO_SOVERSION 34)
24-
SET(WTDBOSQLITE3_SOVERSION 34)
25-
SET(WTDBOPOSTGRES_SOVERSION 34)
26-
SET(WTDBOFIREBIRD_SOVERSION 34)
27-
SET(WTDBOMYSQL_SOVERSION 34)
28-
SET(WTTEST_SOVERSION 4)
15+
SET(VERSION_MAJOR 3)
16+
SET(VERSION_MINOR 0)
17+
18+
SET(WT_SOVERSION 35)
19+
SET(WTEXT_SOVERSION 35)
20+
SET(WTHTTP_SOVERSION 35)
21+
SET(WTFCGI_SOVERSION 35)
22+
SET(WTISAPI_SOVERSION 12)
23+
SET(WTDBO_SOVERSION 35)
24+
SET(WTDBOSQLITE3_SOVERSION 35)
25+
SET(WTDBOPOSTGRES_SOVERSION 35)
26+
SET(WTDBOFIREBIRD_SOVERSION 35)
27+
SET(WTDBOMYSQL_SOVERSION 35)
28+
SET(WTTEST_SOVERSION 5)
2929

3030
IF(NOT SHARED_LIBS)
3131
IF(WIN32)
@@ -94,7 +94,7 @@ OPTION(ENABLE_SSL "Enable cryptography functions, using OpenSSL" ON)
9494
OPTION(ENABLE_GM "Enable GraphicsMagick, for supporting painting to raster images (PNG, GIF, ...) (WRasterImage)" ON)
9595
OPTION(ENABLE_HARU "Enable Haru Free PDF Library, which is used to provide support for painting to PDF (WPdfImage)" ON)
9696
OPTION(ENABLE_PANGO "Enable Pango Library, which is used for improved font support (WPdfImage and WRasterImage)" ON)
97-
OPTION(ENABLE_EXT "Build Wt Ext library with JavaScript-only widgets (http://extjs.com/)" ON)
97+
OPTION(ENABLE_EXT "Build Wt Ext library with JavaScript-only widgets (http://extjs.com/) DEPRECATED" OFF)
9898
OPTION(ENABLE_SQLITE "Build SQLite3 backend for Wt::Dbo" ON)
9999
OPTION(ENABLE_POSTGRES "Build PostgreSQL backend for Wt::Dbo" ON)
100100
OPTION(ENABLE_FIREBIRD "Build FirebirdSQL backend for Wt::Dbo" ON)
@@ -130,6 +130,7 @@ IF(NOT SHARED_LIBS)
130130
SET(WTDBOSQLITE3_STATIC true)
131131
SET(WTDBOPOSTGRES_STATIC true)
132132
SET(WTDBOFIREBIRD_STATIC true)
133+
SET(WTDBOMYSQL_STATIC true)
133134
ENDIF(NOT SHARED_LIBS)
134135

135136
IF(NOT MULTI_THREADED)
@@ -273,7 +274,6 @@ ELSE(WIN32)
273274
ENDIF(WIN32)
274275
OPTION(CONNECTOR_HTTP "Compile in stand-alone httpd connector (libwthttp) ?" ON)
275276
SET(EXAMPLES_CONNECTOR wthttp CACHE STRING "Connector used for examples")
276-
SET(TEST_DBO_BACKEND sqlite CACHE STRING "Dbo backed used for running the test suite")
277277

278278
include (CheckSymbolExists)
279279

Changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
25-01-2013:
2+
* Merged in bootstrap branch, with many additions, changes and above
3+
all addition of support for Twitter's Bootstrap framework as a new
4+
theme
5+
16
12-12-2012:
27
* Added binary WebGL VBO buffers, contributed by Tassilo Glander
38

Doxyfile

Lines changed: 1056 additions & 617 deletions
Large diffs are not rendered by default.

WConfig.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#cmakedefine WTDBOPOSTGRES_STATIC
2525
#cmakedefine WTDBOSQLITE3_STATIC
2626
#cmakedefine WTDBOFIREBIRD_STATIC
27+
#cmakedefine WTDBOMYSQL_STATIC
2728
#cmakedefine WTHTTP_STATIC
2829
#cmakedefine WT_EXT_STATIC
2930
#cmakedefine WT_EXT_STATIC

cmake/WtFindMysql.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ FIND_PATH(MYSQL_INCLUDE mysql.h
1717
/usr/local/include/mysql
1818
)
1919

20-
SET(MYSQL_LIBRARY "mariadb;mariadbclient" CACHE STRING "Library that provides MySQL/MariaDB API")
20+
SET(MYSQL_LIBRARY "mariadb;mariadbclient" CACHE STRING "Library that provides MySQL/MariaDB API (set to mysqlclient for mysql on unix; libmysql on windows)")
2121

2222
FIND_LIBRARY(MYSQL_LIB
2323
NAMES
2424
${MYSQL_LIBRARY}
2525
PATHS
2626
${MYSQL_PREFIX}/lib
27+
${MYSQL_PREFIX}/lib/opt
2728
/usr/lib
2829
/usr/local/lib
2930
/opt/local/lib

examples/CMakeLists.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,27 @@ SUBDIRS(
160160
webgl
161161
wt-homepage
162162
wtwithqt
163-
widgetgallery
164163
)
164+
165+
IF(MSVC_VERSION)
166+
IF(MSVC_VERSION GREATER 1600)
167+
SET(HAS_CXX11 ON)
168+
ENDIF(MSVC_VERSION GREATER 1600)
169+
ENDIF(MSVC_VERSION)
170+
IF(CMAKE_COMPILER_IS_GNUCXX)
171+
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
172+
OUTPUT_VARIABLE GCC_VERSION)
173+
IF(${GCC_VERSION} VERSION_GREATER "4.6.0")
174+
SET(HAS_CXX11 ON)
175+
ENDIF(${GCC_VERSION} VERSION_GREATER "4.6.0")
176+
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
177+
178+
IF(HAS_CXX11)
179+
SUBDIRS(
180+
widgetgallery
181+
)
182+
ELSE(HAS_CXX11)
183+
MESSAGE("Not building widget gallery; a C++11 compiler is required (gcc > 4.6 or MSVS 2012)")
184+
ENDIF(HAS_CXX11)
185+
186+

examples/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Project related configuration options
55
#---------------------------------------------------------------------------
66
PROJECT_NAME = "Wt examples"
7-
PROJECT_NUMBER = 3.2.3
7+
PROJECT_NUMBER = 3.3.0
88
OUTPUT_DIRECTORY = ../doc/examples
99
CREATE_SUBDIRS = NO
1010
OUTPUT_LANGUAGE = English

examples/charts/ChartConfig.C

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "PanelList.h"
99

1010
#include <iostream>
11-
#include <boost/lexical_cast.hpp>
1211
#include <boost/date_time/gregorian/greg_year.hpp>
1312

1413
#include <Wt/WAbstractItemModel>
@@ -20,6 +19,7 @@
2019
#include <Wt/WEnvironment>
2120
#include <Wt/WIntValidator>
2221
#include <Wt/WLineEdit>
22+
#include <Wt/WLocale>
2323
#include <Wt/WPanel>
2424
#include <Wt/WPushButton>
2525
#include <Wt/WStandardItemModel>
@@ -44,7 +44,7 @@ namespace {
4444

4545
bool getDouble(WLineEdit *edit, double& value) {
4646
try {
47-
value = boost::lexical_cast<double>(edit->text().toUTF8());
47+
value = WLocale::currentLocale().toDouble(edit->text());
4848
return true;
4949
} catch (...) {
5050
return false;
@@ -116,7 +116,7 @@ ChartConfig::ChartConfig(WCartesianChart *chart, WContainerWidget *parent)
116116
chartConfig->elementAt(row, 0)->addWidget(new WText("Width:"));
117117
chartWidthEdit_ = new WLineEdit(chartConfig->elementAt(row, 1));
118118
chartWidthEdit_
119-
->setText(boost::lexical_cast<std::string>(chart_->width().value()));
119+
->setText(WLocale::currentLocale().toString(chart_->width().value()));
120120
chartWidthEdit_->setValidator(sizeValidator);
121121
chartWidthEdit_->setMaxLength(4);
122122
connectSignals(chartWidthEdit_);
@@ -125,7 +125,7 @@ ChartConfig::ChartConfig(WCartesianChart *chart, WContainerWidget *parent)
125125
chartConfig->elementAt(row, 0)->addWidget(new WText("Height:"));
126126
chartHeightEdit_ = new WLineEdit(chartConfig->elementAt(row, 1));
127127
chartHeightEdit_
128-
->setText(boost::lexical_cast<std::string>(chart_->height().value()));
128+
->setText(WLocale::currentLocale().toString(chart_->height().value()));
129129
chartHeightEdit_->setValidator(sizeValidator);
130130
chartHeightEdit_->setMaxLength(4);
131131
connectSignals(chartHeightEdit_);
@@ -337,13 +337,15 @@ ChartConfig::ChartConfig(WCartesianChart *chart, WContainerWidget *parent)
337337
bool autoValues = axis.autoLimits() == (MinimumValue | MaximumValue);
338338

339339
sc.minimumEdit = new WLineEdit(axisConfig->elementAt(j, 4));
340-
sc.minimumEdit->setText(boost::lexical_cast<std::string>(axis.minimum()));
340+
sc.minimumEdit->setText(WLocale::currentLocale()
341+
.toString(axis.minimum()));
341342
sc.minimumEdit->setValidator(anyNumberValidator);
342343
sc.minimumEdit->setEnabled(!autoValues);
343344
connectSignals(sc.minimumEdit);
344345

345346
sc.maximumEdit = new WLineEdit(axisConfig->elementAt(j, 5));
346-
sc.maximumEdit->setText(boost::lexical_cast<std::string>(axis.maximum()));
347+
sc.maximumEdit->setText(WLocale::currentLocale()
348+
.toString(axis.maximum()));
347349
sc.maximumEdit->setValidator(anyNumberValidator);
348350
sc.maximumEdit->setEnabled(!autoValues);
349351
connectSignals(sc.maximumEdit);

examples/charts/ChartsApplication.C

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public:
1515
ChartsApplication(const WEnvironment& env)
1616
: WApplication(env)
1717
{
18+
WLocale l;
19+
l.setDecimalPoint(",");
20+
l.setGroupSeparator(".");
21+
setLocale(l);
22+
1823
setTitle("Charts example");
1924

2025
setCssTheme("polished");
@@ -25,7 +30,6 @@ public:
2530

2631
new ChartsExample(root());
2732

28-
2933
/*
3034
* Set our style sheet last, so that it loaded after the ext stylesheets.
3135
*/

0 commit comments

Comments
 (0)