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
Main
WsFunctionnalities.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
7
#include <Wt/WHBoxLayout>
8
#include <Wt/WTheme>
9
10
#include <
Main/WsApplication.h
>
11
#include "
Main/WsContentButtonsBar.h
"
12
13
#include "
Main/WsFunctionnalities.h
"
14
15
using namespace
Wt;
16
17
WsFunctionnalities::WsFunctionnalities
(WContainerWidget* parent)
18
: WContainerWidget(parent)
19
{
20
// if ( WsLayoutProperties::instance()->get("global", "by_object_stylesheet", "false") == "true" )
21
if
( WString::tr(
"byObjectStyleSheet"
).narrow() ==
"true"
)
22
wApp->useStyleSheet(wApp->theme()->resourcesUrl() +
"wittyshare/Css/WsFunctionnalities.css"
);
23
addStyleClass(
"WsFunctionnalities"
);
24
WHBoxLayout* hbox =
new
WHBoxLayout();
25
hbox->setContentsMargins(0, 0, 0, 0);
26
WWidget* w =
WsApp
->WsModules().module(
"WsBreadCrumb"
)->createContents();
27
WsOptions
* wOpt =
dynamic_cast<
WsOptions
*
>
(w);
28
// wOpt->setOption("rootPath", path);
29
hbox->addWidget(w, 1);
30
WsContentButtonsBar
* pBB =
new
WsContentButtonsBar
();
31
hbox->addWidget(pBB, 0);
32
setLayout(hbox);
33
// resize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage));
34
}
35
36
WsFunctionnalities::~WsFunctionnalities
()
37
{ }
38
WsContentButtonsBar.h
WsFunctionnalities::WsFunctionnalities
WsFunctionnalities(Wt::WContainerWidget *parent=0)
Definition:
WsFunctionnalities.cpp:17
WsApplication.h
WsFunctionnalities::~WsFunctionnalities
~WsFunctionnalities()
Definition:
WsFunctionnalities.cpp:36
WsContentButtonsBar
Definition:
WsContentButtonsBar.h:18
WsFunctionnalities.h
WsApp
#define WsApp
Define a shortcut to the application instance.
Definition:
WsApplication.h:62
WsOptions
Definition:
WsOption.h:23
Generated on Wed Apr 23 2014 14:00:08 for Wittyshare by
1.8.6