Wt examples  3.3.0
SourceView.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2009 Emweb bvba
4  *
5  * See the LICENSE file for terms of use.
6  */
7 
8 #ifndef SOURCEVIEW_H
9 #define SOURCEVIEW_H
10 
11 #include <Wt/WViewWidget>
12 #include <Wt/WModelIndex>
13 #include <Wt/WMemoryResource>
14 
19 
27 {
28 public:
35  SourceView(int fileNameRole, int contentRole, int filePathRole);
36 
39  virtual ~SourceView();
40 
46  bool setIndex(const Wt::WModelIndex& index);
47 
53  virtual Wt::WWidget *renderView();
54 
55 private:
58 
63 
65 
66 private:
67  std::string imageExtension(const std::string& fileName);
68 };
69 
72 #endif //SOURCEVIEW_H

Generated on Fri May 31 2013 for the C++ Web Toolkit (Wt) by doxygen 1.8.3.1