//============================================== // 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 "annotating.h" #include "helpWindow.h" #include "../../config.h" //============================================== QString Annotating::filename() { return QString("%1/annotating.html").arg(TEMP_DIR); } //============================================== void Annotating::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("Annotating Albums") << "
\n"; stream << "\n"; stream << "
\n"; //------------------------------------------------------------------ stream << "
\n"; stream << " " << HelpWindow::tr("Labeling Photos:") <<"\n"; stream << "
\n"; stream << "
\n"; stream << "

\n"; stream << HelpWindow::tr("Labeling photos is easy in Album Shaper! Hover over a picture and click the little info button that appears in the lower right corner. The photo will expand to give you a better view and provide space for writing the caption. When you're done, click elsewhere in the collection, or just hit Escape. Alternatively, you can just use the keyboard. The arrow keys will move the current selection. Enter expands the currently selected photo to edit its caption. Escape applies the photo caption and returns to organizing."); stream << "

\n"; stream << " \n"; stream << "
\n"; stream << "

\n"; stream << HelpWindow::tr("Album Shaper provides a number of tools that operate on multiple photos at once. If you want to remove a number of photos descriptions at once, select which photos you intend to affect, and select Photos → Remove Description."); //------------------------------------------------------------------ stream << "

\n"; //------------------------------------------------------------------ stream << "
\n"; stream << " " << HelpWindow::tr("Album and Collection Information:") << "\n"; stream << "
\n"; stream << "
\n"; stream << " \n"; stream << "\n"; stream << "

\n"; stream << HelpWindow::tr("At the top left your album's name, description, and author can be specified."); stream << "

\n"; //------------------------------------------------------------------ stream << "
\n"; //------------------------------------------------------------------ stream << "
\n"; stream << "

\n"; stream << HelpWindow::tr("To modify a collection's information, first select the collection within the collections listing on the left, then fill in its name and description at the top right."); stream << "

\n"; stream << " \n"; stream << "
\n"; //------------------------------------------------------------------ stream << "
\n"; //------------------------------------------------------------------ stream << "
\n"; stream << " " << HelpWindow::tr("Cover Images:") << "\n"; stream << "
\n"; stream << "
\n"; stream << " \n"; stream << "\n"; stream << "

\n"; stream << HelpWindow::tr("It is easier to distinguish between albums and collections using images rather than text, and Album Shaper allows you to do that by setting album and collection cover images."); stream << "

\n"; stream << HelpWindow::tr("To use a photo to represent your album, drag and drop it to the left of the album name, description, and author fields. A small version of the photo should slide in from the left, and will be used when creating web galleries in the future."); stream << "

\n"; stream << HelpWindow::tr("A collection's cover image can be set in a similar fashion by dragging and dropping a photo to the left of the collection name and description fields. One can accomplish either of these tasks by right clicking on a photo."); stream << "

\n"; //------------------------------------------------------------------ stream << "
\n"; //------------------------------------------------------------------ stream << "\n"; //----------------------- stream << "
\n"; stream << "

\n"; stream << HelpWindow::tr("You can replace cover images in the future by dropping a new photo on top of the original cover image. A cover image can be removed by hovering over and clicking the red button that appears.") << "\n"; stream << "

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