Kstars

summaryfitsview.h
1 /*
2  SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5  */
6 
7 #pragma once
8 
9 #include <QObject>
10 #include <QAction>
11 #include <QToolBar>
12 
13 #include "fitsview.h"
14 
15 class SummaryFITSView : public FITSView
16 {
17  Q_OBJECT
18 
19 public:
20  explicit SummaryFITSView(QWidget *parent = nullptr);
21 
22  // Floating toolbar
23  void createFloatingToolBar();
24 
25  // process information widget
26  QWidget *processInfoWidget;
27 
28 public slots:
29  // process information
30  void showProcessInfo(bool show);
31  void toggleShowProcessInfo() {showProcessInfo(!m_showProcessInfo);}
32 
33  void resizeEvent(QResizeEvent *event) override;
34 
35 private:
36  // floating bar
37  bool m_showProcessInfo { false };
38  QAction *toggleProcessInfoAction { nullptr };
39 
40 };
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.