#include <Wt/WApplication>
#include <Wt/WBreak>
#include <Wt/WContainerWidget>
#include <Wt/WPushButton>
#include <Wt/WText>
#include "CountDownWidget.h"
Go to the source code of this file.
§ createApplication()
WApplication* createApplication |
( |
const WEnvironment & |
env | ) |
|
Definition at line 15 of file impossible.C.
17 WApplication *appl =
new WApplication(env);
19 new WText(
"<h1>Your mission</h1>", appl->root());
21 =
new WText(
"Your mission, Jim, should you accept, is to create solid " 25 new WBreak(appl->root());
new WBreak(appl->root());
27 new WText(
"This program will quit in ", appl->root());
29 new WText(
" seconds.", appl->root());
31 new WBreak(appl->root());
new WBreak(appl->root());
33 WPushButton *cancelButton =
new WPushButton(
"Cancel!", appl->root());
34 WPushButton *quitButton =
new WPushButton(
"Quit", appl->root());
35 quitButton->clicked().connect(appl, &WApplication::quit);
37 countdown->
done().connect(appl, &WApplication::quit);
39 cancelButton->clicked().connect(cancelButton, &WFormWidget::disable);
40 cancelButton->clicked().connect(secret, &WWidget::hide);
§ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 45 of file impossible.C.
WApplication * createApplication(const WEnvironment &env)