Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 4272c97b1af3db3f39a3b697bcba7e48 > files > 480

albumshaper-2.1-7mdv2010.1.x86_64.rpm

<!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>AlbumShaper: Annotating Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</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>Annotating Class Reference</h1><!-- doxytag: class="Annotating" -->
<p><code>#include &lt;<a class="el" href="annotating_8h_source.html">annotating.h</a>&gt;</code></p>

<p><a href="classAnnotating-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnnotating.html#ad3e66eafc25b6a6111de970f976c251c">filename</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the html filename  <a href="#ad3e66eafc25b6a6111de970f976c251c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnnotating.html#a171892c7f268378d11a3fe55f734ce39">generateHTML</a> (QTextStream::Encoding type, QString charSet)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">generates the html file  <a href="#a171892c7f268378d11a3fe55f734ce39"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="annotating_8h_source.html#l00016">16</a> of file <a class="el" href="annotating_8h_source.html">annotating.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad3e66eafc25b6a6111de970f976c251c"></a><!-- doxytag: member="Annotating::filename" ref="ad3e66eafc25b6a6111de970f976c251c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Annotating::filename </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>returns the html filename </p>

<p>Definition at line <a class="el" href="annotating_8cpp_source.html#l00024">24</a> of file <a class="el" href="annotating_8cpp_source.html">annotating.cpp</a>.</p>

<p>References <a class="el" href="config_8cpp_source.html#l00023">TEMP_DIR</a>.</p>

<p>Referenced by <a class="el" href="annotating_8cpp_source.html#l00029">generateHTML()</a>, and <a class="el" href="helpWindow_8cpp_source.html#l00181">HelpWindow::showCurrentPage()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00025"></a>00025 {
<a name="l00026"></a>00026   <span class="keywordflow">return</span> QString(<span class="stringliteral">&quot;%1/annotating.html&quot;</span>).arg(<a class="code" href="config_8cpp.html#a8e603096352908a187b5364096a8d581">TEMP_DIR</a>);
<a name="l00027"></a>00027 }
</pre></div></p>

</div>
</div>
<a class="anchor" id="a171892c7f268378d11a3fe55f734ce39"></a><!-- doxytag: member="Annotating::generateHTML" ref="a171892c7f268378d11a3fe55f734ce39" args="(QTextStream::Encoding type, QString charSet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Annotating::generateHTML </td>
          <td>(</td>
          <td class="paramtype">QTextStream::Encoding&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&nbsp;</td>
          <td class="paramname"> <em>charSet</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>generates the html file </p>

<p>Definition at line <a class="el" href="annotating_8cpp_source.html#l00029">29</a> of file <a class="el" href="annotating_8cpp_source.html">annotating.cpp</a>.</p>

<p>References <a class="el" href="annotating_8cpp_source.html#l00024">filename()</a>, and <a class="el" href="config_8cpp_source.html#l00018">IMAGE_PATH</a>.</p>

<p>Referenced by <a class="el" href="helpWindow_8cpp_source.html#l00039">HelpWindow::HelpWindow()</a>.</p>

<p><div class="fragment"><pre class="fragment"><a name="l00030"></a>00030 {
<a name="l00031"></a>00031   <span class="comment">//create/open html file</span>
<a name="l00032"></a>00032   QFile file( <a class="code" href="classAnnotating.html#ad3e66eafc25b6a6111de970f976c251c" title="returns the html filename">filename</a>() );
<a name="l00033"></a>00033   <span class="keywordflow">if</span>(file.open(IO_WriteOnly))
<a name="l00034"></a>00034   {
<a name="l00035"></a>00035     <span class="comment">//-----</span>
<a name="l00036"></a>00036     QTextStream stream;
<a name="l00037"></a>00037     stream.setEncoding( type );
<a name="l00038"></a>00038     stream.setDevice( &amp;file );
<a name="l00039"></a>00039     <span class="comment">//-----</span>
<a name="l00040"></a>00040     stream &lt;&lt; <span class="stringliteral">&quot;&lt;html&gt;&lt;head&gt;\n&quot;</span>;
<a name="l00041"></a>00041     stream &lt;&lt; <span class="stringliteral">&quot;&lt;meta http-equiv=&#39;Content-Type&#39; content=&#39;text/html; charset=&quot;</span> &lt;&lt; charSet &lt;&lt; <span class="stringliteral">&quot;&#39;&gt;\n&quot;</span>;
<a name="l00042"></a>00042     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/head&gt;&lt;body&gt;\n&quot;</span>;
<a name="l00043"></a>00043     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39;&gt;&lt;tr&gt;\n&quot;</span>;
<a name="l00044"></a>00044     stream &lt;&lt; <span class="stringliteral">&quot;&lt;td&gt;&lt;img src=&#39;&quot;</span> &lt;&lt; <a class="code" href="config_8cpp.html#a59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a> &lt;&lt; <span class="stringliteral">&quot;helpImages/asHelpLogoSmall.png&#39;&gt;&lt;/td&gt;\n&quot;</span>;
<a name="l00045"></a>00045     stream &lt;&lt; <span class="stringliteral">&quot;&lt;td valign=&#39;middle&#39;&gt;&lt;font face=&#39;Arial, sans-serif&#39; size=&#39;+3&#39;&gt;&quot;</span>;
<a name="l00046"></a>00046     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Annotating Albums&quot;</span>) &lt;&lt; <span class="stringliteral">&quot;&lt;/font&gt;&lt;/td&gt;\n&quot;</span>;
<a name="l00047"></a>00047     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00048"></a>00048     
<a name="l00049"></a>00049     stream &lt;&lt; <span class="stringliteral">&quot;&lt;font face=&#39;Arial, sans-serif&#39;&gt;\n&quot;</span>;
<a name="l00050"></a>00050     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellspacing=&#39;10&#39; cellpadding=&#39;0&#39;&gt;&lt;tr&gt;&lt;td&gt;\n&quot;</span>;
<a name="l00051"></a>00051     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00052"></a>00052     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;table width=&#39;100%&#39; cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td bgcolor=&#39;lightgray&#39;&gt;\n&quot;</span>;
<a name="l00053"></a>00053     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;font size=&#39;+1&#39;&gt;&lt;b&gt;&quot;</span> &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Labeling Photos:&quot;</span>) &lt;&lt;<span class="stringliteral">&quot;&lt;/b&gt;&lt;/font&gt;\n&quot;</span>;
<a name="l00054"></a>00054     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00055"></a>00055 
<a name="l00056"></a>00056     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00057"></a>00057     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00058"></a>00058     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Labeling photos is easy in Album Shaper! Hover over a picture and click the little info button that appears in the lower right corner. The photo will expand to give you a better view and provide space for writing the caption. When you&#39;re done, click elsewhere in the collection, or just hit Escape. Alternatively, you can just use the keyboard. The arrow keys will move the current selection. Enter expands the currently selected photo to edit its caption. Escape applies the photo caption and returns to organizing.&quot;</span>);
<a name="l00059"></a>00059     
<a name="l00060"></a>00060     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00061"></a>00061     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;img src=&#39;&quot;</span> &lt;&lt; IMAGE_PATH &lt;&lt; <span class="stringliteral">&quot;helpImages/settingPhotoDescription.png&#39;&gt;\n&quot;</span>;
<a name="l00062"></a>00062     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00063"></a>00063 
<a name="l00064"></a>00064     stream &lt;&lt; <span class="stringliteral">&quot;    &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00065"></a>00065     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Album Shaper provides a number of tools that operate on multiple photos at once. If you want to remove a number of photos descriptions at once, select which photos you intend to affect, and select &lt;font color=&#39;red&#39;&gt;Photos &amp;rarr; Remove Description&lt;/font&gt;.&quot;</span>);
<a name="l00066"></a>00066     
<a name="l00067"></a>00067     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00068"></a>00068     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;\n&quot;</span>;
<a name="l00069"></a>00069     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00070"></a>00070 
<a name="l00071"></a>00071     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;table width=&#39;100%&#39; cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td bgcolor=&#39;lightgray&#39;&gt;\n&quot;</span>;
<a name="l00072"></a>00072     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;font size=&#39;+1&#39;&gt;&lt;b&gt;&quot;</span> &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Album and Collection Information:&quot;</span>) &lt;&lt; <span class="stringliteral">&quot;&lt;/b&gt;&lt;/font&gt;\n&quot;</span>;
<a name="l00073"></a>00073     
<a name="l00074"></a>00074     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00075"></a>00075     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00076"></a>00076     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;img src=&#39;&quot;</span> &lt;&lt; IMAGE_PATH &lt;&lt; <span class="stringliteral">&quot;helpImages/albumInfo.png&#39;&gt;\n&quot;</span>;
<a name="l00077"></a>00077     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00078"></a>00078     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00079"></a>00079     
<a name="l00080"></a>00080     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;At the top left your album&#39;s name, description, and author can be specified.&quot;</span>);
<a name="l00081"></a>00081     
<a name="l00082"></a>00082     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00083"></a>00083     
<a name="l00084"></a>00084     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00085"></a>00085     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;\n&quot;</span>;
<a name="l00086"></a>00086     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00087"></a>00087 
<a name="l00088"></a>00088     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00089"></a>00089     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00090"></a>00090     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;To modify a collection&#39;s information, first select the collection within the collections listing on the left, then fill in its name and description at the top right.&quot;</span>);
<a name="l00091"></a>00091     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00092"></a>00092     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;img src=&#39;&quot;</span> &lt;&lt; IMAGE_PATH &lt;&lt; <span class="stringliteral">&quot;helpImages/collectionInfo.png&#39;&gt;\n&quot;</span>;
<a name="l00093"></a>00093     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00094"></a>00094     
<a name="l00095"></a>00095     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00096"></a>00096     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;\n&quot;</span>;
<a name="l00097"></a>00097     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00098"></a>00098     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;table width=&#39;100%&#39; cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td bgcolor=&#39;lightgray&#39;&gt;\n&quot;</span>;
<a name="l00099"></a>00099     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;font size=&#39;+1&#39;&gt;&lt;b&gt;&quot;</span> &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;Cover Images:&quot;</span>) &lt;&lt; <span class="stringliteral">&quot;&lt;/b&gt;&lt;/font&gt;\n&quot;</span>;
<a name="l00100"></a>00100     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00101"></a>00101 
<a name="l00102"></a>00102     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00103"></a>00103     stream &lt;&lt; <span class="stringliteral">&quot;      &lt;img src=&#39;&quot;</span> &lt;&lt; IMAGE_PATH &lt;&lt; <span class="stringliteral">&quot;helpImages/setRepImage.png&#39;&gt;\n&quot;</span>;
<a name="l00104"></a>00104     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00105"></a>00105     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00106"></a>00106 
<a name="l00107"></a>00107     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;It is easier to distinguish between albums and collections using images rather than text, and Album Shaper allows you to do that by setting album and collection cover images.&quot;</span>);
<a name="l00108"></a>00108     
<a name="l00109"></a>00109     stream &lt;&lt; <span class="stringliteral">&quot;&lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00110"></a>00110     
<a name="l00111"></a>00111     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;To use a photo to represent your album, drag and drop it to the left of the album name, description, and author fields. A small version of the photo should slide in from the left, and will be used when creating web galleries in the future.&quot;</span>);
<a name="l00112"></a>00112 
<a name="l00113"></a>00113     stream &lt;&lt; <span class="stringliteral">&quot;&lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00114"></a>00114 
<a name="l00115"></a>00115     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;A collection&#39;s cover image can be set in a similar fashion by dragging and dropping a photo to the left of the collection name and description  fields. One can accomplish either of these tasks by right clicking on a photo.&quot;</span>);
<a name="l00116"></a>00116     
<a name="l00117"></a>00117     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n&quot;</span>;
<a name="l00118"></a>00118     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00119"></a>00119     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;\n&quot;</span>;
<a name="l00120"></a>00120     <span class="comment">//------------------------------------------------------------------    </span>
<a name="l00121"></a>00121     stream &lt;&lt; <span class="stringliteral">&quot;&lt;table cellpadding=&#39;4&#39; cellspacing=&#39;0&#39;&gt;&lt;tr&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00122"></a>00122     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;p align=&#39;justify&#39;&gt;\n&quot;</span>;
<a name="l00123"></a>00123     stream &lt;&lt; HelpWindow::tr(<span class="stringliteral">&quot;You can replace cover images in the future by dropping a new photo on top of the original cover image. A cover image can be removed by hovering over and clicking the red button that appears.&quot;</span>) &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;
<a name="l00124"></a>00124     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;td valign=&#39;middle&#39;&gt;\n&quot;</span>;
<a name="l00125"></a>00125     stream &lt;&lt; <span class="stringliteral">&quot;  &lt;img src=&#39;&quot;</span> &lt;&lt; IMAGE_PATH &lt;&lt; <span class="stringliteral">&quot;helpImages/removeCollectionImage.png&#39;&gt;\n&quot;</span>;
<a name="l00126"></a>00126     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/td&gt;&lt;/tr&gt;\n&quot;</span>;
<a name="l00127"></a>00127     <span class="comment">//-----------------------</span>
<a name="l00128"></a>00128     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/table&gt;&lt;/font&gt;\n&quot;</span>;
<a name="l00129"></a>00129     stream &lt;&lt; <span class="stringliteral">&quot;&lt;/body&gt;&lt;/html&gt;\n&quot;</span>;
<a name="l00130"></a>00130     file.close();
<a name="l00131"></a>00131   }
<a name="l00132"></a>00132 }
</pre></div></p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="annotating_8h_source.html">annotating.h</a></li>
<li><a class="el" href="annotating_8cpp_source.html">annotating.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>