pqViewMenuManager.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 pqViewMenuManager_h
5 #define pqViewMenuManager_h
6 
8 #include <QObject>
9 #include <QPointer>
10 
11 class QMenu;
12 class QMainWindow;
13 class QAction;
14 
21 {
22  Q_OBJECT
23  typedef QObject Superclass;
24 
25 public:
26  pqViewMenuManager(QMainWindow* mainWindow, QMenu* menu);
27 
28 protected Q_SLOTS:
33  void buildMenu();
34 
43  virtual void updateMenu();
44 
45 protected: // NOLINT(readability-redundant-access-specifiers)
46  QPointer<QMenu> Menu;
47  QPointer<QMenu> ToolbarsMenu;
48  QPointer<QAction> DockPanelSeparators[2];
49  QPointer<QAction> ShowFrameDecorationsAction;
50 
51 private:
52  Q_DISABLE_COPY(pqViewMenuManager)
53  QMainWindow* Window;
54 };
55 
56 #endif
QPointer< QMenu > ToolbarsMenu
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqViewMenuManager keeps ParaView View menu populated with all the available dock widgets and toolbars...
QPointer< QAction > ShowFrameDecorationsAction
QPointer< QMenu > Menu