11 #include <Wt/WViewWidget> 12 #include <Wt/WModelIndex> 13 #include <Wt/WMemoryResource> 35 SourceView(
int fileNameRole,
int contentRole,
int filePathRole);
int fileNameRole_
The role that is currently displayed.
SourceView(int fileNameRole, int contentRole, int filePathRole)
Constructor.
std::string imageExtension(const std::string &fileName)
View class for source code.
Wt::WMemoryResource * imageResource_
bool setIndex(const Wt::WModelIndex &index)
Sets the model index.
virtual Wt::WWidget * renderView()
Returns the widget that renders the view.
Wt::WModelIndex index_
The index that is currently displayed.
virtual ~SourceView()
Destructor.