Kstars

customproperties.h
1 /*
2  SPDX-FileCopyrightText: 2017 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QDialog>
10 
11 #include "indi/indicamera.h"
12 
13 #include "ui_customproperties.h"
14 
15 class CustomProperties : public QDialog, public Ui::CustomProperties
16 {
17  Q_OBJECT
18 
19  public:
20  CustomProperties();
21 
22  void setCCD(ISD::Camera *ccd);
23 
24  QMap<QString, QMap<QString, QVariant> > getCustomProperties() const;
25  void setCustomProperties(const QMap<QString, QMap<QString, QVariant> > &value);
26 
27  signals:
28  void valueChanged();
29 
30  private slots:
31  void slotAdd();
32  void slotRemove();
33  void slotClear();
34  void slotApply();
35 
36  private:
37 
38  void syncProperties();
39 
40  ISD::Camera *currentCCD = { nullptr };
41  QMap<QString, QMap<QString, QVariant>> customProperties;
42 };
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.