Skip to content

Commit 93c0b71

Browse files
author
Koen Deforche
committed
see Changelog
1 parent 2f8c5d6 commit 93c0b71

26 files changed

+659
-165
lines changed

Changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
29-07-2010:
2+
* WSuggestionPopup: misc improvements to server-side filtering, fixing
3+
rendering glitches
4+
5+
* examples/feature/suggestionpopup: example demonstrating WSuggestionPopup
6+
features
7+
18
27-07-2010:
29
* WRasterImage: Graphicsmagick backend implementation for WPaintDevice,
310
sponsorted by Eurofer, can be used for PNG, GIF, etc... output

INSTALL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>Wt Installation instructions on Unix-like systems</h1>
3434

3535
<p>
3636
Each of these two choices correspond to a library, a
37-
so-called <i>connectory</i> library. Below it is outlined how to
37+
so-called <i>connector</i> library. Below it is outlined how to
3838
configure the build process of Wt to build either or both libraries
3939
(libwthttp and libfcgi).</p>
4040

INSTALL.win32.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ <h2>Requirements</h2>
2828
build on the Express Edition, which is free (as in beer) to use.
2929
<li>CMake cross-platform build system (www.cmake.org): cmake-2.6.x,
3030
Windows version.</li>
31-
<li>Boost 1.35 (or later).</li>
31+
<li>Boost 1.36 (or later).</li>
32+
<li>Optionally, <a href="http://libharu.org/">Haru Free PDF Library</a>, which is used to provide support for painting to PDF (WPdfImage).</li>
33+
<li>Optionally, <a href="http://www.graphicsmagick.org/">GraphicsMagick</a>, for supporting painting to raster images (PNG, GIF, ...) (WRasterImage).</li>
3234
</ul>
3335
</p>
3436

3537
<p>Additional and optional requirements for some of the examples
3638
<ul>
3739
<li>For https support: OpenSSL, version 0.9.8d or newer.</li>
3840
<li>To compress traffic: zlib 1.2.3</li>
39-
<li>libgd (style, wt-homepage, mandelbrot)</li>
4041
<li>libmysql and libmysql++-2.x (hangman)</li>
4142
</ul>
4243
</p>

examples/feature/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SUBDIRS(
22
serverpush
3+
suggestionpopup
34
widgetset
45
)

examples/feature/serverpush/ServerPush.C

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (C) 2010 Emweb bvba, Kessel-Lo, Belgium.
3+
*
4+
* See the LICENSE file for terms of use.
5+
*/
16
#include <Wt/WApplication>
27
#include <Wt/WContainerWidget>
38
#include <Wt/WPushButton>
@@ -6,35 +11,33 @@
611
#include <iostream>
712
#include <boost/thread.hpp>
813

9-
using namespace Wt;
10-
1114
/*
1215
* This is a minimal server push example, which is used to update the GUI
1316
* while a big work is computing in another thread.
1417
*/
1518

16-
class BigWorkWidget : public WContainerWidget
19+
class BigWorkWidget : public Wt::WContainerWidget
1720
{
1821
public:
19-
BigWorkWidget(WContainerWidget *parent)
22+
BigWorkWidget(Wt::WContainerWidget *parent)
2023
: WContainerWidget(parent)
2124
{
22-
startButton_ = new WPushButton("Start", this);
23-
startButton_->clicked().connect(startButton_, &WPushButton::disable);
25+
startButton_ = new Wt::WPushButton("Start", this);
26+
startButton_->clicked().connect(startButton_, &Wt::WPushButton::disable);
2427
startButton_->clicked().connect(this, &BigWorkWidget::startBigWork);
2528

26-
resultText_ = new WText(this);
29+
resultText_ = new Wt::WText(this);
2730
resultText_->setInline(false);
2831
}
2932

3033
private:
31-
WPushButton *startButton_;
32-
WText *resultText_;
34+
Wt::WPushButton *startButton_;
35+
Wt::WText *resultText_;
3336

3437
boost::thread workThread_;
3538

3639
void startBigWork() {
37-
WApplication *app = WApplication::instance();
40+
Wt::WApplication *app = Wt::WApplication::instance();
3841

3942
// Enable server push
4043
app->enableUpdates(true);
@@ -53,23 +56,23 @@ private:
5356
* that use thread-local storage. We can only access WApplication::instance()
5457
* after we have grabbed its update-lock.
5558
*/
56-
void doBigWork(WApplication *app)
59+
void doBigWork(Wt::WApplication *app)
5760
{
5861
for (unsigned i = 0; i < 20; ++i) {
5962
// Do 50 ms of hard work.
6063
boost::this_thread::sleep(boost::posix_time::milliseconds(50));
6164

6265
// Get the application update lock to update the user-interface
6366
// with a progress indication.
64-
WApplication::UpdateLock uiLock = app->getUpdateLock();
67+
Wt::WApplication::UpdateLock uiLock = app->getUpdateLock();
6568

6669
resultText_->setText(resultText_->text() + ".");
6770

6871
app->triggerUpdate();
6972
}
7073

7174

72-
WApplication::UpdateLock uiLock = app->getUpdateLock();
75+
Wt::WApplication::UpdateLock uiLock = app->getUpdateLock();
7376

7477
resultText_->setText("That was hefty!");
7578
startButton_->enable();
@@ -82,9 +85,9 @@ private:
8285
}
8386
};
8487

85-
WApplication *createApplication(const WEnvironment& env)
88+
Wt::WApplication *createApplication(const Wt::WEnvironment& env)
8689
{
87-
WApplication *app = new WApplication(env);
90+
Wt::WApplication *app = new Wt::WApplication(env);
8891
new BigWorkWidget(app->root());
8992

9093
return app;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ADD_EXECUTABLE(suggestionpopup.wt SuggestionPopup.C)
2+
TARGET_LINK_LIBRARIES(suggestionpopup.wt ${EXAMPLES_CONNECTOR})
3+
4+
#
5+
# If you have Wt installed somehwere, you should use the
6+
# installed Wt header files for your own Wt projects.
7+
# e.g. INCLUDE_DIRECTORIES(/usr/local/include)
8+
# instead of the following:
9+
#
10+
INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)

0 commit comments

Comments
 (0)