#include <loadSave.h>
Definition at line 16 of file loadSave.h.
§ filename()
QString LoadSave::filename |
( |
| ) |
|
|
static |
§ generateHTML()
void LoadSave::generateHTML |
( |
Q3TextStream::Encoding |
type, |
|
|
QString |
charSet |
|
) |
| |
|
static |
generates the html file
Definition at line 29 of file loadSave.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(
"Saving & Loading") <<
"</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(
"Saving Albums:") <<
"</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";
59 stream << HelpWindow::tr(
"To save an album, choose <font color='red'>File → Save</font>. The first time an album is saved, or whenever using the <font color='red'>Save As</font> command, you will be presented with the dialog pictured at the right. First, choose a theme to use when saving your album on the left. Preview images and additional details of the selected theme are shown to the right. Themes determine the look and feel of the generated web album. At the bottom you can choose the location you wish to save to.") <<
"\n";
61 stream <<
"<p align='justify'>\n";
62 stream << HelpWindow::tr(
"If you wish to switch themes in the future, use the <font color='red'>Save As</font> command, pick the new theme, and save over the top of the old album.") <<
"\n";
64 stream <<
"</td><td valign='middle'>\n";
65 stream <<
"<img src='" << IMAGE_PATH <<
"helpImages/saveAs.png'>\n";
66 stream <<
"</td></tr></table>\n";
68 stream <<
"</td></tr><tr><td>\n";
70 stream <<
"<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
71 stream <<
"<font size='+1'><b>" << HelpWindow::tr(
"Loading Albums:") <<
"</b></font>\n";
72 stream <<
"</td></tr></table>\n";
74 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
75 stream <<
"<img src='" << IMAGE_PATH <<
"helpImages/recentAlbums.png'>\n";
76 stream <<
"</td><td valign='middle'>\n";
77 stream <<
"<p align='justify'>\n";
78 stream << HelpWindow::tr(
"Album Shaper makes loading albums easy. Use the <font color='red'>File → Open Recent</font> menu. If you have a lot of albums, or if you are opening an album created on a different machine, select <font color='red'>File → Open</font>, browse to the album's location, and open the <font color='red'>Album.xml</font> file within this directory.") <<
"\n";
80 stream <<
"<p align='justify'>\n";
81 stream << HelpWindow::tr(
"If you want to restore an album to its last saved state, you can either load it again, or use <font color='red'>File → Revert to Saved</font>.") <<
"\n";
83 stream <<
"</td></tr></table>\n";
85 stream <<
"</td></tr><tr><td>\n";
87 stream <<
"<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
88 stream <<
"<font size='+1'><b>" << HelpWindow::tr(
"Exporting:") <<
"</b></font>\n";
89 stream <<
"</td></tr></table>\n";
91 stream <<
"<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
92 stream <<
"<p align='justify'>\n";
94 stream << HelpWindow::tr(
"In addition to producing web galleries, Album Shaper can export your photos in a number of other formats.") <<
"\n";
96 stream <<
"<p align='justify'><ul>\n";
97 stream <<
"<li>" << HelpWindow::tr(
"To use a photo as your desktop wallpaper, select the photo and click the <font color='red'>Desktop</font> button at the bottom of the organize view.") <<
"\n";
99 stream <<
"<p align='justify'>\n";
100 stream <<
"<li>" << HelpWindow::tr(
"To export a small web gallery that does not include full-size images, select <font color='red'>File → Export → Small Web Gallery</font>.") <<
"\n";
102 stream <<
"<p align='justify'>\n";
103 stream <<
"<li>" << HelpWindow::tr(
"To export an entire album's contents for printing, select <font color='red'>File → Export → Images for Printing</font>. Only the full-size images will be exported to a directory along side your album on disk.") <<
"\n";
107 stream <<
"</td></tr></table>\n";
108 stream <<
"</td></tr>\n";
109 stream <<
"</font>\n";
110 stream <<
"</body></html>\n";
static QString filename()
returns the html filename
The documentation for this class was generated from the following files: