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