pqStatusBar.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 pqStatusBar_h
5 #define pqStatusBar_h
6 
7 #include <QScopedPointer>
8 #include <QStatusBar>
9 
10 #include "vtkNew.h"
11 
12 #include "pqApplicationComponentsModule.h"
13 
15 class QToolButton;
16 class QProgressBar;
17 class QStyle;
18 
25 class PQAPPLICATIONCOMPONENTS_EXPORT pqStatusBar : public QStatusBar
26 {
27  Q_OBJECT
28  typedef QStatusBar Superclass;
29 
30 public:
31  pqStatusBar(QWidget* parent = nullptr);
32  ~pqStatusBar() override;
33 
34 Q_SIGNALS: // NOLINT(readability-redundant-access-specifiers)
35  void messageIndicatorPressed();
36 
37 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers
38  void handleMessage(const QString& message, int type);
39  void resetMessageIndicators();
40 protected Q_SLOTS:
41  void updateServerConfigInfo();
42  void updateMemoryProgressBar();
43 
44 protected: // NOLINT(readability-redundant-access-specifiers)
46  QProgressBar* MemoryProgressBar;
47  QToolButton* ErrorIndicator;
48  std::uint64_t ErrorCount = 0;
49  QToolButton* WarningIndicator;
50  std::uint64_t WarningCount = 0;
51 
52 private:
53  Q_DISABLE_COPY(pqStatusBar)
54 
55  void updateWarningIndicator();
56  void updateErrorIndicator();
57 
58  QScopedPointer<QStyle> ProgressBarStyle;
59 };
60 
61 #endif
type
QProgressBar * MemoryProgressBar
Definition: pqStatusBar.h:46
A vtkClientServerStream serializable container of information describing memory configuration of the ...
pqStatusBar extends QStatusBar to support showing paraview progress.
Definition: pqStatusBar.h:25
QToolButton * WarningIndicator
Definition: pqStatusBar.h:49
vtkNew< vtkPVSystemConfigInformation > ServerConfigsInfo
Definition: pqStatusBar.h:45
QToolButton * ErrorIndicator
Definition: pqStatusBar.h:47