src
paraview-5.12
Qt
Components
pqContextMenuInterface.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 pqContextMenuInterface_h
5
#define pqContextMenuInterface_h
6
7
#include "pqComponentsModule.h"
8
#include <QList>
9
#include <QObject>
10
21
class
QMenu;
22
class
pqView
;
23
class
pqRepresentation
;
24
25
class
PQCOMPONENTS_EXPORT
pqContextMenuInterface
26
{
27
public
:
28
pqContextMenuInterface
();
29
virtual
~
pqContextMenuInterface
();
30
49
virtual
bool
contextMenu(QMenu* menu,
pqView
* viewContext,
const
QPoint& viewPoint,
50
pqRepresentation
* dataContext,
const
QList<unsigned int>& dataBlockContext)
const
;
51
58
virtual
bool
contextMenu(QMenu* menu,
pqView
* viewContext,
const
QPoint& viewPoint,
59
pqRepresentation
* dataContext,
const
QStringList& dataBlockContext)
const
;
60
70
virtual
int
priority
()
const
{
return
-1; }
71
72
private
:
73
Q_DISABLE_COPY(
pqContextMenuInterface
)
74
};
75
76
Q_DECLARE_INTERFACE
(
pqContextMenuInterface
,
"com.kitware/paraview/contextmenu"
)
77
#endif
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
Q_DECLARE_INTERFACE
Q_DECLARE_INTERFACE(pqViewFrameActionsInterface, "com.kitware/paraview/viewframeactions")
pqRepresentation
This is PQ representation for a single representation.
Definition:
pqRepresentation.h:19
pqContextMenuInterface::priority
virtual int priority() const
This method's return value is used to set the precedence of the interface.
Definition:
pqContextMenuInterface.h:70
Generated by
1.8.17 on Wed Mar 27 2024