Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsSiteMap.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/WApplication>
8 #include <Wt/WLogger>
9 #include <Wt/WTheme>
10 
11 #include <gdwtcore/gdToolbar.h>
12 
13 #include "WsSiteMap.h"
14 
16 #include <Include/WsGlobalConfig.h>
17 
18 using namespace Wt;
19 
20 WsSiteMap::WsSiteMap(WContainerWidget* parent)
21  : WContainerWidget(parent)
22 {
23  //if ( WsLayoutProperties::instance()->get("global", "by_object_stylesheet", "false") == "true" )
24  if ( WString::tr("byObjectStyleSheet").narrow() == "true" )
25  wApp->useStyleSheet(wApp->theme()->resourcesUrl() + "wittyshare/Css/WsSiteMap.css");
26  addStyleClass("WsSiteMap");
27  gdToolbarItem* pTb = gdToolbar::newToolbarItem("", "Site Map", "");
28  pTb->clicked().connect(SLOT(this, WsSiteMap::doSiteMapClicked));
29  addWidget(pTb);
30 }
31 
33 { }
34 
36 {
37  wApp->setInternalPath("/SiteMap", true);
38 }
39 
WsSiteMap(Wt::WContainerWidget *parent=0)
Definition: WsSiteMap.cpp:20
void doSiteMapClicked()
Definition: WsSiteMap.cpp:35