Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Manipulating Class Reference

#include <manipulating.h>

List of all members.

Static Public Member Functions

QString filename ()
 returns the html filename
void generateHTML (QTextStream::Encoding type, QString charSet)
 generates the html file


Member Function Documentation

QString Manipulating::filename  )  [static]
 

returns the html filename

Definition at line 24 of file manipulating.cpp.

References TEMP_DIR.

Referenced by generateHTML().

00025 {
00026   return QString("%1/manipulating.html").arg(TEMP_DIR);
00027 }

void Manipulating::generateHTML QTextStream::Encoding  type,
QString  charSet
[static]
 

generates the html file

Definition at line 29 of file manipulating.cpp.

References filename(), and IMAGE_PATH.

Referenced by HelpWindow::HelpWindow().

00030 {
00031   //create/open html file
00032   QFile file( filename() );
00033   if(file.open(IO_WriteOnly))
00034   {
00035     //-----
00036     QTextStream stream;
00037     stream.setEncoding( type );
00038     stream.setDevice( &file );
00039     //-----
00040     stream << "<html><head>\n";
00041     stream << "<meta http-equiv='Content-Type' content='text/html; charset=" << charSet << "'>\n";
00042     stream << "</head><body>\n";
00043     stream << "<table cellpadding='4'><tr>\n";
00044     stream << "<td><img src='" << IMAGE_PATH << "helpImages/asHelpLogoSmall.png'></td>\n";
00045     stream << "<td valign='middle'><font face='Arial, sans-serif' size='+3'>";
00046     stream << HelpWindow::tr("Manipulations") << "</font></td>\n";
00047     stream << "</tr></table>\n";
00048     stream << "<font face='Arial, sans-serif'>\n";
00049     
00050     stream << "<table cellspacing='10' cellpadding='0'><tr><td>\n";
00051 
00052     stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
00053     stream << "<font size='+1'><b>" << HelpWindow::tr("Stylize your Photos:") << "</b></font>\n";
00054     stream << "</td></tr></table>\n";
00055 
00056     stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00057     stream << "<p align='justify'>\n";
00058     stream << HelpWindow::tr("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.") << "\n";
00059     stream << "</td><td valign='middle'>\n";
00060     stream << "<img src='" << IMAGE_PATH << "helpImages/manipulateControls.png'>\n";
00061     stream << "</td></tr></table>\n";
00062     
00063     stream << "</td></tr><tr><td>\n";
00064     
00065     stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00066     stream << "<img src='" << IMAGE_PATH << "helpImages/manipulations.png'>\n";
00067     stream << "</td><td valign='middle'>\n";
00068     stream << "<p align='justify'>\n";
00069     stream << HelpWindow::tr("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.") << "\n";
00070     stream << "</td></tr></table>\n";
00071     stream << "</font>\n";
00072     stream << "</body></html>\n";
00073     file.close();
00074   }
00075 }


The documentation for this class was generated from the following files:
Generated on Sat Apr 2 05:45:04 2005 for AlbumShaper by  doxygen 1.3.9.1