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 
8 
9 #include <QObject>
10 
11 #include <memory>
12 
13 #include "vtkParaViewDeprecation.h" // for deprecation macro
14 
16 class QMainWindow;
17 class QAction;
18 
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 
50  "This was mostly unused. Also it is better to avoid test-dedicated code paths.")
51  void prepareForTest(){};
52 
53 private:
54  Q_DISABLE_COPY(pqCategoryToolbarsBehavior)
55 
56  class pqInternal;
57  std::unique_ptr<pqInternal> Internal;
58 };
59 
60 #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...
#define PQAPPLICATIONCOMPONENTS_EXPORT
#define PARAVIEW_DEPRECATED_IN_5_13_0(reason)