<!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: Manipulating 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 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 List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>Manipulating Class Reference</h1><!-- doxytag: class="Manipulating" --> <p><code>#include <<a class="el" href="manipulating_8h_source.html">manipulating.h</a>></code></p> <p><a href="classManipulating-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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classManipulating.html#aa9b2cacffefc9385a19d1891d47c702d">filename</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">returns the html filename <a href="#aa9b2cacffefc9385a19d1891d47c702d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classManipulating.html#a09051df4db5db6f5ef2f0b01d149d04f">generateHTML</a> (QTextStream::Encoding type, QString charSet)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">generates the html file <a href="#a09051df4db5db6f5ef2f0b01d149d04f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="manipulating_8h_source.html#l00016">16</a> of file <a class="el" href="manipulating_8h_source.html">manipulating.h</a>.</p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aa9b2cacffefc9385a19d1891d47c702d"></a><!-- doxytag: member="Manipulating::filename" ref="aa9b2cacffefc9385a19d1891d47c702d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Manipulating::filename </td> <td>(</td> <td class="paramname"></td> <td> ) </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="manipulating_8cpp_source.html#l00024">24</a> of file <a class="el" href="manipulating_8cpp_source.html">manipulating.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="manipulating_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">"%1/manipulating.html"</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="a09051df4db5db6f5ef2f0b01d149d04f"></a><!-- doxytag: member="Manipulating::generateHTML" ref="a09051df4db5db6f5ef2f0b01d149d04f" args="(QTextStream::Encoding type, QString charSet)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Manipulating::generateHTML </td> <td>(</td> <td class="paramtype">QTextStream::Encoding </td> <td class="paramname"> <em>type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>charSet</em></td><td> </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="manipulating_8cpp_source.html#l00029">29</a> of file <a class="el" href="manipulating_8cpp_source.html">manipulating.cpp</a>.</p> <p>References <a class="el" href="manipulating_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="classManipulating.html#aa9b2cacffefc9385a19d1891d47c702d" 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( &file ); <a name="l00039"></a>00039 <span class="comment">//-----</span> <a name="l00040"></a>00040 stream << <span class="stringliteral">"<html><head>\n"</span>; <a name="l00041"></a>00041 stream << <span class="stringliteral">"<meta http-equiv='Content-Type' content='text/html; charset="</span> << charSet << <span class="stringliteral">"'>\n"</span>; <a name="l00042"></a>00042 stream << <span class="stringliteral">"</head><body>\n"</span>; <a name="l00043"></a>00043 stream << <span class="stringliteral">"<table cellpadding='4'><tr>\n"</span>; <a name="l00044"></a>00044 stream << <span class="stringliteral">"<td><img src='"</span> << <a class="code" href="config_8cpp.html#a59e02362a9a29a755712dc830a3eb513">IMAGE_PATH</a> << <span class="stringliteral">"helpImages/asHelpLogoSmall.png'></td>\n"</span>; <a name="l00045"></a>00045 stream << <span class="stringliteral">"<td valign='middle'><font face='Arial, sans-serif' size='+3'>"</span>; <a name="l00046"></a>00046 stream << HelpWindow::tr(<span class="stringliteral">"Manipulations"</span>) << <span class="stringliteral">"</font></td>\n"</span>; <a name="l00047"></a>00047 stream << <span class="stringliteral">"</tr></table>\n"</span>; <a name="l00048"></a>00048 stream << <span class="stringliteral">"<font face='Arial, sans-serif'>\n"</span>; <a name="l00049"></a>00049 <a name="l00050"></a>00050 stream << <span class="stringliteral">"<table cellspacing='10' cellpadding='0'><tr><td>\n"</span>; <a name="l00051"></a>00051 <a name="l00052"></a>00052 stream << <span class="stringliteral">"<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n"</span>; <a name="l00053"></a>00053 stream << <span class="stringliteral">"<font size='+1'><b>"</span> << HelpWindow::tr(<span class="stringliteral">"Stylize your Photos:"</span>) << <span class="stringliteral">"</b></font>\n"</span>; <a name="l00054"></a>00054 stream << <span class="stringliteral">"</td></tr></table>\n"</span>; <a name="l00055"></a>00055 <a name="l00056"></a>00056 stream << <span class="stringliteral">"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n"</span>; <a name="l00057"></a>00057 stream << <span class="stringliteral">"<p align='justify'>\n"</span>; <a name="l00058"></a>00058 stream << HelpWindow::tr(<span class="stringliteral">"If you want to stylize your photo, try applying one of the many manipulations. Manipulation controls are located at the lower right of the photo editor. A preview of the selected manipulation is shown to the right of the manipulation controls. Create your own effects by applying several manipulations."</span>) << <span class="stringliteral">"\n"</span>; <a name="l00059"></a>00059 stream << <span class="stringliteral">"</td><td valign='middle'>\n"</span>; <a name="l00060"></a>00060 stream << <span class="stringliteral">"<img src='"</span> << IMAGE_PATH << <span class="stringliteral">"helpImages/manipulateControls.png'>\n"</span>; <a name="l00061"></a>00061 stream << <span class="stringliteral">"</td></tr></table>\n"</span>; <a name="l00062"></a>00062 <a name="l00063"></a>00063 stream << <span class="stringliteral">"</td></tr><tr><td>\n"</span>; <a name="l00064"></a>00064 <a name="l00065"></a>00065 stream << <span class="stringliteral">"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n"</span>; <a name="l00066"></a>00066 stream << <span class="stringliteral">"<img src='"</span> << IMAGE_PATH << <span class="stringliteral">"helpImages/manipulations.png'>\n"</span>; <a name="l00067"></a>00067 stream << <span class="stringliteral">"</td><td valign='middle'>\n"</span>; <a name="l00068"></a>00068 stream << <span class="stringliteral">"<p align='justify'>\n"</span>; <a name="l00069"></a>00069 stream << HelpWindow::tr(<span class="stringliteral">"Album Shaper currently supports the following manipulations pictured from left to right: black and white, sepia coloring, invert colors, color preserving emboss, and an oil painting effect."</span>) << <span class="stringliteral">"\n"</span>; <a name="l00070"></a>00070 stream << <span class="stringliteral">"</td></tr></table>\n"</span>; <a name="l00071"></a>00071 stream << <span class="stringliteral">"</font>\n"</span>; <a name="l00072"></a>00072 stream << <span class="stringliteral">"</body></html>\n"</span>; <a name="l00073"></a>00073 file.close(); <a name="l00074"></a>00074 } <a name="l00075"></a>00075 } </pre></div></p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="manipulating_8h_source.html">manipulating.h</a></li> <li><a class="el" href="manipulating_8cpp_source.html">manipulating.cpp</a></li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>