//============================================== // 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 "proTools.h" #include "helpWindow.h" #include "../../config.h" //============================================== QString ProTools::filename() { return QString("%1/proTools.html").arg(TEMP_DIR); } //============================================== void ProTools::generateHTML(QTextStream::Encoding type, QString charSet) { QString ctrlKey; #if defined(Q_OS_MACX) ctrlKey = "Command"; #else ctrlKey = "Ctrl"; #endif //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("Pro Tools") << "
\n"; stream << "\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Histogram Editing, Brightness, and Contrast:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "

\n"; stream << HelpWindow::tr("Sometimes the quick-fix techniques just don't work. Noisy or grainy images are often the culprits.") << "\n"; stream << "

\n"; stream << HelpWindow::tr("Album Shaper provides an advanced levels editor for fixing the color and luminosity ranges, in addition to changing overall photo brightness and contrast. Red, green, blue, and luminosity ranges can be adjusted by dragging their boundaries or selecting a new range. Brightness and contrast changes can be undone independently by clicking the respective icons below each slider.") << "\n"; stream << "

\n"; stream << HelpWindow::tr("Album Shaper's novel split-view interface lets you compare the modified image to the original side by side in real time. You can even drag this split back and forth.") << "\n"; stream << "

\n"; stream << QString(HelpWindow::tr("If you prefer to look at just the adjusted or original image form, change the view mode with the drop down menu below the image. You can also switch between the two versions of the image instantly by pressing and holding the %1 key.")).arg(ctrlKey) << "\n"; stream << "

\n"; stream << "\n"; stream << "
\n"; stream << "
\n"; stream << "
\n"; stream << "" << HelpWindow::tr("Grain Enhancement:") << "\n"; stream << "
\n"; stream << "
\n"; stream << "\n"; stream << "\n"; stream << "

\n"; stream << HelpWindow::tr("Album Shaper provides a grain editor that can blur and sharpen images without magnifying image noise. Drag the slider up to sharpen or down to blur. You can change which portion of the image is being shown up close by dragging around the view control area at the right.") << "\n"; stream << "

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