pqHelpWindow.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqHelpWindow_h
5 #define pqHelpWindow_h
6 
7 #include "pqComponentsModule.h" // For export macro
8 
9 #include <QMainWindow>
10 #include <QScopedPointer>
11 #include <QUrl>
12 
13 class QHelpEngine;
14 class pqBrowser;
15 
20 class PQCOMPONENTS_EXPORT pqHelpWindow : public QMainWindow
21 {
22  Q_OBJECT
23  typedef QMainWindow Superclass;
24 
25 public:
27  QHelpEngine* engine, QWidget* parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags{});
28  ~pqHelpWindow() override;
29 
30 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
35  virtual void showPage(const QString& url);
36  virtual void showPage(const QUrl& url);
37 
42  virtual void showHomePage();
43 
48  virtual void saveCurrentHomePage();
49 
51 
54  virtual void goBackward();
55  virtual void goForward();
57 
61  virtual void updateHistoryButtons();
62 
66  virtual void setNameSpace(const QString& namespace_name);
67 
68 Q_SIGNALS:
72  void helpWarnings(const QString&);
73 
74 protected Q_SLOTS:
75  void search();
76 
77 protected: // NOLINT(readability-redundant-access-specifiers)
78  QHelpEngine* HelpEngine;
79 
80 private:
81  Q_DISABLE_COPY(pqHelpWindow)
82  const QScopedPointer<pqBrowser> Browser;
83 
84  class pqInternals;
85  QScopedPointer<pqInternals> Internals;
86 };
87 
88 #endif
QHelpEngine * HelpEngine
Definition: pqHelpWindow.h:78
pqHelpWindow provides a assistant-like window for showing help provided by a QHelpEngine.
Definition: pqHelpWindow.h:20
#define PQCOMPONENTS_EXPORT
url