Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Slots | Public Member Functions | Private Attributes | List of all members
WsSiteMapView Class Reference

#include <WsSiteMapView.h>

Inheritance diagram for WsSiteMapView:
Inheritance graph
Collaboration diagram for WsSiteMapView:
Collaboration graph

Public Slots

void onViewDblClick (Wt::WModelIndex idx, Wt::WMouseEvent mouseEvent)
 
void onTreeSelectionChanged ()
 
void onTreeExpanded (Wt::WModelIndex idx)
 
void onViewSelectionChanged ()
 
void onViewExpanded (Wt::WModelIndex idx)
 
void doRename ()
 
void doConfirmDelete ()
 
void doDelete (Wt::StandardButton button)
 
void doNewFolder ()
 
void onDirectoryNameChanged (Wt::WStandardItem *pItem)
 

Public Member Functions

 WsSiteMapView (gdwtcore::viewType dlgType, gdWFileView::tbFlags flags=gdWFileView::tbDefault, Wt::WContainerWidget *parent=0)
 
 ~WsSiteMapView ()
 
virtual void load ()
 
std::string path2SiteMapPath (const std::string &path)
 
std::string SiteMapPath2path (const std::string &siteMapPath)
 
void setRelativePath (const std::string &relativePath)
 
void init (NodePtr pNode)
 
bool treeTraverse (Wt::WStandardItem *rootItem, const std::vector< std::string > &vPath, int nLevel)
 
void treeMatchPath (NodePtr pNode)
 
bool loadTree (Wt::WStandardItem *currentItem, NodePtr pNode, gdWFileView::skipMode skipParentDir=gdWFileView::noSkipParent)
 
bool loadFolder (Wt::WStandardItem *currentItem, const std::string &newPath, NodePtr curNode, bool bEdit=false)
 
bool loadFile (Wt::WStandardItem *currentItem, const std::string &currentPath, NodePtr curNode)
 
void setCurrentPath (const std::string &currentPath)
 
std::string selectedDirectory ()
 
std::string selectedFile ()
 
std::string selectedPath ()
 
std::string currentFolderPath ()
 
void makeToolbar ()
 
Wt::Signal
< gdWFileView::signalType,
std::string > & 
fileSelected ()
 
void setOption (const std::string &attribute, boost::any value)
 Set an options if previously set, update the value. More...
 
void setOptions (const std::vector< WsOption > &vOptions)
 Set all options. More...
 
const boost::any & option (const std::string &attribute) const
 Get an options value. More...
 
const std::vector< WsOption > & options () const
 Get all options. More...
 
void outOptions (const std::string message)
 Output all options. More...
 

Private Attributes

Wt::Signal
< gdWFileView::signalType,
std::string > 
fileSelected_
 
gdwtcore::viewType m_viewType
 
gdWFileView::tbFlags m_tbFlags
 
Wt::WStandardItemModel * m_pModelTree
 
Wt::WStandardItemModel * m_pModelView
 
Wt::WTreeView * m_pTVTree
 
Wt::WTreeView * m_pTVView
 
gdToolbar * m_pTb
 
bool m_bOnTreeSelect
 
bool m_bOnDataChanged
 
Wt::WMenu * m_pMenu
 
bool m_bOnRename
 
NodePtr m_pTreecurNode
 
gdToolbarItem * m_tbiDelete
 
gdToolbarItem * m_tbiNewFolder
 
gdToolbarItem * m_tbiRename
 
std::string m_selectedFile
 
std::string m_selectedDirectory
 
std::string m_sRootPath
 
std::string m_sSiteMap
 
std::string m_sRootSiteMap
 
Wt::WMessageBox * m_pMb
 
bool m_bLogSiteMap
 

Detailed Description

Definition at line 47 of file WsSiteMapView.h.

Constructor & Destructor Documentation

WsSiteMapView::WsSiteMapView ( gdwtcore::viewType  dlgType,
gdWFileView::tbFlags  flags = gdWFileView::tbDefault,
Wt::WContainerWidget *  parent = 0 
)

Definition at line 58 of file WsSiteMapView.cpp.

Here is the call graph for this function:

WsSiteMapView::~WsSiteMapView ( )

Definition at line 82 of file WsSiteMapView.cpp.

Member Function Documentation

std::string WsSiteMapView::currentFolderPath ( )

Definition at line 499 of file WsSiteMapView.cpp.

Here is the caller graph for this function:

void WsSiteMapView::doConfirmDelete ( )
slot

Definition at line 529 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::doDelete ( Wt::StandardButton  button)
slot

Definition at line 543 of file WsSiteMapView.cpp.

Here is the caller graph for this function:

void WsSiteMapView::doNewFolder ( )
slot

Definition at line 577 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::doRename ( )
slot

Definition at line 515 of file WsSiteMapView.cpp.

Here is the caller graph for this function:

Wt::Signal<gdWFileView::signalType, std::string>& WsSiteMapView::fileSelected ( )
inline

Definition at line 70 of file WsSiteMapView.h.

Here is the caller graph for this function:

void WsSiteMapView::init ( NodePtr  pNode)

Definition at line 195 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::load ( )
virtual

Definition at line 88 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WsSiteMapView::loadFile ( Wt::WStandardItem *  currentItem,
const std::string &  currentPath,
NodePtr  curNode 
)

Definition at line 348 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WsSiteMapView::loadFolder ( Wt::WStandardItem *  currentItem,
const std::string &  newPath,
NodePtr  curNode,
bool  bEdit = false 
)

Definition at line 309 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WsSiteMapView::loadTree ( Wt::WStandardItem *  currentItem,
NodePtr  pNode,
gdWFileView::skipMode  skipParentDir = gdWFileView::noSkipParent 
)

Definition at line 263 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::makeToolbar ( )

Definition at line 504 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::onDirectoryNameChanged ( Wt::WStandardItem *  pItem)
slot

Definition at line 583 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::onTreeExpanded ( Wt::WModelIndex  idx)
slot

Definition at line 397 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::onTreeSelectionChanged ( )
slot

Definition at line 376 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::onViewDblClick ( Wt::WModelIndex  idx,
Wt::WMouseEvent  mouseEvent 
)
slot

Definition at line 437 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsSiteMapView::onViewExpanded ( Wt::WModelIndex  idx)
slot

Definition at line 463 of file WsSiteMapView.cpp.

Here is the caller graph for this function:

void WsSiteMapView::onViewSelectionChanged ( )
slot

Definition at line 412 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::any & WsOptions::option ( const std::string &  attribute) const
inherited

Get an options value.

Definition at line 62 of file WsOption.cpp.

Here is the caller graph for this function:

const std::vector< WsOption > & WsOptions::options ( ) const
inherited

Get all options.

Definition at line 70 of file WsOption.cpp.

Here is the caller graph for this function:

void WsOptions::outOptions ( const std::string  message)
inherited

Output all options.

Definition at line 75 of file WsOption.cpp.

Here is the caller graph for this function:

std::string WsSiteMapView::path2SiteMapPath ( const std::string &  path)

Definition at line 164 of file WsSiteMapView.cpp.

Here is the caller graph for this function:

std::string WsSiteMapView::selectedDirectory ( )

Definition at line 483 of file WsSiteMapView.cpp.

std::string WsSiteMapView::selectedFile ( )

Definition at line 488 of file WsSiteMapView.cpp.

std::string WsSiteMapView::selectedPath ( )

Definition at line 493 of file WsSiteMapView.cpp.

void WsSiteMapView::setCurrentPath ( const std::string &  currentPath)

Definition at line 478 of file WsSiteMapView.cpp.

void WsOptions::setOption ( const std::string &  attribute,
boost::any  value 
)
inherited

Set an options if previously set, update the value.

Definition at line 47 of file WsOption.cpp.

Here is the caller graph for this function:

void WsOptions::setOptions ( const std::vector< WsOption > &  vOptions)
inherited

Set all options.

Definition at line 57 of file WsOption.cpp.

Here is the caller graph for this function:

void WsSiteMapView::setRelativePath ( const std::string &  relativePath)

Definition at line 178 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string WsSiteMapView::SiteMapPath2path ( const std::string &  siteMapPath)

Definition at line 171 of file WsSiteMapView.cpp.

void WsSiteMapView::treeMatchPath ( NodePtr  pNode)

Definition at line 230 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WsSiteMapView::treeTraverse ( Wt::WStandardItem *  rootItem,
const std::vector< std::string > &  vPath,
int  nLevel 
)

Definition at line 210 of file WsSiteMapView.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Wt::Signal<gdWFileView::signalType, std::string> WsSiteMapView::fileSelected_
private

Definition at line 72 of file WsSiteMapView.h.

bool WsSiteMapView::m_bLogSiteMap
private

Definition at line 112 of file WsSiteMapView.h.

bool WsSiteMapView::m_bOnDataChanged
private

Definition at line 99 of file WsSiteMapView.h.

bool WsSiteMapView::m_bOnRename
private

Definition at line 101 of file WsSiteMapView.h.

bool WsSiteMapView::m_bOnTreeSelect
private

Definition at line 97 of file WsSiteMapView.h.

Wt::WMessageBox* WsSiteMapView::m_pMb
private

Definition at line 111 of file WsSiteMapView.h.

Wt::WMenu* WsSiteMapView::m_pMenu
private

Definition at line 100 of file WsSiteMapView.h.

Wt::WStandardItemModel* WsSiteMapView::m_pModelTree
private

Definition at line 92 of file WsSiteMapView.h.

Wt::WStandardItemModel* WsSiteMapView::m_pModelView
private

Definition at line 93 of file WsSiteMapView.h.

gdToolbar* WsSiteMapView::m_pTb
private

Definition at line 96 of file WsSiteMapView.h.

NodePtr WsSiteMapView::m_pTreecurNode
private

Definition at line 102 of file WsSiteMapView.h.

Wt::WTreeView* WsSiteMapView::m_pTVTree
private

Definition at line 94 of file WsSiteMapView.h.

Wt::WTreeView* WsSiteMapView::m_pTVView
private

Definition at line 95 of file WsSiteMapView.h.

std::string WsSiteMapView::m_selectedDirectory
private

Definition at line 107 of file WsSiteMapView.h.

std::string WsSiteMapView::m_selectedFile
private

Definition at line 106 of file WsSiteMapView.h.

std::string WsSiteMapView::m_sRootPath
private

Definition at line 108 of file WsSiteMapView.h.

std::string WsSiteMapView::m_sRootSiteMap
private

Definition at line 110 of file WsSiteMapView.h.

std::string WsSiteMapView::m_sSiteMap
private

Definition at line 109 of file WsSiteMapView.h.

gdWFileView::tbFlags WsSiteMapView::m_tbFlags
private

Definition at line 91 of file WsSiteMapView.h.

gdToolbarItem* WsSiteMapView::m_tbiDelete
private

Definition at line 103 of file WsSiteMapView.h.

gdToolbarItem* WsSiteMapView::m_tbiNewFolder
private

Definition at line 104 of file WsSiteMapView.h.

gdToolbarItem* WsSiteMapView::m_tbiRename
private

Definition at line 105 of file WsSiteMapView.h.

gdwtcore::viewType WsSiteMapView::m_viewType
private

Definition at line 90 of file WsSiteMapView.h.


The documentation for this class was generated from the following files: