File: classFileItem.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (163 lines) | stat: -rw-r--r-- 10,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt examples: FileItem Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>FileItem Class Reference</h1><!-- doxytag: class="FileItem" --><!-- doxytag: inherits="Wt::WStandardItem" -->WStandardItem which stores a file.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FileItem_8h-source.html">FileItem.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for FileItem:</div>
<div class="dynsection">
<p><center><img src="classFileItem__inherit__graph.png" border="0" usemap="#FileItem__inherit__map" alt="Inheritance graph"></center>
<map name="FileItem__inherit__map">
<area shape="rect" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WStandardItem.html" title="Wt::WStandardItem" alt="" coords="5,5,141,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classFileItem-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFileItem.html#e9c6218162b3927196025a91ab339d78">FileItem</a> (const std::string &amp;iconUri, const <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WString.html">Wt::WString</a> &amp;<a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WStandardItem.html#5cd26b1515b25d32b2872210918d7e68">text</a>, const std::string &amp;fileName)</td></tr>

<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFileItem.html#e1dbc221110c06627765b421c30df2ab">ContentsRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFileItem.html#a8d601340669b5628a8bac8e35ccd936">FilePathRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a> + 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFileItem.html#e072fe0aa9a614bfc39a9f59cf987771">FileNameRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a> + 2</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
WStandardItem which stores a file. 
<p>
The <a class="el" href="classSourceView.html" title="View class for source code.">SourceView</a> class reads data from 3 additional roles:<ul>
<li>ContentsRole: file contents</li><li>FilePathRole: the path which holds the file contents</li><li>FileNameRole: the original file name (used to derive the file type) </li></ul>

<p>Definition at line <a class="el" href="FileItem_8h-source.html#l00028">28</a> of file <a class="el" href="FileItem_8h-source.html">FileItem.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="e9c6218162b3927196025a91ab339d78"></a><!-- doxytag: member="FileItem::FileItem" ref="e9c6218162b3927196025a91ab339d78" args="(const std::string &amp;iconUri, const Wt::WString &amp;text, const std::string &amp;fileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FileItem::FileItem           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>iconUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WString.html">Wt::WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>fileName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FileItem_8h-source.html#l00035">35</a> of file <a class="el" href="FileItem_8h-source.html">FileItem.h</a>.</p>
<div class="fragment"><pre class="fragment"><a name="l00037"></a>00037     : <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WStandardItem.html#be5aebe20c0c5309be95928996e3acf1">WStandardItem</a>(iconUri, text)
<a name="l00038"></a>00038   { 
<a name="l00039"></a>00039     <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WStandardItem.html#fbe54e68e576c4902c9085f8966c93ef">setData</a>(fileName, <a class="code" href="classFileItem.html#e072fe0aa9a614bfc39a9f59cf987771">FileNameRole</a>);
<a name="l00040"></a>00040     <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WStandardItem.html#fbe54e68e576c4902c9085f8966c93ef">setData</a>(fileName, <a class="code" href="classFileItem.html#a8d601340669b5628a8bac8e35ccd936">FilePathRole</a>);
<a name="l00041"></a>00041   }
</pre></div>
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="e1dbc221110c06627765b421c30df2ab"></a><!-- doxytag: member="FileItem::ContentsRole" ref="e1dbc221110c06627765b421c30df2ab" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="classFileItem.html#e1dbc221110c06627765b421c30df2ab">FileItem::ContentsRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a><code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FileItem_8h-source.html#l00031">31</a> of file <a class="el" href="FileItem_8h-source.html">FileItem.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="a8d601340669b5628a8bac8e35ccd936"></a><!-- doxytag: member="FileItem::FilePathRole" ref="a8d601340669b5628a8bac8e35ccd936" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="classFileItem.html#a8d601340669b5628a8bac8e35ccd936">FileItem::FilePathRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a> + 1<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FileItem_8h-source.html#l00032">32</a> of file <a class="el" href="FileItem_8h-source.html">FileItem.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="e072fe0aa9a614bfc39a9f59cf987771"></a><!-- doxytag: member="FileItem::FileNameRole" ref="e072fe0aa9a614bfc39a9f59cf987771" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="classFileItem.html#e072fe0aa9a614bfc39a9f59cf987771">FileItem::FileNameRole</a> = <a class="elRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__modelview.html#gg0ae864e12320f9f89172735e075ed0689b7eae9fc07ea4fd8afe7bc97954162c">Wt::UserRole</a> + 2<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="FileItem_8h-source.html#l00033">33</a> of file <a class="el" href="FileItem_8h-source.html">FileItem.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>/home/koen/project/wt/public-git/wt/examples/wt-homepage/<a class="el" href="FileItem_8h-source.html">FileItem.h</a></ul>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>