11#include <Wt/WContainerWidget.h>
12#include <Wt/WTreeView.h>
13#include <Wt/WStandardItemModel.h>
29 const std::string& examplesRoot,
30 const std::string& examplesType);
40 std::shared_ptr<WStandardItemModel>
model_;
43 const boost::filesystem::path& path);
45 const boost::filesystem::path& path);
47 const boost::filesystem::path& srcPath,
48 const std::string packageName);
57 const std::string& example);
A simple widget to visualise a set of example source files.
void cppTraverseDir(WStandardItem *parent, const boost::filesystem::path &path)
void setExample(const std::string &exampleDir, const std::string &example)
std::shared_ptr< WStandardItemModel > model_
ExampleSourceViewer(const std::string &deployPath, const std::string &examplesRoot, const std::string &examplesType)
Constructor.
void javaTraversePackages(WStandardItem *parent, const boost::filesystem::path &srcPath, const std::string packageName)
std::string examplesType_
std::string examplesRoot_
void showFile()
Displayed the currently selected file.
void javaTraverseDir(WStandardItem *parent, const boost::filesystem::path &path)
View class for source code.