Wt examples: wt-homepage/JWtHome.h Source File

Wt examples 4.10.4

Loading...
Searching...
No Matches
JWtHome.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 bv, Herent, Belgium.
4 *
5 * See the LICENSE file for terms of use.
6 */
7#ifndef JWT_HOME_H_
8#define JWT_HOME_H_
9
10#include <Wt/WApplication.h>
11
12#include "Home.h"
13
14using namespace Wt;
15
16 class JWtHome : public Home
17{
18public:
19 JWtHome(const WEnvironment& env, Dbo::SqlConnectionPool& blogDb);
20
21protected:
22 virtual std::unique_ptr<WWidget> examples();
23 virtual std::unique_ptr<WWidget> createQuoteForm();
24 virtual std::unique_ptr<WWidget> sourceViewer(const std::string& deployPath);
25 virtual std::string filePrefix() const { return "jwt-"; }
26
27 std::unique_ptr<WWidget> wrapView(std::unique_ptr<WWidget> (JWtHome::*createFunction)());
28
29private:
30 std::unique_ptr<WWidget> example(const char *textKey, const std::string& sourceDir);
31
32 std::unique_ptr<WWidget> helloWorldExample();
33 std::unique_ptr<WWidget> chartExample();
34 std::unique_ptr<WWidget> composerExample();
35 std::unique_ptr<WWidget> treeviewExample();
36 std::unique_ptr<WWidget> chatExample();
37 std::unique_ptr<WWidget> figtreeExample();
38 std::unique_ptr<WWidget> widgetGalleryExample();
39
40 std::string jwtExamplePath_;
41};
42
43std::unique_ptr<WApplication> createJWtHomeApplication(const WEnvironment& env,
44 Dbo::SqlConnectionPool *blogDb);
45
46#endif // JWT_HOME_H_
Home.h
createJWtHomeApplication
std::unique_ptr< WApplication > createJWtHomeApplication(const WEnvironment &env, Dbo::SqlConnectionPool *blogDb)
Definition JWtHome.C:157
Home
Definition Home.h:68
JWtHome
Definition JWtHome.h:17
JWtHome::helloWorldExample
std::unique_ptr< WWidget > helloWorldExample()
Definition JWtHome.C:114
JWtHome::figtreeExample
std::unique_ptr< WWidget > figtreeExample()
Definition JWtHome.C:139
JWtHome::sourceViewer
virtual std::unique_ptr< WWidget > sourceViewer(const std::string &deployPath)
Definition JWtHome.C:101
JWtHome::chartExample
std::unique_ptr< WWidget > chartExample()
Definition JWtHome.C:119
JWtHome::example
std::unique_ptr< WWidget > example(const char *textKey, const std::string &sourceDir)
Definition JWtHome.C:106
JWtHome::JWtHome
JWtHome(const WEnvironment &env, Dbo::SqlConnectionPool &blogDb)
Definition JWtHome.C:27
JWtHome::jwtExamplePath_
std::string jwtExamplePath_
Definition JWtHome.h:40
JWtHome::chatExample
std::unique_ptr< WWidget > chatExample()
Definition JWtHome.C:134
JWtHome::examples
virtual std::unique_ptr< WWidget > examples()
Definition JWtHome.C:43
JWtHome::treeviewExample
std::unique_ptr< WWidget > treeviewExample()
Definition JWtHome.C:124
JWtHome::filePrefix
virtual std::string filePrefix() const
Definition JWtHome.h:25
JWtHome::widgetGalleryExample
std::unique_ptr< WWidget > widgetGalleryExample()
Definition JWtHome.C:147
JWtHome::wrapView
std::unique_ptr< WWidget > wrapView(std::unique_ptr< WWidget >(JWtHome::*createFunction)())
Definition JWtHome.C:152
JWtHome::createQuoteForm
virtual std::unique_ptr< WWidget > createQuoteForm()
Definition JWtHome.C:92
JWtHome::composerExample
std::unique_ptr< WWidget > composerExample()
Definition JWtHome.C:129
Wt
Definition AddresseeEdit.h:16