pqQuickLaunchDialog.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 pqQuickLaunchDialog_h
5 #define pqQuickLaunchDialog_h
6 
7 #include "pqWidgetsModule.h"
8 
9 #include <QAction>
10 #include <QDialog>
11 
16 class PQWIDGETS_EXPORT pqQuickLaunchDialog : public QDialog
17 {
18  Q_OBJECT
19  typedef QDialog Superclass;
20 
21 public:
22  pqQuickLaunchDialog(QWidget* parent = nullptr);
23  ~pqQuickLaunchDialog() override;
24 
29  void setActions(const QList<QAction*>& actions);
30 
35  void addActions(const QList<QAction*>& actions);
36 
40  bool quickApply();
41 
42 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
46  void accept() override;
47 
48 protected Q_SLOTS:
53  void currentRowChanged(int);
54 
55 protected: // NOLINT(readability-redundant-access-specifiers)
59  bool eventFilter(QObject* watched, QEvent* event) override;
60 
64  void updateSearch();
65 
66 private:
67  Q_DISABLE_COPY(pqQuickLaunchDialog)
68 
69  class pqInternal;
70  pqInternal* Internal;
71 };
72 
73 #endif
A borderless pop-up dialog used to show actions that the user can launch.
#define PQWIDGETS_EXPORT