]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/help.cpp
Minor fix to IRQ subsystem. Should fix games that expected DSP IRQs masked.
[virtualjaguar] / src / gui / help.cpp
1 //
2 // help.cpp - Help file
3 //
4 // by James L. Hammons
5 // (C) 2011 Underground Software
6 //
7 // JLH = James L. Hammons <jlhamm@acm.org>
8 //
9 // Who  When        What
10 // ---  ----------  -------------------------------------------------------------
11 // JLH  08/01/2011  Created this file
12 //
13
14 // STILL TO DO:
15 //
16
17 #include "help.h"
18
19 HelpWindow::HelpWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
20 {
21         setWindowTitle(tr("Virtual Jaguar Help"));
22
23         // Need to set the size as well...
24 //  resize(560, 480);
25         resize(560, 480);
26
27         layout = new QVBoxLayout();
28         layout->setSizeConstraint(QLayout::SetFixedSize);
29         setLayout(layout);
30
31 //      image = new QLabel();
32 //      image->setAlignment(Qt::AlignRight);
33 //      image->setPixmap(QPixmap(":/res/vj_title_small.png"));
34 //      layout->addWidget(image);
35
36 //      QString s = QString(tr("SVN %1<br>")).arg(__DATE__);
37         QString s;// = QString("");
38         s.append(tr(
39                 "<h1>Virtual Jaguar Documentation</h1>"
40                 "<br><br>"
41                 "<b><i>Coming soon!</i></b>"
42         ));
43         text = new QTextBrowser;
44         text->setHtml(s);
45         layout->addWidget(text);
46 }
47
48
49 #if 0
50 #include "htmlviewer.moc"
51 HtmlViewerWindow *htmlViewerWindow;
52
53 HtmlViewerWindow::HtmlViewerWindow() {
54   setObjectName("html-window");
55   resize(560, 480);
56   setGeometryString(&config().geometry.htmlViewerWindow);
57   application.windowList.add(this);
58
59   layout = new QVBoxLayout;
60   layout->setMargin(Style::WindowMargin);
61   layout->setSpacing(0);
62   setLayout(layout);
63
64   document = new QTextBrowser;
65   layout->addWidget(document);
66 }
67
68 void HtmlViewerWindow::show(const char *title, const char *htmlData) {
69   document->setHtml(string() << htmlData);
70   setWindowTitle(title);
71   Window::show();
72 }
73 #endif