11 #include <Wt/WViewWidget.h>
12 #include <Wt/WModelIndex.h>
13 #include <Wt/WMemoryResource.h>
57 virtual std::unique_ptr<WWidget> renderView();
71 std::string imageExtension(
const std::string& fileName);
View class for source code.
Wt::ItemDataRole filePathRole_
WModelIndex index_
The index that is currently displayed.
Wt::ItemDataRole fileNameRole_
The role that is currently displayed.
std::shared_ptr< WMemoryResource > imageResource_
Wt::ItemDataRole contentRole_