pqTimelineView.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 pqTimelineView_h
5 #define pqTimelineView_h
6 
8 
9 #include "pqAnimationCue.h" // for pqAnimatedProperty struct
10 #include "pqTimelineModel.h"
11 
12 #include <QTreeView>
13 
21 {
22  Q_OBJECT
23  typedef QTreeView Superclass;
24 
25 public:
26  pqTimelineView(QWidget* parent = nullptr);
27  ~pqTimelineView() override;
28 
32  pqTimelineModel* timelineModel();
33 
37  void enableTrackCreationWidget(bool enable);
38 
42  void validateTrackCreationWidget();
43 
44 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
45 
49  void createRowWidgets(const QModelIndexList& indexes);
50 
54  void updateTimelines();
55 
56 Q_SIGNALS:
60  void validateTrackRequested(const pqAnimatedPropertyInfo& prop);
61 
65  void newTrackRequested(const pqAnimatedPropertyInfo& prop);
66 
70  void deleteTrackRequested(const QString& registrationName);
71 
75  void editTrackRequested(const QString& registrationName);
76 
80  void resetStartEndTimeRequested();
81 
82 private:
83  struct pqInternals;
84  std::unique_ptr<pqInternals> Internals;
85 };
86 
87 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
pqAnimatedPropertyInfo stores information about an animated property.
pqTimelineModel is a standard item model for ParaView timelines, intended to be used with pqTimelineV...
pqTimelineView holds the timeline views for a pqTimelineModel.