summaryrefslogtreecommitdiffstatshomepage
path: root/Instructions.cpp
blob: 384cc4c3566ae7dc9f02d000fa72f3785fb0092d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "Instructions.h"
#include <QFont>

Instructions::Instructions(int step, bool images, QWidget *parent) :
	QLabel(parent)
{
	QFont font;
	font.setFamily("CMU Typewriter Text Variable Width");
	setFont(font);

	QString html = tr("<h1>How To Use <i>Author</i></h1>");
	html += "<h4>";
	if (images)
		html += "<img src=\":/journal.png\" align=\"right\" height=\"128\" width=\"128\">";
	html += tr("By disabling the ability to edit while writing, <i>Author</i> forces you to think like an author, escaping the modern world and its invitation for disconnected thought. With <i>Author</i>, you'll get back to basics, plan out paragraphs at a time, write more coherently and end writer's block.");
	html += "</h4>";
	html += "<h3>";
	if (step == 1)
		html += "<font color=\"red\">";
	html += tr("Step 1: Copy and paste your scraps and notes into the note box. You'll later use these when authoring your composition.");
	if (step == 1)
		html += "</font>";
	html += "</h3>";
	html += "<h3>";
	if (step == 2)
		html += "<font color=\"red\">";
	html += tr("Step 2: With your notes immediately beside your typewriter, begin composing. Remember - you <i>can</i> backspace, but you'll write ugly ink on top of what was previously there. The point is: keep writing continuously.");
	if (step == 2)
		html += "</font>";
	html += "</h3>";
	html += "<h3>";
	if (step == 3)
		html += "<font color=\"red\">";
	html += tr("Step 3: Revise and pull together the very rough draft in a brand new document, where you can re-work what you were unable to the first time through. When you're finished, you can fine-tune your composition in your usual word processor.");
	if (step == 3)
		html += "</font>";
	html += "</h3>";

	setWordWrap(true);
	setAlignment(Qt::AlignTop | Qt::AlignJustify);
	setText(html);
	setMargin(10);
}
QSize Instructions::sizeHint() const
{
	return QSize(350, 600);
}