Wt examples
3.3.12
build
witty-XWY8sd
witty-3.3.12+dfsg
examples
javascript
JavascriptExample.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
#ifndef JAVASCRIPTEXAMPLE_H_
8
#define JAVASCRIPTEXAMPLE_H_
9
10
#include <Wt/WApplication>
11
12
using namespace
Wt
;
13
18
19
class
Popup
;
20
24
class
JavascriptExample
:
public
WApplication
25
{
26
public
:
29
JavascriptExample
(
const
WEnvironment& env);
30
31
private
:
34
void
confirmed();
35
38
void
setAmount(std::string amount);
39
42
Popup
*
promptAmount_
;
43
46
Popup
*
confirmPay_
;
47
50
WText *
currentAmount_
;
51
};
52
55
#endif // JAVASCRIPTEXAMPLE_H_
Wt
Definition:
AddresseeEdit.h:16
Popup
A JavaScript based popup window, encapsulating the Javascript functions alert(), confirm(),...
Definition:
Popup.h:32
JavascriptExample
An example showing how to interact custom JavaScript with Wt stuff.
Definition:
JavascriptExample.h:24
JavascriptExample::confirmPay_
Popup * confirmPay_
Popup for paying.
Definition:
JavascriptExample.h:46
JavascriptExample::promptAmount_
Popup * promptAmount_
Popup for changing the amount.
Definition:
JavascriptExample.h:42
JavascriptExample::currentAmount_
WText * currentAmount_
WText for showing the current amount.
Definition:
JavascriptExample.h:50
Generated on Fri Apr 24 2020 for
the C++ Web Toolkit (Wt)
by
1.8.17