ProTools Class Reference

#include <proTools.h>

List of all members.


Detailed Description

Definition at line 16 of file proTools.h.


Static Public Member Functions

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

Member Function Documentation

QString ProTools::filename (  )  [static]

returns the html filename

Definition at line 24 of file proTools.cpp.

References TEMP_DIR.

Referenced by generateHTML(), and HelpWindow::showCurrentPage().

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

void ProTools::generateHTML ( QTextStream::Encoding  type,
QString  charSet 
) [static]

generates the html file

Definition at line 29 of file proTools.cpp.

References filename(), and IMAGE_PATH.

Referenced by HelpWindow::HelpWindow().

00030 {
00031   QString ctrlKey;
00032 #if defined(Q_OS_MACX)
00033   ctrlKey = "Command";
00034 #else
00035   ctrlKey = "Ctrl";
00036 #endif
00037 
00038   //create/open html file
00039   QFile file( filename() );
00040   if(file.open(IO_WriteOnly))
00041   {
00042     //-----
00043     QTextStream stream;
00044     stream.setEncoding( type );
00045     stream.setDevice( &file );
00046     //-----
00047     stream << "<html><head>\n";
00048     stream << "<meta http-equiv='Content-Type' content='text/html; charset=" << charSet << "'>\n";
00049     stream << "</head><body>\n";
00050     stream << "<table cellpadding='4'><tr>\n";
00051     stream << "<td><img src='" << IMAGE_PATH << "helpImages/asHelpLogoSmall.png'></td>\n";
00052     stream << "<td valign='middle'><font face='Arial, sans-serif' size='+3'>";
00053     stream << HelpWindow::tr("Pro Tools") << "</font></td>\n";
00054     stream << "</tr></table>\n";
00055     stream << "<font face='Arial, sans-serif'>\n";
00056     
00057     stream << "<table cellspacing='10' cellpadding='0'><tr><td>\n";
00058       
00059     stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
00060     stream << "<font size='+1'><b>" << HelpWindow::tr("Histogram Editing, Brightness, and Contrast:") << "</b></font>\n";
00061     stream << "</td></tr></table>\n";
00062       
00063     stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00064     stream << "<p align='justify'>\n";
00065     stream << HelpWindow::tr("Sometimes the quick-fix techniques just don't work. Noisy or grainy images are often the culprits.") << "\n";
00066     stream << "<p align='justify'>\n";
00067     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";
00068     stream << "<p align='justify'>\n";
00069     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";
00070     stream << "<p align='justify'>\n";
00071     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";
00072     stream << "</td><td valign='middle'>\n";
00073     stream << "<img src='" << IMAGE_PATH << "helpImages/levelsEditor.png'>\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("Grain Enhancement:") << "</b></font>\n";
00080     stream << "</td></tr></table>\n";
00081               
00082     stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
00083     stream << "<img src='" << IMAGE_PATH << "helpImages/grainEditor.png'>\n";
00084     stream << "</td><td valign='middle'>\n";
00085     stream << "<p align='justify'>\n";
00086     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";
00087     stream << "</td></tr></table>\n";
00088                 
00089     stream << "</font>\n";
00090     stream << "</body></html>\n";
00091     file.close();
00092   }
00093 }


The documentation for this class was generated from the following files:

Generated on Thu Jun 19 15:43:49 2008 for AlbumShaper by  doxygen 1.5.6