#include <annotating.h>
Definition at line 16 of file annotating.h.
§ filename()
QString Annotating::filename |
( |
| ) |
|
|
static |
§ generateHTML()
void Annotating::generateHTML |
( |
Q3TextStream::Encoding |
type, |
|
|
QString |
charSet |
|
) |
| |
|
static |
generates the html file
Definition at line 29 of file annotating.cpp.
References filename(), and IMAGE_PATH.
Referenced by HelpWindow::HelpWindow().
33 if(file.open(QIODevice::WriteOnly))
37 stream.setEncoding( type );
38 stream.setDevice( &file );
40 stream <<
"<html><head>\n";
41 stream <<
"<meta http-equiv='Content-Type' content='text/html; charset=" << charSet <<
"'>\n";
42 stream <<
"</head><body>\n";
43 stream <<
"<table cellpadding='4'><tr>\n";
44 stream <<
"<td><img src='" <<
IMAGE_PATH <<
"helpImages/asHelpLogoSmall.png'></td>\n";
45 stream <<
"<td valign='middle'><font face='Arial, sans-serif' size='+3'>";
46 stream << HelpWindow::tr(
"Annotating Albums") <<
"</font></td>\n";
47 stream <<
"</tr></table>\n";
49 stream <<
"<font face='Arial, sans-serif'>\n";
50 stream <<
"<table cellspacing='10' cellpadding='0'><tr><td>\n";
52 stream <<
" <table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
53 stream <<
" <font size='+1'><b>" << HelpWindow::tr(
"Labeling Photos:") <<
"</b></font>\n";
54 stream <<
" </td></tr></table>\n";
56 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
57 stream <<
" <p align='justify'>\n";
58 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.");
60 stream <<
"</td><td valign='middle'>\n";
61 stream <<
" <img src='" << IMAGE_PATH <<
"helpImages/settingPhotoDescription.png'>\n";
62 stream <<
"</td></tr></table>\n";
64 stream <<
" <p align='justify'>\n";
65 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 <font color='red'>Photos → Remove Description</font>.");
68 stream <<
"</td></tr><tr><td>\n";
71 stream <<
" <table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
72 stream <<
" <font size='+1'><b>" << HelpWindow::tr(
"Album and Collection Information:") <<
"</b></font>\n";
74 stream <<
" </td></tr></table>\n";
75 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
76 stream <<
" <img src='" << IMAGE_PATH <<
"helpImages/albumInfo.png'>\n";
77 stream <<
"</td><td valign='middle'>\n";
78 stream <<
" <p align='justify'>\n";
80 stream << HelpWindow::tr(
"At the top left your album's name, description, and author can be specified.");
82 stream <<
"</td></tr></table>\n";
85 stream <<
"</td></tr><tr><td>\n";
88 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
89 stream <<
" <p align='justify'>\n";
90 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.");
91 stream <<
"</td><td valign='middle'>\n";
92 stream <<
" <img src='" << IMAGE_PATH <<
"helpImages/collectionInfo.png'>\n";
93 stream <<
"</td></tr></table>\n";
96 stream <<
"</td></tr><tr><td>\n";
98 stream <<
" <table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
99 stream <<
" <font size='+1'><b>" << HelpWindow::tr(
"Cover Images:") <<
"</b></font>\n";
100 stream <<
" </td></tr></table>\n";
102 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
103 stream <<
" <img src='" << IMAGE_PATH <<
"helpImages/setRepImage.png'>\n";
104 stream <<
"</td><td valign='middle'>\n";
105 stream <<
" <p align='justify'>\n";
107 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.");
109 stream <<
"<p align='justify'>\n";
111 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.");
113 stream <<
"<p align='justify'>\n";
115 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.");
117 stream <<
"</td></tr></table>\n";
119 stream <<
"</td></tr><tr><td>\n";
121 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
122 stream <<
" <p align='justify'>\n";
123 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";
124 stream <<
"</td><td valign='middle'>\n";
125 stream <<
" <img src='" << IMAGE_PATH <<
"helpImages/removeCollectionImage.png'>\n";
126 stream <<
"</td></tr>\n";
128 stream <<
"</table></font>\n";
129 stream <<
"</body></html>\n";
static QString filename()
returns the html filename
The documentation for this class was generated from the following files: