pqSingleLogViewerWidget.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 
5 #ifndef pqSingleLogViewerWidget_h
6 #define pqSingleLogViewerWidget_h
7 
8 #include "pqComponentsModule.h"
9 #include "pqLogViewerWidget.h"
10 
11 #include "vtkSMProxy.h"
12 #include "vtkSmartPointer.h"
13 
19 {
20  Q_OBJECT
22 
23 public:
31  pqSingleLogViewerWidget(QWidget* parent, vtkSmartPointer<vtkSMProxy> logRecorderProxy, int rank);
32  ~pqSingleLogViewerWidget() override = default;
33 
37  void refresh();
38 
42  const vtkSmartPointer<vtkSMProxy>& getLogRecorderProxy() const;
43 
47  int getRank() const;
48 
52  void closeEvent(QCloseEvent*) override;
53 
54 private:
55  Q_DISABLE_COPY(pqSingleLogViewerWidget);
56 
57  vtkSmartPointer<vtkSMProxy> LogRecorderProxy;
58  int Rank;
59 };
60 
61 #endif // pqSingleLogViewerWidget_h
A single log viewer widget which has a reference to the log recorder proxy.
#define PQCOMPONENTS_EXPORT
Provides a treeview with scoped logs along with a filtering capability to restrict which logs are sho...
pqLogViewerWidget(QWidget *parent=nullptr)