MuseScore  3.4
Music composition and notation
helpBrowser.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __HELP_BROWSER_H
14 #define __HELP_BROWSER_H
15 
16 namespace Ms {
17 
18 //---------------------------------------------------------
19 // HelpView
20 //---------------------------------------------------------
21 
22 class HelpView : public QTextBrowser {
23  Q_OBJECT
24  QHelpEngine* helpEngine;
25 
26  public:
27  HelpView(QHelpEngine* he, QWidget* parent = 0) : QTextBrowser(parent), helpEngine(he) {}
28  QVariant loadResource(int type, const QUrl& name);
29  };
30 
31 //---------------------------------------------------------
32 // HelpBrowser
33 //---------------------------------------------------------
34 
35 class HelpBrowser : public QWidget {
36  Q_OBJECT
38  QWidget* toolbar;
39  QUrl homePath;
40 
41  private slots:
42  void homeClicked();
43 
44  public:
45  HelpBrowser(QWidget* parent = 0);
46  void setContent(const QString& path);
47  void setContent(const QUrl& url);
48  };
49 
50 
51 } // namespace Ms
52 #endif
53 
Definition: helpBrowser.h:35
QHelpEngine * helpEngine
Definition: helpBrowser.h:24
QWidget * toolbar
Definition: helpBrowser.h:38
QUrl homePath
Definition: helpBrowser.h:39
HelpView(QHelpEngine *he, QWidget *parent=0)
Definition: helpBrowser.h:27
Definition: aeolus.cpp:26
HelpView * view
Definition: helpBrowser.h:37
QVariant loadResource(int type, const QUrl &name)
Definition: helpBrowser.cpp:188
Definition: helpBrowser.h:22