Kstars

fitshistogrameditor.h
1/*
2 SPDX-FileCopyrightText: 2015 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "fitscommon.h"
10#include "fitsdata.h"
11#include "fitshistogramcommand.h"
12#include "fitshistogramview.h"
13#include "ui_fitshistogramui.h"
14
15#include <QDialog>
16
17class QMouseEvent;
18
19class FITSTab;
20
21class histogramUI : public QDialog, public Ui::FITSHistogramUI
22{
24
25 public:
26 explicit histogramUI(QDialog * parent = nullptr);
27};
28
29class FITSHistogramEditor : public QDialog
30{
32
33 friend class histDrawArea;
34
35 public:
36 explicit FITSHistogramEditor(QWidget * parent);
37
38 //void createNonLinearHistogram();
39 void setImageData(const QSharedPointer<FITSData> &data);
40 void syncGUI();
41 void applyFilter(FITSScale ftype);
42
43 protected:
44 void showEvent(QShowEvent * event) override;
45
46 signals:
47 void newHistogramCommand(FITSHistogramCommand *command);
48
49 public slots:
50 void applyScale();
51 void resizePlot();
52
53 private:
54 histogramUI * ui { nullptr };
55
58 QVector<QDoubleSpinBox *> minBoxes, maxBoxes;
59
60 QVector<int> numDecimals;
61 QVector<double> sliderScale, sliderTick;
62
63 FITSScale type { FITS_AUTO };
64 bool isGUISynced { false};
65 bool m_Constructed { false };
66 QSharedPointer<FITSData> m_ImageData;
67};
The FITSTab class holds information on the current view (drawing area) in addition to the undo/redo s...
Definition fitstab.h:51
Q_OBJECTQ_OBJECT
QObject * parent() const const
virtual bool event(QEvent *event) override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.