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 
33 class PQAPPLICATIONCOMPONENTS_EXPORT pqCategoryToolbarsBehavior : public QObject
34 {
35  Q_OBJECT
36  typedef QObject Superclass;
37 
38 public:
39  pqCategoryToolbarsBehavior(pqProxyGroupMenuManager* menuManager, QMainWindow* mainWindow);
40  ~pqCategoryToolbarsBehavior() override;
41 
42 protected Q_SLOTS:
46  void updateToolbars();
47 
48 private:
49  Q_DISABLE_COPY(pqCategoryToolbarsBehavior)
50 
51  class pqInternal;
52  std::unique_ptr<pqInternal> Internal;
53 };
54 
55 #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...