Kstars

fitshistogrameditor.h
1 /*
2  SPDX-FileCopyrightText: 2015 Jasem Mutlaq <[email protected]>
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 
17 class QMouseEvent;
18 
19 class FITSTab;
20 
21 class histogramUI : public QDialog, public Ui::FITSHistogramUI
22 {
23  Q_OBJECT
24 
25  public:
26  explicit histogramUI(QDialog * parent = nullptr);
27 };
28 
29 class FITSHistogramEditor : public QDialog
30 {
31  Q_OBJECT
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 
56  QVector<QVector<QWidget *>> rgbWidgets;
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 };
Q_OBJECTQ_OBJECT
The FITSTab class holds information on the current view (drawing area) in addition to the undo/redo s...
Definition: fitstab.h:38
virtual void showEvent(QShowEvent *event) override
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.