Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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>
12 
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);
31  hbox->addWidget(pBB, 0);
32  setLayout(hbox);
33  // resize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage));
34 }
35 
37 { }
38 
WsFunctionnalities(Wt::WContainerWidget *parent=0)
#define WsApp
Define a shortcut to the application instance.
Definition: WsApplication.h:62