src
paraview-5.12
Qt
ApplicationComponents
pqAddToFavoritesReaction.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 pqAddToFavoritesReaction_h
5
#define pqAddToFavoritesReaction_h
6
7
#include "
pqReaction.h
"
8
13
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqAddToFavoritesReaction
:
public
pqReaction
14
{
15
Q_OBJECT
16
typedef
pqReaction
Superclass
;
17
18
public
:
19
pqAddToFavoritesReaction
(QAction* parent, QVector<QString>& filters);
20
24
static
void
addToFavorites(QAction* parent);
25
26
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
31
void
updateEnableState
()
override
;
32
33
protected
:
37
void
onTriggered
()
override
{
pqAddToFavoritesReaction::addToFavorites
(this->
parentAction
()); }
38
39
private
:
40
Q_DISABLE_COPY(
pqAddToFavoritesReaction
)
41
42
QVector<QString> Filters;
43
};
44
45
#endif
pqReaction.h
pqAddToFavoritesReaction
Definition:
pqAddToFavoritesReaction.h:13
pqReaction::parentAction
QAction * parentAction() const
Provides access to the parent action.
Definition:
pqReaction.h:40
pqAddToFavoritesReaction::onTriggered
void onTriggered() override
Called when the action is triggered.
Definition:
pqAddToFavoritesReaction.h:37
pqAddToFavoritesReaction::addToFavorites
static void addToFavorites(QAction *parent)
Add filter in favorites.
pqReaction::updateEnableState
virtual void updateEnableState()
Definition:
pqReaction.h:48
pqReaction
Definition:
pqReaction.h:25
Generated by
1.8.17 on Wed Mar 27 2024