9 QString mPath=getenv(
"MARLIN");
11 sPath+=
"/gui/help/index.html";
17 browser->setSource(QUrl(sPath));
20 browser->setSource(QUrl(lPath));
23 QPushButton *forwButton =
new QPushButton(tr(
"->"));
24 QPushButton *backButton =
new QPushButton(tr(
"<-"));
25 QPushButton *homeButton =
new QPushButton(tr(
"TOC"));
26 QPushButton *closeButton =
new QPushButton(tr(
"Close"));
28 forwButton->setToolTip(tr(
"Forward"));
29 backButton->setToolTip(tr(
"Backward"));
30 homeButton->setToolTip(tr(
"Table of Contents"));
31 closeButton->setToolTip(tr(
"Close Help"));
33 forwButton->setMaximumWidth(50);
34 backButton->setMaximumWidth(50);
35 homeButton->setMaximumWidth(90);
36 homeButton->setMaximumWidth(70);
38 connect(forwButton, SIGNAL(clicked()),
browser, SLOT(forward()));
39 connect(backButton, SIGNAL(clicked()),
browser, SLOT(backward()));
40 connect(homeButton, SIGNAL(clicked()),
browser, SLOT(home()));
41 connect(closeButton, SIGNAL(clicked()),
this, SLOT(close()));
44 QHBoxLayout *helpBLayout =
new QHBoxLayout;
45 helpBLayout->addWidget(backButton);
46 helpBLayout->addWidget(forwButton);
47 helpBLayout->addWidget(homeButton);
48 helpBLayout->addWidget(closeButton);
51 QGroupBox *browserButtons =
new QGroupBox(tr(
"Help Browser"));
52 browserButtons->setLayout(helpBLayout);
53 browserButtons->setMaximumWidth(250);
54 browserButtons->setMaximumHeight(70);
56 QVBoxLayout *helpLayout =
new QVBoxLayout;
57 helpLayout->addWidget(browserButtons);
60 setLayout(helpLayout);
62 setWindowTitle(tr(
"Marlin GUI Help"));
GUIHelp(const GUIHelp &)=default