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