AlbumShaper 1.0a3
Manipulating Class Reference

#include <manipulating.h>

Static Public Member Functions

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

Detailed Description

Definition at line 16 of file manipulating.h.

Member Function Documentation

◆ filename()

QString Manipulating::filename ( )
static

returns the html filename

Definition at line 24 of file manipulating.cpp.

25{
26 return QString("%1/manipulating.html").arg(TEMP_DIR);
27}
QString TEMP_DIR
Definition config.cpp:23

References TEMP_DIR.

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

◆ generateHTML()

void Manipulating::generateHTML ( Q3TextStream::Encoding type,
QString charSet )
static

generates the html file

Definition at line 29 of file manipulating.cpp.

30{
31 //create/open html file
32 QFile file( filename() );
33 if(file.open(QIODevice::WriteOnly))
34 {
35 //-----
36 Q3TextStream stream;
37 stream.setEncoding( type );
38 stream.setDevice( &file );
39 //-----
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("Manipulations") << "</font></td>\n";
47 stream << "</tr></table>\n";
48 stream << "<font face='Arial, sans-serif'>\n";
49
50 stream << "<table cellspacing='10' cellpadding='0'><tr><td>\n";
51
52 stream << "<table width='100%' cellpadding='4' cellspacing='0'><tr><td bgcolor='lightgray'>\n";
53 stream << "<font size='+1'><b>" << HelpWindow::tr("Stylize your Photos:") << "</b></font>\n";
54 stream << "</td></tr></table>\n";
55
56 stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
57 stream << "<p align='justify'>\n";
58 stream << HelpWindow::tr("If you want to stylize your photo, try applying one of the many manipulations. Manipulation controls are located at the lower right of the photo editor. A preview of the selected manipulation is shown to the right of the manipulation controls. Create your own effects by applying several manipulations.") << "\n";
59 stream << "</td><td valign='middle'>\n";
60 stream << "<img src='" << IMAGE_PATH << "helpImages/manipulateControls.png'>\n";
61 stream << "</td></tr></table>\n";
62
63 stream << "</td></tr><tr><td>\n";
64
65 stream << "<table cellpadding='4' cellspacing='0'><tr><td valign='middle'>\n";
66 stream << "<img src='" << IMAGE_PATH << "helpImages/manipulations.png'>\n";
67 stream << "</td><td valign='middle'>\n";
68 stream << "<p align='justify'>\n";
69 stream << HelpWindow::tr("Album Shaper currently supports the following manipulations pictured from left to right: black and white, sepia coloring, invert colors, color preserving emboss, and an oil painting effect.") << "\n";
70 stream << "</td></tr></table>\n";
71 stream << "</font>\n";
72 stream << "</body></html>\n";
73 file.close();
74 }
75}
static QString filename()
returns the html filename
QString IMAGE_PATH
Definition config.cpp:18

References filename(), and IMAGE_PATH.

Referenced by HelpWindow::HelpWindow().


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