//============================================== // copyright : (C) 2003-2005 by Will Stokes //============================================== // This program is free software; you can redistribute it // and/or modify it under the terms of the GNU General // Public License as published by the Free Software // Foundation; either version 2 of the License, or // (at your option) any later version. //============================================== //Systemwide includes #include #include #include #include #include //Projectwide includes #include "enhancing.h" #include "helpWindow.h" #include "../../config.h" //============================================== QString Enhancing::filename() { return QString("%1/enhancing.html").arg(TEMP_DIR); } //============================================== void Enhancing::generateHTML(QTextStream::Encoding type, QString charSet) { //create/open html file QFile file( filename() ); if(file.open(IO_WriteOnly)) { //----- QTextStream stream; stream.setEncoding( type ); stream.setDevice( &file ); //----- stream << "\n"; stream << "\n"; stream << "\n"; stream << "\n"; stream << "\n"; stream << "\n"; stream << "
"; stream << HelpWindow::tr("Fix it Fast") << "
\n"; stream << "\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Enhancing your Photos:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "

\n"; 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"; stream << "

\n"; stream << "\n"; stream << "
\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Color Correction:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "\n"; stream << "\n"; stream << "

\n"; 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 Color button can often fix such problems.") << "\n"; stream << "

\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Contrast Correction:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "

\n"; 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 Contrast button.") << "\n"; stream << "

\n"; stream << "\n"; stream << "
\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Red Eye Removal:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "\n"; stream << "\n"; stream << "

\n"; 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 Red Eye button.") << "\n"; stream << "

" << 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"; stream << "

\n"; stream << "\n"; stream << "\n"; file.close(); } } //==============================================