pqCategoryToolbarsBehavior.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 pqCategoryToolbarsBehavior_h
5 #define pqCategoryToolbarsBehavior_h
6 
7 #include "pqApplicationComponentsModule.h"
8 
9 #include <QObject>
10 
11 #include <memory>
12 
13 #include "vtkParaViewDeprecation.h" // for deprecation macro
14 
16 class QMainWindow;
17 class QAction;
18 
29 class PQAPPLICATIONCOMPONENTS_EXPORT pqCategoryToolbarsBehavior : public QObject
30 {
31  Q_OBJECT
32  typedef QObject Superclass;
33 
34 public:
35  pqCategoryToolbarsBehavior(pqProxyGroupMenuManager* menuManager, QMainWindow* mainWindow);
36  ~pqCategoryToolbarsBehavior() override;
37 
38 protected Q_SLOTS:
42  void updateToolbars();
43 
44 private:
45  Q_DISABLE_COPY(pqCategoryToolbarsBehavior)
46 
47  class pqInternal;
48  std::unique_ptr<pqInternal> Internal;
49 };
50 
51 #endif
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
pqCategoryToolbarsBehavior is used when the application wants to enable categories from a pqProxyGrou...