pqManageFavoritesReaction.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 pqManageFavoritesReaction_h
5 #define pqManageFavoritesReaction_h
6 
7 #include "pqMasterOnlyReaction.h"
8 
9 #include "vtkParaViewDeprecation.h" // for deprecation
10 
11 class QAction;
13 
19  "Favorites should be replaced by Categories configuration. See pqConfigureCategories instead.")
21 {
22  Q_OBJECT
24 
25 public:
27  : Superclass(action)
28  , manager(mgr)
29  {
30  }
31 
35  static void manageFavorites(pqProxyGroupMenuManager* manager);
36 
37 protected:
38  void onTriggered() override { pqManageFavoritesReaction::manageFavorites(this->manager); }
39 
40 private:
41  Q_DISABLE_COPY(pqManageFavoritesReaction)
42 
43  pqProxyGroupMenuManager* manager;
44 };
45 
46 #endif
pqProxyGroupMenuManager is a menu-populator that fills up a menu with proxies defined in an XML confi...
pqManageFavoritesReaction is the reaction to pop-up the favorites manager dialog. ...
#define PQAPPLICATIONCOMPONENTS_EXPORT
static void manageFavorites(pqProxyGroupMenuManager *manager)
Pops-up the pqFavoriteDialog dialog.
#define PARAVIEW_DEPRECATED_IN_5_13_0(reason)
pqManageFavoritesReaction(QAction *action, pqProxyGroupMenuManager *mgr)
void onTriggered() override
Called when the action is triggered.
This is a superclass just to make it easier to collect all such reactions.