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
9 #include <QObject>
10 
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 
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
This is PQ representation for a single representation.
#define PQAPPLICATIONCOMPONENTS_EXPORT
int priority() const override
This method&#39;s return value is used to set the precedence of the interface.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
Interface class for plugins that add a context menu to pqViews.
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...
add context menu items to control block appearance properties.