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 
26 {
27 public:
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
#define PQCOMPONENTS_EXPORT
Q_DECLARE_INTERFACE(pqViewFrameActionsInterface, "com.kitware/paraview/viewframeactions")
This is PQ representation for a single representation.
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 int priority() const
This method&#39;s return value is used to set the precedence of the interface.