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);
56 void handlePathChange();
58 void setExample(
const std::string& exampleDir,
59 const std::string& example);
A simple widget to visualise a set of example source files.
std::shared_ptr< WStandardItemModel > model_
std::string examplesType_
std::string examplesRoot_
View class for source code.