Kstars

opsgpg.cpp
1 /*
2  SPDX-FileCopyrightText: 2020 Hy Murveit <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "opsgpg.h"
8 
9 #include "guide.h"
10 #include "kstars.h"
11 #include "Options.h"
12 #include "internalguide/internalguider.h"
13 
14 #include <QFrame>
15 
16 #include <KConfigDialog>
17 
18 namespace Ekos
19 {
20 OpsGPG::OpsGPG(InternalGuider *guiderObject) : QFrame(KStars::Instance())
21 {
22  setupUi(this);
23 
24  guider = guiderObject;
25 
26  m_ConfigDialog = KConfigDialog::exists("guidesettings");
27 
28  connect(m_ConfigDialog->button(QDialogButtonBox::Apply), SIGNAL(clicked()), SLOT(slotApply()));
29  connect(m_ConfigDialog->button(QDialogButtonBox::Ok), SIGNAL(clicked()), SLOT(slotApply()));
30 
31 }
32 
33 void OpsGPG::slotApply()
34 {
35  guider->updateGPGParameters();
36 }
37 }
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:76
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static KConfigDialog * exists(const QString &name)
This is the main window for KStars. In addition to the GUI elements, the class contains the program c...
Definition: kstars.h:90
void setupUi(QWidget *widget)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:03:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.