Wittyshare
0.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
wittyshare
src
FhtmlEditor
src
main.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-Today Guy Deleeuw
3
*
4
* See the LICENSE file for terms of use.
5
*/
6
#include <Wt/WContainerWidget>
7
#include <Wt/WOverlayLoadingIndicator>
8
#include <Wt/WTheme>
9
10
#include <gdwtcore/gdApplication.h>
11
#include <gdwtcore/gdFHtmlEditor.h>
12
13
#include <
ConfigManager/WsLayoutProperties.h
>
14
15
using namespace
Wt;
16
17
WApplication*
createApplication
(
const
WEnvironment& env)
18
{
19
gdApplication* gdApp =
new
gdApplication(env);
20
wApp->root()->addStyleClass(
"gdMainWin"
);
21
// Chargement du fichier de resources .xml
22
wApp->messageResourceBundle().use(wApp->docRoot() + wApp->resourcesUrl() +
"/FtmlEditor/Transl/fhtmlEditor"
);
23
// Chargement du fichier de configuration .xml
24
wApp->messageResourceBundle().use(
"/etc/wt/fhtmlEditor_config"
);
25
wApp->setTitle(WMessage::tr(
"win-title"
));
26
wApp->useStyleSheet(wApp->theme()->resourcesUrl() +
"/FhtmlEditor/Css/fhtmlEditor.css"
);
27
wApp->setCssTheme(
WsLayoutProperties::instance
()->
get
(
"global"
,
"css_theme"
,
""
) );
28
WApplication::instance()->setLoadingIndicator(
new
WOverlayLoadingIndicator());
29
wApp->root()->resize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage));
30
wApp->root()->addWidget(
new
gdFHtmlEditor());
31
wApp->root()->setOverflow(WContainerWidget::OverflowHidden);
32
return
gdApp;
33
}
34
35
int
main
(
int
argc,
char
** argv)
36
{
37
return
WRun(argc, argv, &
createApplication
);
38
}
39
WsLayoutProperties.h
main
int main(int argc, char **argv)
Definition:
main.cpp:35
createApplication
WApplication * createApplication(const WEnvironment &env)
Definition:
main.cpp:17
WsLayoutProperties::instance
static WsLayoutProperties * instance()
Get the singleton instance.
Definition:
WsLayoutProperties.cpp:28
Generated on Wed Apr 23 2014 14:00:08 for Wittyshare by
1.8.6