<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Wt examples: FileModel Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Wt examples  <span id="projectnumber">3.2.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main 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 id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-attribs">Static Public Attributes</a> </div> <div class="headertitle"> <div class="title">FileModel Class Reference<div class="ingroups"><a class="el" href="group__treeviewdragdrop.html">Drag and drop in WTreeView example</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="FileModel" --><!-- doxytag: inherits="Wt::WStandardItemModel" --> <p>A specialized standard item model which report a specific drag and drop mime type. <a href="classFileModel.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for FileModel:</div> <div class="dyncontent"> <div class="center"><img src="classFileModel__inherit__graph.png" border="0" usemap="#FileModel_inherit__map" alt="Inheritance graph"/></div> <map name="FileModel_inherit__map" id="FileModel_inherit__map"> <area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WStandardItemModel.html" title="Wt::WStandardItemModel" alt="" coords="5,155,176,181"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WAbstractItemModel.html" title="Wt::WAbstractItemModel" alt="" coords="7,80,175,107"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="43,5,139,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classFileModel-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFileModel.html#ad4119fe945be59b73258454065b70a44">FileModel</a> (<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html">WObject</a> *<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WAbstractItemModel.html#ada454d45706ca0c1a0921dedd351c48c">parent</a>)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#ad4119fe945be59b73258454065b70a44"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classFileModel.html#a1d1b5545d4f6763071536ec8ce6bc2e6">mimeType</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the mime type. <a href="#a1d1b5545d4f6763071536ec8ce6bc2e6"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-attribs"></a> Static Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__treeviewdragdrop.html#gaf69754b77374aac3aa0eed57360fbb7f">dateDisplayFormat</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Date display format. <a href="group__treeviewdragdrop.html#gaf69754b77374aac3aa0eed57360fbb7f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__treeviewdragdrop.html#ga7bb540f8c352707933d4bd36c8282aba">dateEditFormat</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Date edit format. <a href="group__treeviewdragdrop.html#ga7bb540f8c352707933d4bd36c8282aba"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A specialized standard item model which report a specific drag and drop mime type. </p> <p>A specific drag and drop mime type instead of the generic abstract item model is returned by the model. </p> <p>Definition at line <a class="el" href="TreeViewDragDrop_8C_source.html#l00051">51</a> of file <a class="el" href="TreeViewDragDrop_8C_source.html">TreeViewDragDrop.C</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad4119fe945be59b73258454065b70a44"></a><!-- doxytag: member="FileModel::FileModel" ref="ad4119fe945be59b73258454065b70a44" args="(WObject *parent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FileModel::FileModel </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html">WObject</a> * </td> <td class="paramname"><em>parent</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor. </p> <p>Definition at line <a class="el" href="TreeViewDragDrop_8C_source.html#l00056">56</a> of file <a class="el" href="TreeViewDragDrop_8C_source.html">TreeViewDragDrop.C</a>.</p> <div class="fragment"><pre class="fragment"> : <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WStandardItemModel.html#ac196f72fe7716da075fd07733b1c1b6f">WStandardItemModel</a>(parent) { } </pre></div> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a1d1b5545d4f6763071536ec8ce6bc2e6"></a><!-- doxytag: member="FileModel::mimeType" ref="a1d1b5545d4f6763071536ec8ce6bc2e6" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual std::string FileModel::mimeType </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return the mime type. </p> <p>Reimplemented from <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WAbstractItemModel.html#a4c62d2cc18d133d7926a91b4f2eebe62">Wt::WAbstractItemModel</a>.</p> <p>Definition at line <a class="el" href="TreeViewDragDrop_8C_source.html#l00061">61</a> of file <a class="el" href="TreeViewDragDrop_8C_source.html">TreeViewDragDrop.C</a>.</p> <div class="fragment"><pre class="fragment"> { <span class="keywordflow">return</span> <a class="code" href="classFolderView.html#af50f30fffaedf2e6e4b1e0d65acc9df0" title="Constant that indicates the mime type for a selection of files.">FolderView::FileSelectionMimeType</a>; } </pre></div> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>/home/koen/project/wt/public-git/wt/examples/treeview-dragdrop/<a class="el" href="TreeViewDragDrop_8C_source.html">TreeViewDragDrop.C</a></li> </ul> </div> <hr size="1"><address style="text-align: right; margin: 3px"><small> Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the C++ Web Toolkit (Wt)</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" border="0" style="vertical-align: middle; display: inline-block; height: 2em"></a> 1.7.5.1</small></address> </body> </html>