Kstars

opsdither.cpp
1/*
2 SPDX-FileCopyrightText: 2003 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "opsdither.h"
8
9#include "Options.h"
10#include "kstars.h"
11#include "auxiliary/ksnotification.h"
12
13#include <KConfigDialog>
14
15#include <QCheckBox>
16#include <QComboBox>
17#include <QFileDialog>
18#include <QPushButton>
19#include <QStringList>
20
21namespace Ekos
22{
23OpsDither::OpsDither() : QFrame(KStars::Instance())
24{
25 setupUi(this);
26
27 //Get a pointer to the KConfigDialog
28 m_ConfigDialog = KConfigDialog::exists("guidesettings");
29
30 connect(kcfg_DitherNoGuiding, &QCheckBox::toggled, this, [&](bool checked)
31 {
32 if (checked && kcfg_DitherEnabled->isChecked())
33 {
34 KSNotification::error("Guided dithering cannot be used along with non-guided dithering.");
35 kcfg_DitherEnabled->setChecked(false);
36 }
37 });
38
39 connect(kcfg_DitherEnabled, &QCheckBox::toggled, this, [&](bool checked)
40 {
41 if (checked && kcfg_DitherNoGuiding->isChecked())
42 {
43 KSNotification::error("Guided dithering cannot be used along with non-guided dithering.");
44 kcfg_DitherNoGuiding->setChecked(false);
45 }
46 });
47
48 connect(kcfg_DitherWithOnePulse, &QCheckBox::toggled, this, [&](bool checked)
49 {
50 kcfg_DitherMaxIterations->setEnabled(!checked);
51 });
52
53 connect(m_ConfigDialog, SIGNAL(settingsChanged(QString)), this, SIGNAL(settingsUpdated()));
54
55}
56
57}
static KConfigDialog * exists(const QString &name)
This is the main window for KStars.
Definition kstars.h:91
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:79
void toggled(bool checked)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:26 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.