pqSpreadSheetViewSelectionModel.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 pqSpreadSheetViewSelectionModel_h
5 #define pqSpreadSheetViewSelectionModel_h
6 
7 #include "pqCoreModule.h"
8 #include <QItemSelectionModel>
9 
11 class vtkSMSourceProxy;
12 
28 class PQCORE_EXPORT pqSpreadSheetViewSelectionModel : public QItemSelectionModel
29 {
30  Q_OBJECT
31  typedef QItemSelectionModel Superclass;
32 
33 public:
34  pqSpreadSheetViewSelectionModel(pqSpreadSheetViewModel* model, QObject* parent = nullptr);
36 
37 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
38  void select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) override
39  {
40  this->Superclass::select(index, command);
41  }
42 
43  void select(
44  const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) override;
45 
46 Q_SIGNALS:
47  void selection(vtkSMSourceProxy*);
48 
49 protected Q_SLOTS:
50  void serverSelectionChanged(const QItemSelection&);
51 
52 protected: // NOLINT(readability-redundant-access-specifiers)
58  vtkSMSourceProxy* getSelectionSource();
59 
61 
62 private:
63  Q_DISABLE_COPY(pqSpreadSheetViewSelectionModel)
64 
66 };
67 
68 #endif
void select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override
proxy for a VTK source on a server
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
This is the selection model used by spread sheet view.