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

manipulating.cpp

Go to the documentation of this file.
00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 //Systemwide includes 00012 #include <qfile.h> 00013 #include <qtextstream.h> 00014 #include <qstringlist.h> 00015 #include <qnamespace.h> 00016 #include <qkeysequence.h> 00017 00018 //Projectwide includes 00019 #include "manipulating.h" 00020 #include "helpWindow.h" 00021 #include "../../config.h" 00022 00023 //============================================== 00024 QString Manipulating::filename() 00025 { 00026 return QString("%1/manipulating.html").arg(TEMP_DIR); 00027 } 00028 //============================================== 00029 void Manipulating::generateHTML(QTextStream::Encoding type, QString charSet) 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 } 00076 //==============================================

Generated on Sun Mar 4 19:42:56 2007 for AlbumShaper by doxygen 1.3.7