11#include <Wt/WContainerWidget.h>
12#include <Wt/WTreeView.h>
13#include <Wt/WStandardItemModel.h>
15#include <Wt/cpp17/filesystem.hpp>
31 const std::string& examplesRoot,
32 const std::string& examplesType);
42 std::shared_ptr<WStandardItemModel>
model_;
45 const cpp17::filesystem::path& path);
47 const cpp17::filesystem::path& path);
49 const cpp17::filesystem::path& srcPath,
50 const std::string packageName);
59 const std::string& example);
A simple widget to visualise a set of example source files.
void setExample(const std::string &exampleDir, const std::string &example)
std::shared_ptr< WStandardItemModel > model_
void cppTraverseDir(WStandardItem *parent, const cpp17::filesystem::path &path)
std::string examplesType_
std::string examplesRoot_
void showFile()
Displayed the currently selected file.
void javaTraverseDir(WStandardItem *parent, const cpp17::filesystem::path &path)
void javaTraversePackages(WStandardItem *parent, const cpp17::filesystem::path &srcPath, const std::string packageName)
View class for source code.