File indexing completed on 2024-04-21 14:45:56
0001 /* 0002 SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <sterne-jaeger@openfuture.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QAction> 0011 #include <QToolBar> 0012 0013 #include "fitsview.h" 0014 0015 class SummaryFITSView : public FITSView 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit SummaryFITSView(QWidget *parent = nullptr); 0021 0022 // Floating toolbar 0023 void createFloatingToolBar(); 0024 0025 // process information widget 0026 QWidget *processInfoWidget; 0027 0028 public slots: 0029 // process information 0030 void showProcessInfo(bool show); 0031 void toggleShowProcessInfo() {showProcessInfo(!m_showProcessInfo);} 0032 0033 void resizeEvent(QResizeEvent *event) override; 0034 0035 private: 0036 // floating bar 0037 bool m_showProcessInfo { false }; 0038 QAction *toggleProcessInfoAction { nullptr }; 0039 0040 };