src
paraview-5.12
Qt
ApplicationComponents
pqBlockContextMenu.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 pqBlockContextMenu_h
5
#define pqBlockContextMenu_h
6
7
#include "pqApplicationComponentsModule.h"
// for exports
8
#include "
pqContextMenuInterface.h
"
9
#include <QObject>
10
19
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqBlockContextMenu
20
:
public
QObject
21
,
public
pqContextMenuInterface
22
{
23
Q_OBJECT
24
Q_INTERFACES(
pqContextMenuInterface
)
25
typedef
QObject Superclass;
26
27
public
:
28
pqBlockContextMenu
(QObject* parent =
nullptr
);
29
~
pqBlockContextMenu
()
override
;
30
31
using
pqContextMenuInterface::contextMenu
;
32
bool
contextMenu
(QMenu* menu,
pqView
* viewContext,
const
QPoint& viewPoint,
33
pqRepresentation
* dataContext,
const
QStringList& dataBlockContext)
const override
;
34
35
int
priority
()
const override
{
return
1; }
36
37
private
:
38
Q_DISABLE_COPY(
pqBlockContextMenu
)
39
};
40
41
#endif
pqBlockContextMenu::priority
int priority() const override
This method's return value is used to set the precedence of the interface.
Definition:
pqBlockContextMenu.h:35
pqContextMenuInterface
Interface class for plugins that add a context menu to pqViews.
Definition:
pqContextMenuInterface.h:25
pqView
This is a PQ abstraction of a generic view module.
Definition:
pqView.h:26
pqContextMenuInterface.h
pqRepresentation
This is PQ representation for a single representation.
Definition:
pqRepresentation.h:19
pqContextMenuInterface::contextMenu
virtual bool contextMenu(QMenu *menu, pqView *viewContext, const QPoint &viewPoint, pqRepresentation *dataContext, const QList< unsigned int > &dataBlockContext) const
This method is called when a context menu is requested, usually by a right click in a pqView instance...
pqBlockContextMenu
add context menu items to control block appearance properties.
Definition:
pqBlockContextMenu.h:19
Generated by
1.8.17 on Wed Mar 27 2024