00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include <qfile.h>
00013 #include <qtextstream.h>
00014 #include <qstringlist.h>
00015 #include <qnamespace.h>
00016 #include <qkeysequence.h>
00017
00018
00019 #include "enhancing.h"
00020 #include "helpWindow.h"
00021 #include "../../config.h"
00022
00023
00024 QString Enhancing::filename()
00025 {
00026 return QString("%1/enhancing.html").arg(TEMP_DIR);
00027 }
00028
00029 void Enhancing::generateHTML(QTextStream::Encoding type, QString charSet)
00030 {
00031
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("Fix it Fast") << "</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("Enhancing 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("Album Shaper allows you to quickly enhance your photos. Enhancing controls are clustered at the bottom center of the editing interface.") << "\n";
00059 stream << "</td><td valign='middle'>\n";
00060 stream << "<img src='" << IMAGE_PATH << "helpImages/enhanceControls.png'>\n";
00061 stream << "</td></tr></table>\n";
00062
00063 stream << "</td></tr><tr><td>\n";
00064
00065 stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
00066 stream << "<font size='+1'><b>" << HelpWindow::tr("Color Correction:") << "</b></font>\n";
00067 stream << "</td></tr></table>\n";
00068
00069 stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00070 stream << "<img src='" << IMAGE_PATH << "helpImages/colorCorrection.png'>\n";
00071 stream << "</td><td valign='middle'>\n";
00072 stream << "<p align='justify'>\n";
00073 stream << HelpWindow::tr("When taking photos under poor light without a flash, or simply when odd lighting is present, your photos can take on strange tints that can be quite irritable. Clicking the <font color='red'>Color</font> button can often fix such problems.") << "\n";
00074 stream << "</td></tr></table>\n";
00075
00076 stream << "</td></tr><tr><td>\n";
00077
00078 stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
00079 stream << "<font size='+1'><b>" << HelpWindow::tr("Contrast Correction:") << "</b></font>\n";
00080 stream << "</td></tr></table>\n";
00081
00082 stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00083 stream << "<p align='justify'>\n";
00084 stream << HelpWindow::tr("Sometimes your photos appear muddy or have a haze over them, obscuring details. Whether the water was muddy, your lense was dirty, or mist was in the air, Album Shaper will try to fix these problems if you click the <font color='red'>Contrast</font> button.") << "\n";
00085 stream << "</td><td valign='middle'>\n";
00086 stream << "<img src='" << IMAGE_PATH << "helpImages/contrastCorrection.png'>\n";
00087 stream << "</td></tr></table>\n";
00088
00089 stream << "</td></tr><tr><td>\n";
00090
00091 stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
00092 stream << "<font size='+1'><b>" << HelpWindow::tr("Red Eye Removal:") << "</b></font>\n";
00093 stream << "</td></tr></table>\n";
00094
00095 stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00096 stream << "<img src='" << IMAGE_PATH << "helpImages/redEyeRemoval.png'>\n";
00097 stream << "</td><td valign='middle'>\n";
00098 stream << "<p align='justify'>\n";
00099 stream << HelpWindow::tr("Compact digital camera designs that use an integrated flash often capture red-eye artifacts in images. While the best way to handle this is to use an external flash, Album Shaper provides a clever eye detection and red eye removal tool to fix red-eye problems in photos. Simply select each face region and click the <font color='red'>Red Eye</font> button.") << "\n";
00100
00101 stream << "<p>" << HelpWindow::tr("Album Shaper can often find the red eyes when the entire image is selected, but to get the most accurate and fastest results, it is best to select the smallest area containing red eyes as possible.") << "\n";
00102 stream << "</td></tr></table>\n";
00103
00104 stream << "</font>\n";
00105 stream << "</body></html>\n";
00106 file.close();
00107 }
00108 }
00109